Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 145450 - net-libs/liblockfile-1.06-r1 creates an orphan /usr/lib/liblockfile.so.1
Summary: net-libs/liblockfile-1.06-r1 creates an orphan /usr/lib/liblockfile.so.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-29 00:43 UTC by Natanael Copa
Modified: 2006-12-20 05:23 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
I think this is a proper fix. (liblockfile-1.06-majorversionsosymlink.patch,613 bytes, patch)
2006-11-27 21:38 UTC, Bo Ørsted Andresen (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Natanael Copa 2006-08-29 00:43:04 UTC
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.
Comment 1 Bo Ørsted Andresen (RETIRED) gentoo-dev 2006-11-27 20:54:12 UTC
It is created by /sbin/ldconfig at the end of merge.
Comment 2 Bo Ørsted Andresen (RETIRED) gentoo-dev 2006-11-27 21:38:56 UTC
Created attachment 102887 [details, diff]
I think this is a proper fix.
Comment 3 Natanael Copa 2006-11-28 03:33:49 UTC
The patch works for me. Can it be committed so this bug can be closed?
Comment 4 Fernando J. Pereda (RETIRED) gentoo-dev 2006-12-20 05:23:22 UTC
Patch added in -r2. Thanks a lot guys.

- ferdy