Building with pacman 6.0 fails #9

Closed
opened 2021-06-02 12:18:12 -04:00 by sudoBash418 · 1 comment
First-time contributor

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.
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cromer/pamac-classic#9
No description provided.