[archlinux] pamac cannot be build against libalpm 13 provided by pacman 6.0
Hello.
For now, pacman 6.0 is in testing. It won't be on archlinux stable before a few days, but I think getting some infos on pamac compatibility with a new major pacman is always a good news.
I tried to build git version against pacman 6.0 / libalpm 13, and I got this error log:
[4/66] Compiling C object src/libpamac.so.p/meson-generated_database.c.o
FAILED: src/libpamac.so.p/meson-generated_database.c.o
ccache cc -Isrc/libpamac.so.p -Isrc -I../src -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/json-glib-1.0 -I/usr/include/libappstream-glib -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/uuid -I/usr/include/libsoup-2.4 -I/usr/include/libxml2 -fdiagnostics-color=always -w -O3 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2,-D_GLIBCXX_ASSERTIONS -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fPIC -pthread '-DGETTEXT_PACKAGE="pamac"' -D_FILE_OFFSET_BITS=64 -MD -MQ src/libpamac.so.p/meson-generated_database.c.o -MF src/libpamac.so.p/meson-generated_database.c.o.d -o src/libpamac.so.p/meson-generated_database.c.o -c src/libpamac.so.p/database.c
src/libpamac.so.p/database.c: In function 'pamac_database_refresh_tmp_files_dbs':
src/libpamac.so.p/database.c:15672:33: error: too few arguments to function 'alpm_db_update'
15672 | alpm_db_update (0, _tmp11_);
| ^~~~~~~~~~~~~~
In file included from src/libpamac.so.p/database.c:25:
/usr/include/alpm.h:1373:5: note: declared here
1373 | int alpm_db_update(alpm_handle_t *handle, alpm_list_t *dbs, int force);
| ^~~~~~~~~~~~~~
src/libpamac.so.p/database.c: In function 'pamac_database_get_updates_real':
src/libpamac.so.p/database.c:16132:45: error: too few arguments to function 'alpm_db_update'
16132 | if (alpm_db_update (0, _tmp21_) < 0) {
| ^~~~~~~~~~~~~~
In file included from src/libpamac.so.p/database.c:25:
/usr/include/alpm.h:1373:5: note: declared here
1373 | int alpm_db_update(alpm_handle_t *handle, alpm_list_t *dbs, int force);
| ^~~~~~~~~~~~~~
[5/66] Compiling C object src/libpamac.so.p/meson-generated_alpm_utils.c.o
FAILED: src/libpamac.so.p/meson-generated_alpm_utils.c.o
ccache cc -Isrc/libpamac.so.p -Isrc -I../src -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/json-glib-1.0 -I/usr/include/libappstream-glib -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/uuid -I/usr/include/libsoup-2.4 -I/usr/include/libxml2 -fdiagnostics-color=always -w -O3 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2,-D_GLIBCXX_ASSERTIONS -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fPIC -pthread '-DGETTEXT_PACKAGE="pamac"' -D_FILE_OFFSET_BITS=64 -MD -MQ src/libpamac.so.p/meson-generated_alpm_utils.c.o -MF src/libpamac.so.p/meson-generated_alpm_utils.c.o.d -o src/libpamac.so.p/meson-generated_alpm_utils.c.o -c src/libpamac.so.p/alpm_utils.c
src/libpamac.so.p/alpm_utils.c: In function 'pamac_alpm_utils_get_handle':
src/libpamac.so.p/alpm_utils.c:1623:25: error: too few arguments to function 'alpm_option_set_eventcb'
1623 | alpm_option_set_eventcb (_tmp7_, (alpm_cb_event) cb_event);
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from src/libpamac.so.p/alpm_utils.c:30:
/usr/include/alpm.h:1586:5: note: declared here
1586 | int alpm_option_set_eventcb(alpm_handle_t *handle, alpm_cb_event cb, void *ctx);
| ^~~~~~~~~~~~~~~~~~~~~~~
src/libpamac.so.p/alpm_utils.c:1625:25: error: too few arguments to function 'alpm_option_set_progresscb'
1625 | alpm_option_set_progresscb (_tmp8_, (alpm_cb_progress) cb_progress);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/libpamac.so.p/alpm_utils.c:30:
/usr/include/alpm.h:1626:5: note: declared here
1626 | int alpm_option_set_progresscb(alpm_handle_t *handle, alpm_cb_progress cb, void *ctx);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/libpamac.so.p/alpm_utils.c:1627:25: error: too few arguments to function 'alpm_option_set_questioncb'
1627 | alpm_option_set_questioncb (_tmp9_, (alpm_cb_question) cb_question);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/libpamac.so.p/alpm_utils.c:30:
/usr/include/alpm.h:1606:5: note: declared here
1606 | int alpm_option_set_questioncb(alpm_handle_t *handle, alpm_cb_question cb, void *ctx);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/libpamac.so.p/alpm_utils.c:1629:25: error: too few arguments to function 'alpm_option_set_fetchcb'
1629 | alpm_option_set_fetchcb (_tmp10_, (alpm_cb_fetch) cb_fetch);
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from src/libpamac.so.p/alpm_utils.c:30:
/usr/include/alpm.h:1566:5: note: declared here
1566 | int alpm_option_set_fetchcb(alpm_handle_t *handle, alpm_cb_fetch cb, void *ctx);
| ^~~~~~~~~~~~~~~~~~~~~~~
src/libpamac.so.p/alpm_utils.c:1631:62: error: 'alpm_cb_totaldl' undeclared (first use in this function)
1631 | alpm_option_set_totaldlcb (_tmp11_, (alpm_cb_totaldl) cb_totaldownload);
| ^~~~~~~~~~~~~~~
src/libpamac.so.p/alpm_utils.c:1631:62: note: each undeclared identifier is reported only once for each function it appears in
src/libpamac.so.p/alpm_utils.c:1631:78: error: expected ')' before 'cb_totaldownload'
1631 | alpm_option_set_totaldlcb (_tmp11_, (alpm_cb_totaldl) cb_totaldownload);
| ~ ^~~~~~~~~~~~~~~~~
| )
src/libpamac.so.p/alpm_utils.c:1633:25: error: too few arguments to function 'alpm_option_set_logcb'
1633 | alpm_option_set_logcb (_tmp12_, (alpm_cb_log) cb_log);
| ^~~~~~~~~~~~~~~~~~~~~
In file included from src/libpamac.so.p/alpm_utils.c:30:
/usr/include/alpm.h:1526:5: note: declared here
1526 | int alpm_option_set_logcb(alpm_handle_t *handle, alpm_cb_log cb, void *ctx);
| ^~~~~~~~~~~~~~~~~~~~~
src/libpamac.so.p/alpm_utils.c: In function 'pamac_alpm_utils_update_dbs':
src/libpamac.so.p/alpm_utils.c:1894:21: error: too few arguments to function 'alpm_db_update'
1894 | if (alpm_db_update (force, _tmp6_) < 0) {
| ^~~~~~~~~~~~~~
In file included from src/libpamac.so.p/alpm_utils.c:30:
/usr/include/alpm.h:1373:5: note: declared here
1373 | int alpm_db_update(alpm_handle_t *handle, alpm_list_t *dbs, int force);
| ^~~~~~~~~~~~~~
src/libpamac.so.p/alpm_utils.c: In function 'pamac_alpm_utils_download_pkg_priv':
src/libpamac.so.p/alpm_utils.c:3122:18: error: too few arguments to function 'alpm_fetch_pkgurl'
3122 | _tmp0_ = alpm_fetch_pkgurl (alpm_handle, url);
| ^~~~~~~~~~~~~~~~~
In file included from src/libpamac.so.p/alpm_utils.c:30:
/usr/include/alpm.h:2318:5: note: declared here
2318 | int alpm_fetch_pkgurl(alpm_handle_t *handle, const alpm_list_t *urls,
| ^~~~~~~~~~~~~~~~~
src/libpamac.so.p/alpm_utils.c:3138:26: error: too few arguments to function 'alpm_fetch_pkgurl'
3138 | _tmp6_ = alpm_fetch_pkgurl (alpm_handle, _tmp5_);
| ^~~~~~~~~~~~~~~~~
In file included from src/libpamac.so.p/alpm_utils.c:30:
/usr/include/alpm.h:2318:5: note: declared here
2318 | int alpm_fetch_pkgurl(alpm_handle_t *handle, const alpm_list_t *urls,
| ^~~~~~~~~~~~~~~~~
src/libpamac.so.p/alpm_utils.c:3144:18: error: too few arguments to function 'alpm_fetch_pkgurl'
3144 | _tmp8_ = alpm_fetch_pkgurl (alpm_handle, url);
| ^~~~~~~~~~~~~~~~~
In file included from src/libpamac.so.p/alpm_utils.c:30:
/usr/include/alpm.h:2318:5: note: declared here
2318 | int alpm_fetch_pkgurl(alpm_handle_t *handle, const alpm_list_t *urls,
| ^~~~~~~~~~~~~~~~~
src/libpamac.so.p/alpm_utils.c: In function 'pamac_alpm_utils_trans_check_prepare':
src/libpamac.so.p/alpm_utils.c:4253:9: error: too few arguments to function 'alpm_option_set_questioncb'
4253 | alpm_option_set_questioncb (_tmp2_, (alpm_cb_question) cb_question);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/libpamac.so.p/alpm_utils.c:30:
/usr/include/alpm.h:1606:5: note: declared here
1606 | int alpm_option_set_questioncb(alpm_handle_t *handle, alpm_cb_question cb, void *ctx);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/libpamac.so.p/alpm_utils.c: In function 'pamac_alpm_utils_trans_check_prepare_real':
src/libpamac.so.p/alpm_utils.c:4514:9: error: too few arguments to function 'alpm_option_set_eventcb'
4514 | alpm_option_set_eventcb (tmp_handle, (alpm_cb_event) cb_event);
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from src/libpamac.so.p/alpm_utils.c:30:
/usr/include/alpm.h:1586:5: note: declared here
1586 | int alpm_option_set_eventcb(alpm_handle_t *handle, alpm_cb_event cb, void *ctx);
| ^~~~~~~~~~~~~~~~~~~~~~~
src/libpamac.so.p/alpm_utils.c:4515:9: error: too few arguments to function 'alpm_option_set_progresscb'
4515 | alpm_option_set_progresscb (tmp_handle, (alpm_cb_progress) cb_progress);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/libpamac.so.p/alpm_utils.c:30:
/usr/include/alpm.h:1626:5: note: declared here
1626 | int alpm_option_set_progresscb(alpm_handle_t *handle, alpm_cb_progress cb, void *ctx);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/libpamac.so.p/alpm_utils.c:4516:9: error: too few arguments to function 'alpm_option_set_logcb'
4516 | alpm_option_set_logcb (tmp_handle, (alpm_cb_log) cb_log);
| ^~~~~~~~~~~~~~~~~~~~~
In file included from src/libpamac.so.p/alpm_utils.c:30:
/usr/include/alpm.h:1526:5: note: declared here
1526 | int alpm_option_set_logcb(alpm_handle_t *handle, alpm_cb_log cb, void *ctx);
| ^~~~~~~~~~~~~~~~~~~~~
src/libpamac.so.p/alpm_utils.c: In function 'pamac_alpm_utils_trans_run_real':
src/libpamac.so.p/alpm_utils.c:4728:9: error: too few arguments to function 'alpm_option_set_questioncb'
4728 | alpm_option_set_questioncb (_tmp2_, (alpm_cb_question) cb_question);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/libpamac.so.p/alpm_utils.c:30:
/usr/include/alpm.h:1606:5: note: declared here
1606 | int alpm_option_set_questioncb(alpm_handle_t *handle, alpm_cb_question cb, void *ctx);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/libpamac.so.p/alpm_utils.c:4757:33: error: too few arguments to function 'alpm_option_set_eventcb'
4757 | alpm_option_set_eventcb (_tmp10_, (alpm_cb_event) cb_event);
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from src/libpamac.so.p/alpm_utils.c:30:
/usr/include/alpm.h:1586:5: note: declared here
1586 | int alpm_option_set_eventcb(alpm_handle_t *handle, alpm_cb_event cb, void *ctx);
| ^~~~~~~~~~~~~~~~~~~~~~~
src/libpamac.so.p/alpm_utils.c:4759:33: error: too few arguments to function 'alpm_option_set_progresscb'
4759 | alpm_option_set_progresscb (_tmp11_, (alpm_cb_progress) cb_progress);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/libpamac.so.p/alpm_utils.c:30:
/usr/include/alpm.h:1626:5: note: declared here
1626 | int alpm_option_set_progresscb(alpm_handle_t *handle, alpm_cb_progress cb, void *ctx);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/libpamac.so.p/alpm_utils.c:4761:33: error: too few arguments to function 'alpm_option_set_fetchcb'
4761 | alpm_option_set_fetchcb (_tmp12_, (alpm_cb_fetch) cb_fetch);
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from src/libpamac.so.p/alpm_utils.c:30:
/usr/include/alpm.h:1566:5: note: declared here
1566 | int alpm_option_set_fetchcb(alpm_handle_t *handle, alpm_cb_fetch cb, void *ctx);
| ^~~~~~~~~~~~~~~~~~~~~~~
src/libpamac.so.p/alpm_utils.c:4763:70: error: 'alpm_cb_totaldl' undeclared (first use in this function)
4763 | alpm_option_set_totaldlcb (_tmp13_, (alpm_cb_totaldl) cb_totaldownload);
| ^~~~~~~~~~~~~~~
src/libpamac.so.p/alpm_utils.c:4763:86: error: expected ')' before 'cb_totaldownload'
4763 | alpm_option_set_totaldlcb (_tmp13_, (alpm_cb_totaldl) cb_totaldownload);
| ~ ^~~~~~~~~~~~~~~~~
| )
src/libpamac.so.p/alpm_utils.c:4765:33: error: too few arguments to function 'alpm_option_set_logcb'
4765 | alpm_option_set_logcb (_tmp14_, (alpm_cb_log) cb_log);
| ^~~~~~~~~~~~~~~~~~~~~
In file included from src/libpamac.so.p/alpm_utils.c:30:
/usr/include/alpm.h:1526:5: note: declared here
1526 | int alpm_option_set_logcb(alpm_handle_t *handle, alpm_cb_log cb, void *ctx);
| ^~~~~~~~~~~~~~~~~~~~~
src/libpamac.so.p/alpm_utils.c: In function 'pamac_alpm_utils_download_files':
src/libpamac.so.p/alpm_utils.c:7585:60: error: 'ALPM_EVENT_RETRIEVE_START' undeclared (first use in this function); did you mean 'ALPM_EVENT_DB_RETRIEVE_START'?
7585 | pamac_alpm_utils_emit_event (self, (guint) ALPM_EVENT_RETRIEVE_START, (guint) 0, _tmp14_, (gint) 0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| ALPM_EVENT_DB_RETRIEVE_START
src/libpamac.so.p/alpm_utils.c:7699:60: error: 'ALPM_EVENT_RETRIEVE_DONE' undeclared (first use in this function); did you mean 'ALPM_EVENT_DB_RETRIEVE_DONE'?
7699 | pamac_alpm_utils_emit_event (self, (guint) ALPM_EVENT_RETRIEVE_DONE, (guint) 0, _tmp37_, (gint) 0);
| ^~~~~~~~~~~~~~~~~~~~~~~~
| ALPM_EVENT_DB_RETRIEVE_DONE
src/libpamac.so.p/alpm_utils.c: In function 'cb_event':
src/libpamac.so.p/alpm_utils.c:10744:22: error: 'ALPM_EVENT_PKGDOWNLOAD_START' undeclared (first use in this function); did you mean 'ALPM_EVENT_KEY_DOWNLOAD_START'?
10744 | case ALPM_EVENT_PKGDOWNLOAD_START:
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| ALPM_EVENT_KEY_DOWNLOAD_START
[9/66] Compiling C object src/libpamac.so.p/meson-generated_daemon_interface.c.o
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().