Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: libalpm.so.14: cannot open shared object file #90

Open
Marco98 opened this issue Sep 14, 2024 · 7 comments · May be fixed by #92
Open

[Bug]: libalpm.so.14: cannot open shared object file #90

Marco98 opened this issue Sep 14, 2024 · 7 comments · May be fixed by #92
Labels
bug Something isn't working triage new issues

Comments

@Marco98
Copy link

Marco98 commented Sep 14, 2024

In one sentence, what did you try to achieve?

compiling or running pacdef on up-to-date archlinux

What did you expect to happen?

run pacdef on latest stable archlinux w/ pacman 7.0.0

What happened?

run fails with:
pacdef: error while loading shared libraries: libalpm.so.14: cannot open shared object file: No such file or directory

compile fails with:

error: failed to run custom build command for `alpm v3.0.5`
note: To improve backtraces for build dependencies, set the CARGO_PROFILE_RELEASE_BUILD_OVERRIDE_DEBUG=true environment variable to enable debug information generation.

Caused by:
  process didn't exit successfully: `/home/marco/.cache/yay/pacdef/src/pacdef-1.6.0/target/release/build/alpm-3198e09dd8f1f138/build-script-build` (exit status: 101)
  --- stderr
  thread 'main' panicked at /home/marco/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/alpm-3.0.5/build.rs:25:13:
  this version of alpm.rs does not support libalpm v15.0.0 only v14.x.x is supported

How can we reproduce this?

  1. update archlinux
  2. run or compile pacdef

Version of pacdef

1.6.0

Pacdef config

n/a

What operating system and version are you encountering this issue on?

archlinux

Relevant log output

pacdef: error while loading shared libraries: libalpm.so.14: cannot open shared object file: No such file or directory

Additional information

No response

@Marco98 Marco98 added bug Something isn't working triage new issues labels Sep 14, 2024
@keilmillerjr
Copy link

keilmillerjr commented Sep 16, 2024

Trying to decipher the error.

$ pacman -V
Pacman v7.0.0 - libalpm v15.0.0

So we are at version 15 for the package management library for pacman. Any updated Arch system should have the latest version. The rust crate used to provide the bindings has yet to be updated. The readme within the source for the package alpm.rs says Currently alpm.rs supports libalpm v14.x.x..

Support was added for pacman 7.0. Version was later bumped to 4.0. However, there is no tagged release yet.

@Magniquick
Copy link

Related: archlinux/alpm.rs#48

@moberer
Copy link

moberer commented Sep 17, 2024

paru had the same issue and solved this in Morganamilo/paru@90656a9

(as of yet not released, but available in paru-git)

@polandy
Copy link

polandy commented Sep 19, 2024

I changed the alpm version from 3.0 to 4.0 in https://github.com/steven-omaha/pacdef/blob/main/crates/pacdef/Cargo.toml and then built pacdef locally with cargo build --release --features arch. That seems to work so far but I'm not sure if more needs to be done.

@keilmillerjr
Copy link

keilmillerjr commented Sep 19, 2024

@polandy We could use alpm version 4.0.1.

https://crates.io/crates/alpm

This PR attempts to resolve the issue by pulling directly from git. Using the crate version would be better to prevent accidental breakage.

#91

@keilmillerjr
Copy link

@steven-omaha Can you review PR #92 ?

@ripytide
Copy link
Contributor

Myself and @InnocentZero have forked this project as metapac over at https://github.com/ripytide/metapac. We have made quite a few improvements and added some new features:

  • No longer uses cargo features so all backends are now enabled by default
  • Uses pacman cli rather than alpm.so so bugs like this can't happen again
  • New metapac add command to add packages to you group files via the command line
  • Moved group file format to toml for syntax highlighting and to allow per-package install options
  • removed non-core pacdef commands (import, export, list, new, remove, show, search) since they are all possible via more traditional linux programs like ln/cat/touch/rm/grep etc.. and so go against the unix philosophy.
  • removed the review since the unmanaged command now outputs a valid group file (see discussion here: Do we really need a ratatui frontend? ripytide/metapac#14 Review Resume #62 'pacdef package review' enhancement suggestions #36)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage new issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants