Building with pacman 6.0 fails #9

Closed
opened 6 months ago by sudoBash418 · 1 comments

Attempting to build with pacman 6.0.0 installed (libalpm 13.0.0) fails with a few different errors:

../src/transaction.vala: In function ‘pamac_transaction_on_emit_event’:
../src/transaction.vala:1489:29: error: ‘ALPM_EVENT_RETRIEVE_START’ undeclared (first use in this function); did you mean ‘ALPM_EVENT_DB_RETRIEVE_START’?
 1489 |                         switch (primary_event) {
      |                             ^~~~~~~~~~~~~~~~~~~~     
      |                             ALPM_EVENT_DB_RETRIEVE_START
../src/transaction.vala:1489:29: note: each undeclared identifier is reported only once for each function it appears in
../src/transaction.vala:1489:29: error: ‘ALPM_EVENT_RETRIEVE_DONE’ undeclared (first use in this function); did you mean ‘ALPM_EVENT_DB_RETRIEVE_DONE’?
 1489 |                         switch (primary_event) {
      |                             ^~~~~~~~~~~~~~~~~~~~    
      |                             ALPM_EVENT_DB_RETRIEVE_DONE
../src/transaction.vala:1489:29: error: ‘ALPM_EVENT_RETRIEVE_FAILED’ undeclared (first use in this function); did you mean ‘ALPM_EVENT_DB_RETRIEVE_FAILED’?
 1489 |                         switch (primary_event) {
      |                             ^~~~~~~~~~~~~~~~~~~~      
      |                             ALPM_EVENT_DB_RETRIEVE_FAILED
../src/transaction.vala:1489:29: error: ‘ALPM_EVENT_PKGDOWNLOAD_START’ undeclared (first use in this function); did you mean ‘ALPM_EVENT_KEY_DOWNLOAD_START’?
 1489 |                         switch (primary_event) {
      |                             ^~~~~~~~~~~~~~~~~~~~        
      |                             ALPM_EVENT_KEY_DOWNLOAD_START

and later on:

../src/pamac-user-daemon/user_daemon.vala: In function ‘pamac_user_daemon_search_all_dbs’:
../src/pamac-user-daemon/user_daemon.vala:283:32: error: too few arguments to function ‘alpm_db_search’
  283 |                         Alpm.List<unowned Alpm.Package> result = alpm_handle.localdb.search (needles);
      |                                ^~~~~~~~~~~~~~
In file included from src/Pamac.h:10,
                 from src/pamac-user-daemon/pamac-user-daemon.p/user_daemon.c:32:
/usr/include/alpm.h:1413:5: note: declared here
 1413 | int alpm_db_search(alpm_db_t *db, const alpm_list_t *needles,
      |     ^~~~~~~~~~~~~~
../src/pamac-user-daemon/user_daemon.vala:289:49: error: too few arguments to function ‘alpm_db_search’
  289 |                                         syncpkgs = db.search (needles);
      |                                                 ^~~~~~~~~~~~~~
In file included from src/Pamac.h:10,
                 from src/pamac-user-daemon/pamac-user-daemon.p/user_daemon.c:32:
/usr/include/alpm.h:1413:5: note: declared here
 1413 | int alpm_db_search(alpm_db_t *db, const alpm_list_t *needles,
      |     ^~~~~~~~~~~~~~
../src/pamac-user-daemon/user_daemon.vala:291:49: error: too few arguments to function ‘alpm_db_search’
  291 |                                         syncpkgs.join (db.search (needles).diff (syncpkgs, (Alpm.List.CompareFunc) alpm_pkg_compare_name));
      |                                                 ^~~~~~~~~~~~~~
[truncated]

(initially reported by Andy_Vetrov on the AUR)

Attempting to build with pacman 6.0.0 installed (libalpm 13.0.0) fails with a few different errors: ``` ../src/transaction.vala: In function ‘pamac_transaction_on_emit_event’: ../src/transaction.vala:1489:29: error: ‘ALPM_EVENT_RETRIEVE_START’ undeclared (first use in this function); did you mean ‘ALPM_EVENT_DB_RETRIEVE_START’? 1489 | switch (primary_event) { | ^~~~~~~~~~~~~~~~~~~~ | ALPM_EVENT_DB_RETRIEVE_START ../src/transaction.vala:1489:29: note: each undeclared identifier is reported only once for each function it appears in ../src/transaction.vala:1489:29: error: ‘ALPM_EVENT_RETRIEVE_DONE’ undeclared (first use in this function); did you mean ‘ALPM_EVENT_DB_RETRIEVE_DONE’? 1489 | switch (primary_event) { | ^~~~~~~~~~~~~~~~~~~~ | ALPM_EVENT_DB_RETRIEVE_DONE ../src/transaction.vala:1489:29: error: ‘ALPM_EVENT_RETRIEVE_FAILED’ undeclared (first use in this function); did you mean ‘ALPM_EVENT_DB_RETRIEVE_FAILED’? 1489 | switch (primary_event) { | ^~~~~~~~~~~~~~~~~~~~ | ALPM_EVENT_DB_RETRIEVE_FAILED ../src/transaction.vala:1489:29: error: ‘ALPM_EVENT_PKGDOWNLOAD_START’ undeclared (first use in this function); did you mean ‘ALPM_EVENT_KEY_DOWNLOAD_START’? 1489 | switch (primary_event) { | ^~~~~~~~~~~~~~~~~~~~ | ALPM_EVENT_KEY_DOWNLOAD_START ``` and later on: ``` ../src/pamac-user-daemon/user_daemon.vala: In function ‘pamac_user_daemon_search_all_dbs’: ../src/pamac-user-daemon/user_daemon.vala:283:32: error: too few arguments to function ‘alpm_db_search’ 283 | Alpm.List<unowned Alpm.Package> result = alpm_handle.localdb.search (needles); | ^~~~~~~~~~~~~~ In file included from src/Pamac.h:10, from src/pamac-user-daemon/pamac-user-daemon.p/user_daemon.c:32: /usr/include/alpm.h:1413:5: note: declared here 1413 | int alpm_db_search(alpm_db_t *db, const alpm_list_t *needles, | ^~~~~~~~~~~~~~ ../src/pamac-user-daemon/user_daemon.vala:289:49: error: too few arguments to function ‘alpm_db_search’ 289 | syncpkgs = db.search (needles); | ^~~~~~~~~~~~~~ In file included from src/Pamac.h:10, from src/pamac-user-daemon/pamac-user-daemon.p/user_daemon.c:32: /usr/include/alpm.h:1413:5: note: declared here 1413 | int alpm_db_search(alpm_db_t *db, const alpm_list_t *needles, | ^~~~~~~~~~~~~~ ../src/pamac-user-daemon/user_daemon.vala:291:49: error: too few arguments to function ‘alpm_db_search’ 291 | syncpkgs.join (db.search (needles).diff (syncpkgs, (Alpm.List.CompareFunc) alpm_pkg_compare_name)); | ^~~~~~~~~~~~~~ [truncated] ``` (initially reported by [Andy_Vetrov on the AUR](https://aur.archlinux.org/packages/pamac-classic#comment-810142))
Owner

Libalpm has many breaking changes in the new version, especially now that paralel downloads are available. It requires a lot of modification to pamac, and at the moment I don't have time to do it.

If anyone wants to do it, pull requests are welcome and I would be happy to merge it.

Libalpm has many breaking changes in the new version, especially now that paralel downloads are available. It requires a lot of modification to pamac, and at the moment I don't have time to do it. If anyone wants to do it, pull requests are welcome and I would be happy to merge it.
cromer closed this issue 5 months ago
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.