Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 398051

Summary: [TRACKER] Files installed in /bin, /lib and /sbin linking to libraries in /usr/lib
Product: Quality Assurance Reporter: Michał Górny <mgorny>
Component: TrackersAssignee: Gentoo Quality Assurance Team <qa>
Status: CONFIRMED ---    
Severity: normal CC: alexander, bertrand, dschridde+gentoobugs, gef.kornflakes, gurligebis, jer, rene.rheaume, sam
Priority: Normal Keywords: Tracker
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=443590
Whiteboard:
Package list:
Runtime testing required: ---
Bug 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    
Bug Blocks:    
Attachments: Script to find broken executables
Report on a uclibc-based system

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>