1 |
On 7/8/21 11:15 AM, Matt Turner wrote: |
2 |
> On Thu, Jul 8, 2021 at 4:54 AM Michael Orlitzky <mjo@g.o> wrote: |
3 |
>> On Wed, 2021-07-07 at 22:01 -0700, Matt Turner wrote: |
4 |
>>> Enable these flags by default, since they effectively add no additional |
5 |
>>> dependencies: |
6 |
>> Why? This list should be getting smaller, not larger. |
7 |
>> |
8 |
>> Polluting the base profiles makes running a minimal system that much |
9 |
>> harder, and only "adds no dependencies" because people omit the |
10 |
>> corresponding dependencies -- a situation that has to change |
11 |
>> eventually. |
12 |
>> |
13 |
>> If they're actually important to a particular package, you should |
14 |
>> change the defaults for that package. |
15 |
> Not the file I'm changing, but I think the sentiment of the comment is |
16 |
> correct: profiles/prefix/make.defaults says: |
17 |
> |
18 |
> # Some USE-flags that only die-hards don't want: |
19 |
> |
20 |
> So, the thing about running a minimal system is... you already have |
21 |
> these dependencies installed. This doesn't change that... |
22 |
> |
23 |
> I could of course change the default of every bzip2/lzma/zstd in IUSE |
24 |
> (and might as well handle zlib too so we can remove it from |
25 |
> make.defaults!) but what practical advantage does that bring? |
26 |
> |
27 |
> I doubt there's a sensible reason to build without any of these USE |
28 |
> flags enabled. I think the claim that most people will want them |
29 |
> enabled is not really a question. So we should enable them by default. |
30 |
> I think that logic is pretty straightforward. If someone wants to |
31 |
> disable the flags for some reason, they of course still have that |
32 |
> option. |
33 |
|
34 |
I recently found exactly a sensible reason to build without these |
35 |
flags. I was cleaning up my abi_x86_32 use flags on an otherwise mostly |
36 |
x86_64 ~amd64 desktop system. Lots of things depend on these with |
37 |
${MULTILIB_USEDEP}. I of course have the actual programs themselves, |
38 |
but I don't need 32-bit versions of them for linking. So I now have |
39 |
|
40 |
``` |
41 |
|
42 |
a@gen5 ~/code $ grep "\-lzma" /etc/portage/package.use/* |
43 |
/etc/portage/package.use/package.use:dev-libs/elfutils valgrind -lzma |
44 |
-bzip2 #avoid multilib usedep on xz-utils and bzip2 |
45 |
/etc/portage/package.use/package.use:dev-libs/libxml2 -lzma -dbus |
46 |
#avoid multilib dep on xz-utils and dbus |
47 |
a@gen5 ~/code $ grep "\-bzip" /etc/portage/package.use/* |
48 |
/etc/portage/package.use/package.use:dev-libs/elfutils valgrind -lzma |
49 |
-bzip2 #avoid multilib usedep on xz-utils and bzip2 |
50 |
/etc/portage/package.use/package.use:media-libs/freetype -bzip2 #avoid |
51 |
multilib usedeps on bzip2 cairo requires [png] |
52 |
|
53 |
``` |
54 |
|
55 |
in package.use. |
56 |
|
57 |
> |
58 |
> If you can find a case where you wouldn't want to enable one of these |
59 |
> USE flags, please let me know and I'll reconsider my position. |
60 |
> |