I noticed when building python3-pillow that Pillow depends on ldconfig to try and find library paths. In their setup.py, they run the command: > ldconfig -p which is broken in Cenbuild: > cbrun x86_64 /sbin/ldconfig -p > /sbin/ldconfig: Can't open cache file /etc/ld.so.cache > : No such file or directory We don't have the file ld.so.cache. This is different from a normal system, my Fedora 40 machine could run > ldconfig -p without error.
It looks like you need to run ldconfig once as root to generate this cache file: > sudo /opt/cendio-build/bin/cbrun x86_64 /sbin/ldconfig After this, I could run ldconfig -p: > cbrun x86_64 /sbin/ldconfig -p > 423 libs found in cache `/etc/ld.so.cache' > libz.so.1 (libc6,x86-64) => /usr/lib64/libz.so.1 > libz.so (libc6,x86-64) => /usr/lib64/libz.so > ...
Looks like Fedora has some RPM macro magic to run ldconfig automatically when shared libraries are installed [1]. [1] https://fedoraproject.org/wiki/Changes/Removing_ldconfig_scriptlets