Bug 8446 - missing ldconfig cache in Cenbuild
Summary: missing ldconfig cache in Cenbuild
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Build system (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: LowPrio
Assignee: Bugzilla mail exporter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-11 13:41 CET by Adam Halim
Modified: 2024-11-19 13:18 CET (History)
0 users

See Also:
Acceptance Criteria:


Attachments

Description Adam Halim cendio 2024-11-11 13:41:23 CET
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.
Comment 1 Adam Halim cendio 2024-11-11 13:43:04 CET
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
>       ...
Comment 2 Adam Halim cendio 2024-11-14 08:39:24 CET
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

Note You need to log in before you can comment on or make changes to this bug.