Gentoo Archives: gentoo-dev

From: Sam James <sam@g.o>
To: gentoo-dev@l.g.o
Cc: mgorny@g.o, base-system@g.o, Sam James <sam@g.o>
Subject: [gentoo-dev] [PATCH] profiles/base: add app-alternatives/{awk,bzip2,gzip,sh,tar} to @system
Date: Wed, 28 Dec 2022 16:05:07
Message-Id: 20221228160454.2923960-1-sam@gentoo.org
1 - Before this commit, nothing pulls in app-alternatives/sh, so we're relying on
2 app-shells/bash handling /bin/sh as an orphaned symlink (which is one of the big
3 things we're trying to move away from).
4
5 - Add in the others (app-alternatives/{awk,bzip2,gzip,tar}) to allow setup
6 via /etc/portage/package.use without adding these to @world manually,
7 this also lays the ground work for at some point removing specific implementations
8 in the future (after making sure ebuilds which need specific impls. depend on them).
9
10 - Note that there's two exceptions:
11 1. app-alternaitves/yacc
12
13 No need to explicitly add into @system, because we previously had virtual/yacc
14 so it'll get pulled in by ebuild dependencies anyway.
15
16 2. app-alternatives/lex
17
18 We never had virtual/lex before and packages very often explicitly
19 depend on sys-devel/flex. But this isn't a big deal given it's very unlikely
20 that a user wants to try modify lex yet and reflex is still very new as an
21 option in Gentoo.
22
23 That is, as time goes on and we test more to ensure it works with any lex,
24 it'll get pulled in as various ebuilds get updated anyway.
25
26 Bug: https://bugs.gentoo.org/886017
27 Bug: https://bugs.gentoo.org/886247
28 Signed-off-by: Sam James <sam@g.o>
29 ---
30 profiles/base/packages | 9 ++++++---
31 1 file changed, 6 insertions(+), 3 deletions(-)
32
33 diff --git a/profiles/base/packages b/profiles/base/packages
34 index e0cee163af993..533a67c70e05c 100644
35 --- a/profiles/base/packages
36 +++ b/profiles/base/packages
37 @@ -1,4 +1,4 @@
38 -# Copyright 1999-2020 Gentoo Authors
39 +# Copyright 1999-2022 Gentoo Authors
40 # Distributed under the terms of the GNU General Public License, v2
41
42 # Gentoo Base Profile
43 @@ -24,9 +24,12 @@
44 # of the minimum set of packages needed for any Gentoo based system.
45
46 *>=sys-apps/baselayout-2
47 +*app-alternatives/awk
48 +*app-alternatives/bzip2
49 +*app-alternatives/gzip
50 +*app-alternatives/sh
51 +*app-alternatives/tar
52 *app-admin/eselect
53 -*app-arch/bzip2
54 -*app-arch/gzip
55 *app-arch/tar
56 *app-arch/xz-utils
57 *app-shells/bash:0
58 --
59 2.39.0

Replies