[Pkg-rust-maintainers] Bug#1099813: rust-rpm-sequoia: rpm fails to build due to wrong pkg-config content and wrong shared lib install location
Luca Boccassi
bluca at debian.org
Sat Mar 8 13:04:53 GMT 2025
Source: rust-rpm-sequoia
Version: 1.7.0-2
Dear Maintainer(s),
Spotted a couple more problems with the rust-rpm-sequoia packages that
make rpm fail to build when trying to use it.
First of all, the pkg-config file includes wrong metadata:
$ cat /usr/lib/x86_64-linux-gnu/pkgconfig/rpm-sequoia.pc
prefix=/usr/local
libdir=${prefix}/lib
Name: rpm-sequoia
Description: An implementation of the RPM PGP interface using Sequoia.
URL: https://sequoia-pgp.org/
Version: 1.7.0
Requires.private: nettle
Cflags:
Libs: -L${libdir} -lrpm_sequoia
prefix should be /usr instead of /usr/local, and libdir should include
the multiarch subdirectory. IE, the first two lines should look like
this for the amd64 build:
prefix=/usr
libdir=${prefix}/lib/x86_64-linux-gnu
Secondly, the shared library is shipped by the librpm-sequoia-1
package in a subdirectory of the libdir for some reason?
$ ls /usr/lib/x86_64-linux-gnu/librpm_sequoia.so.1/librpm_sequoia.so -l
-rw-r--r-- 1 root root 2852176 Mar 7 20:35
/usr/lib/x86_64-linux-gnu/librpm_sequoia.so.1/librpm_sequoia.so
Instead the librpm-sequoia-1 package should just ship the versioned
shared library as /usr/lib/x86_64-linux-gnu/librpm_sequoia.so.1 like
Fedora does.
With these two fixes, rpm builds successfully.
More information about the Pkg-rust-maintainers
mailing list