The liblockfile.so.1 never ends up in /var/db/pkg/net-libs/liblockfile-1.06-r1/CONTENTS. Output from emerge: >>> Merging net-libs/liblockfile-1.06-r1 to / * Removing /usr/share/man * Removing /usr/share/info * Removing /usr/share/doc * >>> SetGID: [chmod o-r] /var/tmp/binpkgs/liblockfile-1.06-r1/bin/usr/bin/dotlockfile ... [ ok ]--- /usr/ --- /usr/bin/ >>> /usr/bin/dotlockfile --- /usr/include/ >>> /usr/include/lockfile.h >>> /usr/include/maillock.h --- /usr/lib/ >>> /usr/lib/liblockfile.so.1.0 >>> /usr/lib/liblockfile.so -> liblockfile.so.1.0 >>> Regenerating /etc/ld.so.cache... >>> net-libs/liblockfile-1.06-r1 merged. >>> Recording net-libs/liblockfile in "world" favorites file... note that no liblickfile.so.1 is ever mentioned. However, there is created a liblickfile.so.1 that does not belong to any package: hardened aports # ls -l /usr/lib/liblockfile.so* lrwxrwxrwx 1 root root 18 Aug 29 07:25 /usr/lib/liblockfile.so -> liblockfile.so.1.0 lrwxrwxrwx 1 root root 18 Aug 29 07:25 /usr/lib/liblockfile.so.1 -> liblockfile.so.1.0 -rwxr-xr-x 1 root root 9400 Aug 29 07:25 /usr/lib/liblockfile.so.1.0 hardened aports # equery b /usr/liblockfile.so.1 [ Searching for file(s) /usr/liblockfile.so.1 in *... ] hardened aports # When liblockfile is removed the /usr/lib/liblockfile.so.1 remains. liblockfile.so.1 also ends up in the NEEDED file to mailx /var/db/pkg/mail-client/mailx-8.1.2.20040524-r1/NEEDED:/bin/mail liblockfile.so.1,libc.so.0 I have no idea why this happens or how to fix it.
It is created by /sbin/ldconfig at the end of merge.
Created attachment 102887 [details, diff] I think this is a proper fix.
The patch works for me. Can it be committed so this bug can be closed?
Patch added in -r2. Thanks a lot guys. - ferdy