1 |
On Thu, 1 Aug 2013 16:07:12 -0500 |
2 |
William Hubbs <williamh@g.o> wrote: |
3 |
|
4 |
> On Thu, Aug 01, 2013 at 04:04:34PM -0400, Alexis Ballier wrote: |
5 |
> > On Wed, 31 Jul 2013 19:36:14 -0500 |
6 |
> > William Hubbs <williamh@g.o> wrote: |
7 |
> > [...] |
8 |
> > > First, we will not have to worry any more about making sure all |
9 |
> > > of the libraries needed by binaries in /{bin,sbin} are in /lib*. |
10 |
> > > Also, we will not have to be concerned about programs on / trying |
11 |
> > > to read data from /usr/share in early boot. |
12 |
> |
13 |
> First off, this is all related to Linux only, so keep that in mind |
14 |
> when I answer below. |
15 |
> |
16 |
> > Why are those programs in / in the first place ? If they can't work |
17 |
> > without /usr they are sort of useless in /. |
18 |
> |
19 |
> Not really. if you use an initramfs or some early boot mechanism like |
20 |
> that to make sure / and /usr are mounted at the same time, that |
21 |
> separation is irrelivant. |
22 |
|
23 |
Exactly :) so for the sake of consistency these should be in /usr and |
24 |
not be lying to be some core enough program that doesn't need /usr. |
25 |
|
26 |
[...] |
27 |
> > I have no opinion whether separate usr should be supported or not: I |
28 |
> > have not been using this layout since years. However, I strongly |
29 |
> > prefer some kind of consistency: The traditional layout with a |
30 |
> > minimal / to boot or the usr move both have their advantages; if we |
31 |
> > go for something in between we get none of them. |
32 |
> |
33 |
> What we currently have is in between. To really make separate /usr |
34 |
> work would require a /share top level directory, patching gettext at |
35 |
> least to look in both /usr/share/locale and /share/locale, and who |
36 |
> knows what else. |
37 |
|
38 |
I haven't tried but I seriously hope gettext can provide non localized |
39 |
strings if it cannot access the localized ones. This is the very |
40 |
least I would expect from a system without /usr. |
41 |
|
42 |
> I'm not advocating the /usr merge at this time, maybe later, but right |
43 |
> now I just want to make it official that we do not support |
44 |
> separate /usr without an early boot mechanism like an initramfs or |
45 |
> the sep-usr flag on busybox under Linux. |
46 |
|
47 |
An announcement to the users and a council decision telling the |
48 |
developer community to try to support separate usr or not are different |
49 |
things. I'm all for the former, and it has already been done I think, |
50 |
but your request sounded more like the latter. |
51 |
|
52 |
> > I think most of what is in / currently is maintained by |
53 |
> > base-system@. base-system@, or the council, could decide to provide |
54 |
> > a way to drop the self-contained / properly. Say, you have to |
55 |
> > define a variable in make.conf, let's call it GENTOO_USR_MOVE, and |
56 |
> > this variable would no-op gen_usr_ldscript (they waste space |
57 |
> > if /usr is required anyway) and then some packages could decide to |
58 |
> > install to /usr instead of / if this variable is set, etc. Once |
59 |
> > this is ready, you can define this variable in the profiles and get |
60 |
> > all the profit advertised by Fedora usr move. |
61 |
> |
62 |
> (putting my base-system hat on) |
63 |
> |
64 |
> I'm not sure why we would need a profile variable like you are |
65 |
> suggesting. |
66 |
|
67 |
The idea is to do things incrementally and opt-in. If all of a sudden |
68 |
someone starts disabling gen_usr_ldscript and moving things to /usr, |
69 |
I would bet there will be someone else yelling at him. If, on the other |
70 |
hand, usr-moved systems have been in place for some time, are easy to |
71 |
transition to, and nobody cares about maintaining a /usr barrier, I |
72 |
would expect much less people to be against it being the default. |
73 |
The variable also has the advantage that it makes it possible to |
74 |
reverse course easily. |
75 |
|
76 |
The end result will very likely be the same but one is perceived as |
77 |
dictatorship and the other as democracy and freedom of choice :) |
78 |
|
79 |
Alexis. |