I'm circling back to this topic:
http://centos.1050465.n5.nabble.com/CentOS-weird-RPM-dependency-error-bin-sh...
On Tue, Feb 12, 2019 at 03:56:49PM -0500, Brian Reichert wrote:
Now, I try to make an RPM database of these packages. The last step fails with an unmet dependency:
$ sudo mount ~/CentOS-7-x86_64-Minimal-1810.iso -r -t iso9660 -o loop /mnt $ mkdir -p ~/local_rpm_db $ rpm --initdb --dbpath ~/local_rpm_db $ rpm --justdb --ignoresize --dbpath ~/local_rpm_db -Uvh /mnt/Packages/*.rpm *.rpm warning: /mnt/cdrom/Packages/acl-2.2.51-14.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY warning: berkeleydb-ltb-4.6.21.NC-4.el7.patch4.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 6d45bfc5: NOKEY error: Failed dependencies: /bin/sh is needed by openldap-ltb-2.4.47-1.el7.x86_64
Which is weird, as the 'bash' RPM is clearly part of the set, and 'provides' the needed feature:
$ rpm -q -provides -p /mnt/Packages/bash-4.2.46-31.el7.x86_64.rpm | egrep 'sh$' /bin/bash /bin/sh
I've asked the LTB folks about the symptoms I report, and they can't find anything mysterious going on.
They directed me to their SPEC file:
https://github.com/ltb-project/openldap-rpm/blob/master/SPECS/openldap-ltb.s...
Further, I tried a rebuild of their source RPM on my CentOS 7.6.1810 host, and the resulting RPM yielded the same symptoms:
http://ltb-project.org/archives/openldap-ltb-2.4.47-1.el7.src.rpm
I can directly install the related RPMs on a CentOS 7.6.1810 host; it seems specific to my effort to building a private RPM database.
I don't see any updates to the 'rpm' package itself that might address what I'm seeing.