[Rpm-maint] [rpm-software-management/rpm] rpm-python subpackage links against rpm lib on the system (#130)

Jan Šilhan notifications at github.com
Wed Jan 18 18:02:52 UTC 2017


When I build rpm (exact 4.13 release) rpm-python subpackage links against rpm on the system, not the built one.

When I tried to build rpm package providing soname 3 and rpm installed on the system had soname 7, rpm-python had requirement for soname 7 and so cannot be installed. It was reproducible with the rpm-4.13 package having soname 7 and rpm-4.11 having soname 3 too.

See:
```bash
-bash-4.2$ rpm -qi rpm-libs --provides
Name        : rpm-libs
Version     : 4.13.0
Release     : 1.el7.centos
Architecture: x86_64
Install Date: Wed Jan 18 14:56:23 2017
Group       : Development/Libraries
Size        : 664664
License     : GPLv2+ and LGPLv2+ with exceptions
Signature   : (none)
Source RPM  : rpm-4.13.0-1.el7.centos.src.rpm
Build Date  : Tue Jan 17 16:26:43 2017
Build Host  : e9758c379042
Relocations : (not relocatable)
URL         : http://www.rpm.org/
Summary     : Libraries for manipulating RPM packages
Description :
This package contains the RPM shared libraries.
librpm.so.7()(64bit)
librpmio.so.7()(64bit)
rpm-libs = 4.13.0-1.el7.centos
rpm-libs(x86-64) = 4.13.0-1.el7.centos

-bash-4.2$ rpmbuild -ba rpm.spec
...
Wrote: /home/jsilhan/rpmbuild/SRPMS/rpm-4.13.0-1.el7.centos.src.rpm
Wrote: /home/jsilhan/rpmbuild/RPMS/x86_64/rpm-4.13.0-1.el7.centos.x86_64.rpm
Wrote: /home/jsilhan/rpmbuild/RPMS/x86_64/rpm-libs-4.13.0-1.el7.centos.x86_64.rpm
Wrote: /home/jsilhan/rpmbuild/RPMS/x86_64/rpm-build-libs-4.13.0-1.el7.centos.x86_64.rpm
Wrote: /home/jsilhan/rpmbuild/RPMS/x86_64/rpm-devel-4.13.0-1.el7.centos.x86_64.rpm
Wrote: /home/jsilhan/rpmbuild/RPMS/x86_64/rpm-build-4.13.0-1.el7.centos.x86_64.rpm
Wrote: /home/jsilhan/rpmbuild/RPMS/x86_64/rpm-sign-4.13.0-1.el7.centos.x86_64.rpm
Wrote: /home/jsilhan/rpmbuild/RPMS/x86_64/rpm-python-4.13.0-1.el7.centos.x86_64.rpm
Wrote: /home/jsilhan/rpmbuild/RPMS/noarch/rpm-apidocs-4.13.0-1.el7.centos.noarch.rpm
Wrote: /home/jsilhan/rpmbuild/RPMS/noarch/rpm-cron-4.13.0-1.el7.centos.noarch.rpm
Wrote: /home/jsilhan/rpmbuild/RPMS/x86_64/rpm-plugin-selinux-4.13.0-1.el7.centos.x86_64.rpm
Wrote: /home/jsilhan/rpmbuild/RPMS/x86_64/rpm-plugin-syslog-4.13.0-1.el7.centos.x86_64.rpm
Wrote: /home/jsilhan/rpmbuild/RPMS/x86_64/rpm-plugin-systemd-inhibit-4.13.0-1.el7.centos.x86_64.rpm
Wrote: /home/jsilhan/rpmbuild/RPMS/x86_64/rpm-plugin-ima-4.13.0-1.el7.centos.x86_64.rpm
Wrote: /home/jsilhan/rpmbuild/RPMS/x86_64/rpm-debuginfo-4.13.0-1.el7.centos.x86_64.rpm
...
+ exit 0

-bash-4.2$ rpm -qp ~/rpmbuild/RPMS/x86_64/rpm-libs-4.13.0-1.el7.centos.x86_64.rpm  --provides
librpm.so.3()(64bit)
librpmio.so.3()(64bit)
rpm-libs = 4.13.0-1.el7.centos
...

-bash-4.2$ rpm -qp ~/rpmbuild/RPMS/x86_64/rpm-python-4.13.0-1.el7.centos.x86_64.rpm --requires
...
librpm.so.7()(64bit)
librpmbuild.so.7()(64bit)
librpmio.so.7()(64bit)
librpmsign.so.7()(64bit)
python(abi) = 2.7
rpm = 4.13.0-1.el7.centos
...
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/130
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20170118/bcb9fc0a/attachment-0001.html>


More information about the Rpm-maint mailing list