Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 398051 - [TRACKER] Files installed in /bin, /lib and /sbin linking to libraries in /usr/lib
Summary: [TRACKER] Files installed in /bin, /lib and /sbin linking to libraries in /us...
Status: CONFIRMED
Alias: None
Product: Quality Assurance
Classification: Unclassified
Component: Trackers (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Quality Assurance Team
URL:
Whiteboard:
Keywords: Tracker
: 245729 (view as bug list)
Depends on: 229661 245417 364211 389375 398053 501680 771078 245641 245645 247664 250500 287068 398047 398049 398055 398061 398065 398067 398069 398071 398077 398079 398081 463808
Blocks:
  Show dependency tree
 
Reported: 2012-01-07 19:37 UTC by Michał Górny
Modified: 2021-07-21 00:41 UTC (History)
8 users (show)

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


Attachments
Script to find broken executables (find-usr-linkage.sh,478 bytes, text/plain)
2012-01-07 21:31 UTC, Michał Górny
Details
Report on a uclibc-based system (slash-linking-to-usr.txt,66.96 KB, text/plain)
2015-03-29 00:07 UTC, René Rhéaume
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-01-07 19:37:52 UTC
Per filesystem hierarchy, files installed in /bin, /lib and /sbin should be self-sufficient and not link to libraries installed in /usr. Such linking is invalid and makes the files unusable without /usr mounted.
Comment 1 William Hubbs gentoo-dev 2012-01-07 20:25:48 UTC
This will all resolve itself when the / -> /usr migration happens.

Go ahead and open bugs and add them here though so we know which
packages need to be fixed.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-01-07 21:31:16 UTC
Created attachment 298263 [details]
Script to find broken executables

Requires portage-utils but gives a nice sorted and grouped output.
Comment 3 Dennis Schridde 2012-02-25 01:39:47 UTC
Dupe of bug #245729?
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2012-03-20 10:22:52 UTC
*** Bug 245729 has been marked as a duplicate of this bug. ***
Comment 5 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2014-02-12 20:21:52 UTC
Was wondering - wouldn't it make sense to move their configuration files from /etc to /usr/etc , since there is also no point in keeping them in /etc, if they require /usr to be mounted first?
Comment 6 Dennis Schridde 2014-02-12 20:55:42 UTC
(In reply to Bjarke Istrup Pedersen from comment #5)
> Was wondering - wouldn't it make sense to move their configuration files
> from /etc to /usr/etc , since there is also no point in keeping them in
> /etc, if they require /usr to be mounted first?

Afaik in Unix philosphy /usr are the Unix Shared Resources - shared between several computers, e.g. via NFS. For that reason /usr has no directory for configuration files.
Comment 7 René Rhéaume 2015-03-29 00:07:58 UTC
Created attachment 399992 [details]
Report on a uclibc-based system

I use a different script (because busybox ash does not like piping a for statement to another for) on my uclibc-based system a I get many binaries linking to the shared version of libgcc in /usr . Should I remove the shared library manually, then rebuild the affected packages, thus forcing the use of the static version?

I will not file a bug against app-shells/fish because this shell is really an interactive shell, not something you run scripts on it.

However, nano linking to libmagic deserves a bug report, in my opinion.