This sounds really weird, bear with me.
I've put together a custom install CD derived from CentOS-7-x86_64-Minimal-1810.iso.
I've added my RPMs in the mix, and have my dependencies lined up.
The installation of the RPMs fail, from packaging.log:
... 15:42:35,741 INFO packaging: libwbclient-4.8.3-4.el7.x86_64 (320/432) 15:42:35,741 INFO packaging: samba-client-libs-4.8.3-4.el7.x86_64 (321/432) 15:42:35,742 INFO packaging: samba-libs-4.8.3-4.el7.x86_64 (322/432) 15:42:35,743 INFO packaging: samba-common-tools-4.8.3-4.el7.x86_64 (323/432) 15:42:35,743 INFO packaging: uid-admin-1-1.noarch (324/432) 15:42:35,743 INFO packaging: creating admin smbpasswd ... 15:42:35,743 INFO packaging: pdbedit: error while loading shared libraries: libwbclient.so.0: cannot open shared object file: No such file or directory 15:42:35,745 INFO packaging: error: %pre(uid-admin-1-1.noarch) scriptlet failed, exit status 127 15:42:35,745 INFO packaging: ==== end rpm scriptlet logs ====
To rewind this:
- in my uid-admin RPM's %pre scriptlet, I invoke /usr/bin/pdbedit.
- /usr/bin/pdbedit is provided by samba-common-tools.
- samba-common-tools requires libwbclient.
and we can see they have all gotten installed in the correct order.
When I get to an alternate console, I did a search under /mnt/sysimage for libwbclient.so.0, and all I can find is this:
/mnt/sysimage/usr/lib64/samba/wbclient/libwbclient.so.0
I can see that libwbclient's %posttrans scriptlet should have installed this shared library:
# It has to be posttrans here to make sure all files of a previous version # without alternatives support are removed /usr/sbin/update-alternatives \ --install \ /usr/lib64/libwbclient.so.0.14 \ libwbclient.so.0.14-64 \ /usr/lib64/samba/wbclient/libwbclient.so.0.14 \ 10 /sbin/ldconfig
Yet clearly, that didn't happen, and there's no dialog to the contrary.
I was able to extract that scriptlet, and run it in the chrooted environment successfully.
Is there something about anaconda-yum under CentOS 7 that does something counterintuitive WRT %posttrans scriptlets?