Gentoo Archives: gentoo-dev

From: Joshua Kinard <kumba@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH] use.desc: add global USE flag 'split-sbin'
Date: Wed, 16 Oct 2019 03:08:23
Message-Id: 4fdaaef8-b25f-ee2f-505e-d647251d6af9@gentoo.org
In Reply to: Re: [gentoo-dev] [PATCH] use.desc: add global USE flag 'split-sbin' by David Seifert
1 On 10/15/2019 13:34, David Seifert wrote:
2 > On Tue, 2019-10-15 at 12:04 -0400, Mike Gilbert wrote:
3 >> On Tue, Oct 15, 2019 at 12:02 PM Mike Gilbert <floppym@g.o>
4 >> wrote:
5 >>> On Tue, Oct 15, 2019 at 8:00 AM David Seifert <soap@g.o>
6 >>> wrote:
7 >>>> On Sun, 2019-10-13 at 12:33 -0400, Mike Gilbert wrote:
8 >>>>> On Sat, Oct 12, 2019 at 1:52 PM David Seifert <soap@g.o>
9 >>>>> wrote:
10 >>>>>> On Sat, 2019-10-12 at 19:01 +0200, Dennis Schridde wrote:
11 >>>>>>> On Samstag, 12. Oktober 2019 18:02:28 CEST William Hubbs
12 >>>>>>> wrote:
13 >>>>>>>> On Sat, Oct 12, 2019 at 01:11:49PM +0200, Michał Górny
14 >>>>>>>> wrote:
15 >>>>>>>>> On Sat, 2019-10-12 at 13:00 +0200, David Seifert wrote:
16 >>>>>>>>>> * Some distros have not just merged / and /usr, they
17 >>>>>>>>>>
18 >>>>>>>>>> have also merged /usr/bin and /usr/sbin. By giving
19 >>>>>>>>>> users the choice of merging */bin and */sbin,
20 >>>>>>>>>> Gentoo follows suit.
21 >>>>>>>>>
22 >>>>>>>>> What about the scenario when /bin has been merged with
23 >>>>>>>>> /usr/sbin
24 >>>>>>>>> and /sbin with /usr/bin? ;-P
25 >>>>>>>>
26 >>>>>>>> I also don't see the need for something like this. The
27 >>>>>>>> idea of
28 >>>>>>>> the
29 >>>>>>>> /usr
30 >>>>>>>> merge is to have all binaries available in one place, and
31 >>>>>>>> there
32 >>>>>>>> really
33 >>>>>>>> is not a good justification for separating bin from sbin.
34 >>>>>>>
35 >>>>>>> Do I read this correctly? USE=-split-usr currently means
36 >>>>>>> that
37 >>>>>>> /bin,
38 >>>>>>> /sbin, /
39 >>>>>>> usr/bin and /usr/sbin point to the same directory?
40 >>>>>>>
41 >>>>>>> If that is not the case, then I agree that users should
42 >>>>>>> have the
43 >>>>>>> possibility
44 >>>>>>> to set it up like this and USE=-split-sbin should be
45 >>>>>>> supported.
46 >>>>>>>
47 >>>>>>> --Dennis
48 >>>>>>
49 >>>>>> I agree, I wasn't aware that USE=-split-usr implies the
50 >>>>>> complete 2-
51 >>>>>> level (/usr and *sbin) merge. In that case, all of this is
52 >>>>>> obsolete.
53 >>>>>
54 >>>>> That was NOT my intention when I introduced the split-usr USE
55 >>>>> flag.
56 >>>>>
57 >>>>> For bin/sbin, I would prefer to drop any conflicting links
58 >>>>> unconditionally. Do you have examples of scenarios where this
59 >>>>> is not
60 >>>>> possible?
61 >>>>>
62 >>>>
63 >>>> William has confirmed on IRC that USE=-split-usr performs the
64 >>>> complete
65 >>>> Fedora-esque /usr merge (which makes sense IMO).
66 >>>
67 >>> William's opinion is not the only one that matters.
68 >>
69 >> Sorry, I guess you are referring to the behavior baselayout? That
70 >> doesn't necessarily align with the global usage.
71 >>
72 >
73 > https://gitweb.gentoo.org/proj/baselayout.git/tree/Makefile#n93
74 >
75 > Clearly the usr-merge in baselayout intends to merge all these 4
76 > directories. There is currently no option to merge /usr and / but keep
77 > /bin and /sbin separate, so the most parsimonious solution here is to
78 > assume that usr-merge semantics in Gentoo is about merging all 4
79 > directories.
80
81 What is the source or origin point of the desire to merge /sbin into /bin?
82 I know Fedora/RedHat championed the /usr/[s]bin into /[s]bin bit, but this
83 is the first I've heard of trying to put all executables in one spot. I
84 have my doubts about such an idea, but want to see what the rationale is
85 this time before writing the idea off to the funny farm.
86
87 My understanding for the separation was system binaries that only the
88 superuser needs to touch go into /sbin and everything else into /bin. This
89 allowed for unpriv user PATHs to exclude /sbin (and in times antiquity, also
90 exclude /usr/sbin).
91
92 --
93 Joshua Kinard
94 Gentoo/MIPS
95 kumba@g.o
96 rsa6144/5C63F4E3F5C6C943 2015-04-27
97 177C 1972 1FB8 F254 BAD0 3E72 5C63 F4E3 F5C6 C943
98
99 "The past tempts us, the present confuses us, the future frightens us. And
100 our lives slip away, moment by moment, lost in that vast, terrible in-between."
101
102 --Emperor Turhan, Centauri Republic

Replies

Subject Author
Re: [gentoo-dev] [PATCH] use.desc: add global USE flag 'split-sbin' William Hubbs <williamh@g.o>