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: 364211 398053 501680 883809 149472 229661 245417 245641 245645 247664 250500 287068 389375 398047 398049 398055 398061 398065 398067 398069 398071 398077 398079 398081 463808 700128 771078 883759 902829
Blocks:
  Show dependency tree
 
Reported: 2012-01-07 19:37 UTC by Michał Górny
Modified: 2024-03-03 23:03 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.
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-01-05 04:18:21 UTC
commit 114a15884faf88f202073de48812613b264f49e0 (HEAD -> master, origin/master, origin/HEAD)
Author: Eli Schwartz <eschwartz93@gmail.com>
Date:   Mon Jan 1 23:04:32 2024 -0500

    2024-01-05-usr-initramfs: add news item

    Revival of commit a79dd69b0cca439bc0c483c9193c79e0554819d0.

    Bug: https://bugs.gentoo.org/868306#c10
    Bug: https://bugs.gentoo.org/902829
    Bug: https://bugs.gentoo.org/915379
    Bug: https://bugs.gentoo.org/825078
    Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>