paru icon indicating copy to clipboard operation
paru copied to clipboard

bump alpm and alpm-utils to 5.0.0 to fix build issues with libalpm 16

Open gaurav712 opened this issue 3 weeks ago • 11 comments

Update alpm and alpm-utils from 4.0.3 to 5.0.0

https://github.com/Morganamilo/paru/pull/1458 addresses the same issue but I'm not closing this yet as that one needs the latest aur-depends to be in crates.io

gaurav712 avatar Dec 14 '25 08:12 gaurav712

Still not able to build it

MannuVilasara avatar Dec 14 '25 08:12 MannuVilasara

Still not able to build it

And you did a clean build?

gaurav712 avatar Dec 14 '25 08:12 gaurav712

Still not able to build it

And you did a clean build?

yeah I did a clean build. it doesn't build

MannuVilasara avatar Dec 14 '25 08:12 MannuVilasara

Doesn't build for me either. Cargo kicks back errors about a few different libalpm functions being called incorrectly.

quinnr avatar Dec 14 '25 09:12 quinnr

Doesn't build for me either. Cargo kicks back errors about a few different libalpm functions being called incorrectly.

@quinnr I got those errors about the number of arguments in a couple of functions but with 5.0.0. Weird

gaurav712 avatar Dec 14 '25 09:12 gaurav712

I fixed it somewhat in local branch using flag --features git during build and some code changes. the only issue I faced is completions not working for AUR packages, but manually typing in their name does install them

honestly I would just wait for devs to push in the new update. using yay as of now is also another option

MannuVilasara avatar Dec 14 '25 09:12 MannuVilasara

The errors are when aur-depends is built, that also needs to be built against new alpm, building both against 5.0.0 works. I have a pull request in over on that repo already.

ewanm89 avatar Dec 14 '25 10:12 ewanm89

The errors are when aur-depends is built, that also needs to be built against new alpm, building both against 5.0.0 works. I have a pull request in over on that repo already.

aur-depends 5.0.0 doesn't even exist. the latest version to aur-depends is 4.0.5 https://crates.io/crates/aur-depends

MannuVilasara avatar Dec 14 '25 10:12 MannuVilasara

The errors are when aur-depends is built, that also needs to be built against new alpm, building both against 5.0.0 works. I have a pull request in over on that repo already.

aur-depends 5.0.0 doesn't even exist. the latest version to aur-depends is 4.0.5 https://crates.io/crates/aur-depends

No, and I never said it did, I have made a pull request over there on aur-depends to update alpm and alpm-utils to 5.0.0 in that repository.

What I said, is both paru and aur-depends need updating to alpm 5.0.0.

ewanm89 avatar Dec 14 '25 11:12 ewanm89

@MannuVilasara @quinnr My bad. It builds fine on my main machine so I tried on a different one and I got the same errors you mentioned.

The problem is that aur-depends uses old versions of alpm

We need to update it there and then build paru against the master (or build against 5.0.0 when it's on crates.io)

Try building it against an updated copy of aur-depends. Works fine for me.

https://github.com/Morganamilo/aur-depends/pull/19 handles this

gaurav712 avatar Dec 15 '25 07:12 gaurav712

The problem is that aur-depends uses old versions of alpm

We need to update it there and then build paru against the master (or build against 5.0.0 when it's on crates.io)

This could be closed as a duplicate of #1458 or #1461?

effleurager avatar Dec 15 '25 10:12 effleurager

Closing it in favor of #1461

gaurav712 avatar Dec 16 '25 05:12 gaurav712