Mailinglist Archive: opensuse-factory (1578 mails)
| < Previous | Next > |
Re: [opensuse-factory] Proposal for 12.2, move all binaries under /usr
- From: Bruce Ferrell <bferrell@xxxxxxxxxxxx>
- Date: Thu, 24 Nov 2011 12:43:45 -0800
- Message-id: <4ECEAC81.3040903@baywinds.org>
On 11/24/2011 12:31 PM, Takashi Iwai wrote:
favorite, /usr/local/src
Just askin'
Bruce
--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-factory+owner@xxxxxxxxxxxx
At Thu, 24 Nov 2011 12:05:31 -0800,Just out of curiosity, if /usr goes away, what happens to /usr/local... And my
Greg KH wrote:
On Thu, Nov 24, 2011 at 10:32:08AM +0100, Takashi Iwai wrote:So, filesystem package will do it by some post script or such?
At Thu, 24 Nov 2011 09:48:50 +0100,The filesystem package will handle this, I'm working with the Red Hat
Ludwig Nussel wrote:
Greg KH wrote:It's my concern when I read the post, too. The idea itself sounds
As a proposal for 12.2, I would like to implement the move of allThis would be really massive and invasive change. Could you try this out
binaries to /usr/ like is being done at the moment in Fedora.
[...]
If there are no major objections, I'll start working on Base:system in
December.
in a branch first before bothering packagers, please?
The modifications needed are most likely not just simple spec file
changes even if it may seem so in the first place. Esp the update case
seems underestimated to me. Also keep in mind that Factory must still be
able
to bootstrap itself during the transition.
Has anyone considered modifying rpm to transparently take care of the
relocation?
nice, but I foresee many problems with this action.
Actually two things I thought of immediately:
- Updates
Can rpm replace a directory into a symlink when the directory isn't
empty? That is, when something is left in /lib/* (a left-over of
temporary file or some wild non-distro packages), /lib can't be
linked to /usr/lib yet. So, it'll be a mixed state without /usr/lib
symlink fallback.
people as they just solved this very problem, so yes, this will be taken
care of.
I can imagine that it contains /lib, /bin, etc as %ghost, and copy
all existing ones (cleverly with taking hard-links into accounts)
to /usr/ in %post. Any other methods may break something, I guess.
One problem is that this filesystem.rpm update becomes to a highMaybe more problem would be /bin -> /usr/bin, because the path mightI think the symlink pointing from /bin to /usr/bin should handle this,
be set in shebang. When you update bash, it's placed to /usr/bin,
but /bin -> /usr/bin symlink still doesn't exist. What happens if
you run a shell script of the old (still not updated) package?
why would the link not be there anymore?
dependency. When bash.rpm is updated with the new location, and if
user updates bash.rpm before filesystem.rpm, this will break badly.
Rewriting the spec files would be more or less systematically.And, can Tumbleweed handle this mess smoothly?It better, I'll be testing to ensure this works properly :)
- The spec file rewritesThe spec files look like they need to be rewritten. First glance, it
Many spec files contain the hard-coded /lib, /bin or /sbin.
Can we use this as is? Or if the change is needed, can we provide a
macro for sharing the spec for different versions?
"only" looks to be about 250 or so, again, most of this work is already
done for us in the link I posted.
It'd be still helpful if we have some macros, though.
thanks,
Takashi
favorite, /usr/local/src
Just askin'
Bruce
--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-factory+owner@xxxxxxxxxxxx
| < Previous | Next > |