Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] /bin and /sbin to /usr
Date: Tue, 10 Aug 2010 21:06:34
Message-Id: AANLkTinJYC+ESx6g94+MVhfR59QYmrX1S0vcvq6c0Ufs@mail.gmail.com
In Reply to: Re: [gentoo-dev] /bin and /sbin to /usr by "Paweł Hajdan
On Tue, Aug 10, 2010 at 10:01 AM, "Paweł Hajdan, Jr." wrote:
> On 8/10/10 4:22 AM, Eray Aslan wrote: >> 1. Is this OK or should we file bugs against binaries in {/bin,/sbin} linking >> against libraries in /usr/lib? Fix is relatively easy in general (give >> --libdir=/lib against the config script) > > I'd suggest a fix that is guaranteed to work: make portage refuse to > install anything in /bin that depends on /usr (based on say ldd check).
not a chance. some of the reasons why this isnt realistic: - ldd is not portable - ldd *executes* things - ldd cannot easily/sanely handle a mix of installed system paths and temporary paths ($D) - ldd will not work with cross-compiling - ldd shows the entire dependency tree, not just the program in question ... so one broken library can easily cause other packages to be flagged - even if ldd showed only direct dependencies, one broken library package could break the packages that use it - prevents historical compat links that are otherwise irrelevant - the vast majority of the time, users dont give a sh*t, and this doesnt affect them -- people who do a sep /usr mount from / are a small fraction -mike