andrewgregory / pacutils

Helper library for libalpm based programs.
MIT License
107 stars 17 forks source link

Doesn't build with pacman 6.1.0 #69

Closed Foxboron closed 6 months ago

Foxboron commented 6 months ago
pacutils/ui.c:313:39: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘alpm_pkg_t *’ {aka ‘struct _alpm_pkg_t *’} [-Wformat=]
  313 |       q->remove = pu_ui_confirm(1, "'%s' conflicts with '%s'.  Remove '%s'?",
      |                                      ~^
      |                                       |
      |                                       char *
  314 |               c->package1, c->package2, c->package2);
      |               ~~~~~~~~~~~
      |                |
      |                alpm_pkg_t * {aka struct _alpm_pkg_t *}
pacutils/ui.c:313:59: warning: format ‘%s’ expects argument of type ‘char *’, but argument 4 has type ‘alpm_pkg_t *’ {aka ‘struct _alpm_pkg_t *’} [-Wformat=]
  313 |       q->remove = pu_ui_confirm(1, "'%s' conflicts with '%s'.  Remove '%s'?",
      |                                                          ~^
      |                                                           |
      |                                                           char *
  314 |               c->package1, c->package2, c->package2);
      |                            ~~~~~~~~~~~
      |                             |
      |                             alpm_pkg_t * {aka struct _alpm_pkg_t *}
pacutils/ui.c:313:73: warning: format ‘%s’ expects argument of type ‘char *’, but argument 5 has type ‘alpm_pkg_t *’ {aka ‘struct _alpm_pkg_t *’} [-Wformat=]
  313 |       q->remove = pu_ui_confirm(1, "'%s' conflicts with '%s'.  Remove '%s'?",
      |                                                                        ~^
      |                                                                         |
      |                                                                         char *
  314 |               c->package1, c->package2, c->package2);
      |                                         ~~~~~~~~~~~
      |                                          |
      |                                          alpm_pkg_t * {aka struct _alpm_pkg_t *}
pacutils/ui.c:376:29: error: ‘alpm_question_import_key_t’ {aka ‘struct _alpm_question_import_key_t’} has no member named ‘key’
  376 |       alpm_pgpkey_t *key = q->key;
      |                             ^~
make[1]: *** [Makefile:69: libpacutils.so] Error 1
make[1]: Leaving directory '/build/pacutils/src/pacutils/lib'
make: *** [Makefile:4: lib] Error 2
andrewgregory commented 6 months ago

Check out the pacman-6.1.0 branch

Foxboron commented 6 months ago

045b55113c766efef01d636e48b37d3a1ead16a1 builds in staging.

Foxboron commented 6 months ago

@andrewgregory The release doesnt contain any of the pacman 6.1 patches.

andrewgregory commented 6 months ago

Lol, rebase fail. New tag pushed.