Gentoo Archives: gentoo-dev

From: Duncan <1i5t5.duncan@×××.net>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: rfc: locations of binaries and separate /usr
Date: Mon, 02 Jan 2012 05:41:00
In Reply to: Re: [gentoo-dev] Re: rfc: locations of binaries and separate /usr by "Olivier Crête"
Olivier Crête posted on Sun, 01 Jan 2012 15:17:50 -0500 as excerpted:

> On Sun, 2012-01-01 at 12:46 -0600, William Hubbs wrote: >> I don't think the /{bin,sbin,lib} and /usr/sbin directories should be >> deleted. >> >> However, what I would like to see is that the package maintainers would >> be responsible for creating any compatibility symlinks their package >> needs, not portage. I don't think it is a good idea to have portage or >> any package manager controling the migration. > > The other option is to do mv /bin/* /sbin/* /usr/sbin/* /usr/bin; and > then create symlinks from the other dirs to /usr/bin.. That can be done > in big move, it's the way Fedora is going to do it.
That's what I had in mind, and in fact have already been thinking about trying, here. Which is why I don't really like the idea of packages placing symlinks, since then it'd likely be the symlink copied last, overwriting the actual binary with the symlink... pointing at itself due to the symlinked dirs! Which is why I suggested a portage feature that would detect such collisions and die before installing them, potentially overwriting the binary with a symlink to itself! -- Duncan - List replies preferred. No HTML msgs. "Every nonfree program has a lord, a master -- and if you use the program, he is your master." Richard Stallman