Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 645598 - app-portage/unsymlink-lib-12 doesn't detect symlink correctly on non-multilib amd64
Summary: app-portage/unsymlink-lib-12 doesn't detect symlink correctly on non-multilib...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-24 18:23 UTC by thomasg
Modified: 2018-01-24 20:08 UTC (History)
0 users

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


Attachments
strace (unsymlink-strace.txt,83.80 KB, text/plain)
2018-01-24 18:23 UTC, thomasg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description thomasg 2018-01-24 18:23:29 UTC
Created attachment 516498 [details]
strace

unsymlink-lib-12 aborts on a non-multilib amd64 system:
# unsymlink-lib --analyze
/usr/lib needs to be a symlink to lib64!
zsh: exit 1     unsymlink-lib --analyze

ls -al /usr/lib /lib
lrwxrwxrwx 1 root root  5 20. Nov 18:47 /lib -> lib64
lrwxrwxrwx 1 root root 10 23. Jan 23:35 /usr/lib -> /usr/lib64

attached is a strace
Comment 1 Mike Gilbert gentoo-dev 2018-01-24 18:37:28 UTC
% tar -tvf stage3-amd64-nomultilib-20180116T214503Z.tar.xz | grep "/lib ->"
lrwxrwxrwx root/root         0 2018-01-16 21:11 ./usr/local/lib -> lib64
lrwxrwxrwx root/root         0 2018-01-16 21:11 ./usr/lib -> lib64
lrwxrwxrwx root/root         0 2018-01-16 23:01 ./lib -> lib64

It seems that the /usr/lib symlink on your system is weird on your system in particular. Perhaps you manually deleted/re-created it at some point?
Comment 2 thomasg 2018-01-24 19:29:48 UTC
Good point.
I replaced these symlinks with relative ones, which does work.
Probably happened at some point while I moved the multilib system to no-multilib.

As far as I'm concerned this can be closed, perhaps it would be good to print a better error, but I'm not sure that's worth the trouble if it only happens on systems where something has been replaced manually.

This works:
#  ls -al /usr/local/lib /usr/lib /lib
lrwxrwxrwx 1 root root 5 24. Jan 20:25 /lib -> lib64
lrwxrwxrwx 1 root root 5 24. Jan 20:25 /usr/lib -> lib64
lrwxrwxrwx 1 root root 5  4. Sep 2014  /usr/local/lib -> lib64
Comment 3 thomasg 2018-01-24 19:31:19 UTC
Ah yeah, and: Thanks!
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-01-24 20:08:54 UTC
I guess it's better if it fails like this, and people realize there's something wrong. If someone edited symlinks, it's quite possible he also edited something more, and it's better he realizes something is fishy than ends up with broken system.