• [gentoo-dev] [PATCH] profiles/base: add app-alternatives/{awk,bzip2,gzi

    From Sam James@21:1/5 to All on Wed Dec 28 17:10:01 2022
    - Before this commit, nothing pulls in app-alternatives/sh, so we're relying on
    app-shells/bash handling /bin/sh as an orphaned symlink (which is one of the big
    things we're trying to move away from).

    - Add in the others (app-alternatives/{awk,bzip2,gzip,tar}) to allow setup
    via /etc/portage/package.use without adding these to @world manually,
    this also lays the ground work for at some point removing specific implementations
    in the future (after making sure ebuilds which need specific impls. depend on them).

    - Note that there's two exceptions:
    1. app-alternaitves/yacc

    No need to explicitly add into @system, because we previously had virtual/yacc
    so it'll get pulled in by ebuild dependencies anyway.

    2. app-alternatives/lex

    We never had virtual/lex before and packages very often explicitly
    depend on sys-devel/flex. But this isn't a big deal given it's very unlikely
    that a user wants to try modify lex yet and reflex is still very new as an
    option in Gentoo.

    That is, as time goes on and we test more to ensure it works with any lex,
    it'll get pulled in as various ebuilds get updated anyway.

    Bug: https://bugs.gentoo.org/886017
    Bug: https://bugs.gentoo.org/886247
    Signed-off-by: Sam James <sam@gentoo.org>
    ---
    profiles/base/packages | 9 ++++++---
    1 file changed, 6 insertions(+), 3 deletions(-)

    diff --git a/profiles/base/packages b/profiles/base/packages
    index e0cee163af993..533a67c70e05c 100644
    --- a/profiles/base/packages
    +++ b/profiles/base/packages
    @@ -1,4 +1,4 @@
    -# Copyright 1999-2020 Gentoo Authors
    +# Copyright 1999-2022 Gentoo Authors
    # Distributed under the terms of the GNU General Public License, v2

    # Gentoo Base Profile
    @@ -24,9 +24,12 @@
    # of the minimum set of packages needed for any Gentoo based system.

    =sys-apps/baselayout-2
    +*app-alternatives/awk
    +*app-alternatives/bzip2
    +*app-alternatives/gzip
    +*app-alternatives/sh
    +*app-alternatives/tar
    *app-admin/eselect
    -*app-arch/bzip2
    -*app-arch/gzip
    *app-arch/tar
    *app-arch/xz-utils
    *app-shells/bash:0
    --
    2.39.0

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Sam James@21:1/5 to All on Wed Dec 28 17:30:02 2022
    On 28 Dec 2022, at 16:04, Sam James <sam@gentoo.org> wrote:

    - Before this commit, nothing pulls in app-alternatives/sh, so we're relying on
    app-shells/bash handling /bin/sh as an orphaned symlink (which is one of the big
    things we're trying to move away from).

    - Add in the others (app-alternatives/{awk,bzip2,gzip,tar}) to allow setup
    via /etc/portage/package.use without adding these to @world manually,
    this also lays the ground work for at some point removing specific implementations
    in the future (after making sure ebuilds which need specific impls. depend on them).

    - Note that there's two exceptions:
    1. app-alternaitves/yacc

    No need to explicitly add into @system, because we previously had virtual/yacc
    so it'll get pulled in by ebuild dependencies anyway.

    2. app-alternatives/lex

    We never had virtual/lex before and packages very often explicitly
    depend on sys-devel/flex. But this isn't a big deal given it's very unlikely
    that a user wants to try modify lex yet and reflex is still very new as an
    option in Gentoo.

    That is, as time goes on and we test more to ensure it works with any lex,
    it'll get pulled in as various ebuilds get updated anyway.

    Bug: https://bugs.gentoo.org/886017
    Bug: https://bugs.gentoo.org/886247
    Signed-off-by: Sam James <sam@gentoo.org>
    ---
    profiles/base/packages | 9 ++++++---
    1 file changed, 6 insertions(+), 3 deletions(-)


    FWIW, I'd like to push this today to avoid users having to deal
    with the migration "twice" if they have eselect-sh installed,
    given app-alternatives/* got stabled yesterday/early today.




    -----BEGIN PGP SIGNATURE-----

    iNUEARYKAH0WIQQlpruI3Zt2TGtVQcJzhAn1IN+RkAUCY6xubV8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0MjVB NkJCODhERDlCNzY0QzZCNTU0MUMyNzM4NDA5RjUyMERGOTE5MAAKCRBzhAn1IN+R kFKjAP9ObnPk/U26Wt0ZKUvdo1OWCsD2yXyD1JrPAnlmnp3nYwEAhzZx2vEVQzdg hUYMjRz4rLMG+JwRs6T+3JhQv46+ZgY=
    =mfLE
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Sam James@21:1/5 to All on Wed Dec 28 20:10:02 2022
    On 28 Dec 2022, at 18:52, Sam James <sam@gentoo.org> wrote:



    On 28 Dec 2022, at 16:27, Sam James <sam@gentoo.org> wrote:



    On 28 Dec 2022, at 16:04, Sam James <sam@gentoo.org> wrote:

    - Before this commit, nothing pulls in app-alternatives/sh, so we're relying on
    app-shells/bash handling /bin/sh as an orphaned symlink (which is one of the big
    things we're trying to move away from).

    - Add in the others (app-alternatives/{awk,bzip2,gzip,tar}) to allow setup >>> via /etc/portage/package.use without adding these to @world manually,
    this also lays the ground work for at some point removing specific implementations
    in the future (after making sure ebuilds which need specific impls. depend on them).

    - Note that there's two exceptions:
    1. app-alternaitves/yacc

    No need to explicitly add into @system, because we previously had virtual/yacc
    so it'll get pulled in by ebuild dependencies anyway.

    2. app-alternatives/lex

    We never had virtual/lex before and packages very often explicitly
    depend on sys-devel/flex. But this isn't a big deal given it's very unlikely
    that a user wants to try modify lex yet and reflex is still very new as an
    option in Gentoo.

    That is, as time goes on and we test more to ensure it works with any lex,
    it'll get pulled in as various ebuilds get updated anyway.

    Bug: https://bugs.gentoo.org/886017
    Bug: https://bugs.gentoo.org/886247
    Signed-off-by: Sam James <sam@gentoo.org>
    ---
    profiles/base/packages | 9 ++++++---
    1 file changed, 6 insertions(+), 3 deletions(-)


    FWIW, I'd like to push this today to avoid users having to deal
    with the migration "twice" if they have eselect-sh installed,
    given app-alternatives/* got stabled yesterday/early today.

    After discussion in #gentoo-pms, I'm going to push this
    with only the +s (i.e. keep gzip + bzip2 in @system for now),
    as PMS at least for gzip is clear it wants GNU gzip available,
    and it says "bzip2" must be as well.

    I'd like to revisit this another time and see about changing that
    if appropriate, but that's tangential to the reason I'm trying to do
    this quickly (minimising impact for users).

    I'll open a bug so we don't forget to do that revisiting.


    https://bugs.gentoo.org/888777


    -----BEGIN PGP SIGNATURE-----

    iNUEARYKAH0WIQQlpruI3Zt2TGtVQcJzhAn1IN+RkAUCY6yToF8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0MjVB NkJCODhERDlCNzY0QzZCNTU0MUMyNzM4NDA5RjUyMERGOTE5MAAKCRBzhAn1IN+R kHhMAP9x/g1O19UlUCSa/dt/T4yXiGs36dNsOH3Fljsh+OQnHQD9E/apFoYc4uTL 9KfBG9XGJ81V0pw6o2MoC3FYDgiNfQI=
    =gEGr
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Sam James@21:1/5 to All on Wed Dec 28 20:00:01 2022
    On 28 Dec 2022, at 16:27, Sam James <sam@gentoo.org> wrote:



    On 28 Dec 2022, at 16:04, Sam James <sam@gentoo.org> wrote:

    - Before this commit, nothing pulls in app-alternatives/sh, so we're relying on
    app-shells/bash handling /bin/sh as an orphaned symlink (which is one of the big
    things we're trying to move away from).

    - Add in the others (app-alternatives/{awk,bzip2,gzip,tar}) to allow setup >> via /etc/portage/package.use without adding these to @world manually,
    this also lays the ground work for at some point removing specific implementations
    in the future (after making sure ebuilds which need specific impls. depend on them).

    - Note that there's two exceptions:
    1. app-alternaitves/yacc

    No need to explicitly add into @system, because we previously had virtual/yacc
    so it'll get pulled in by ebuild dependencies anyway.

    2. app-alternatives/lex

    We never had virtual/lex before and packages very often explicitly
    depend on sys-devel/flex. But this isn't a big deal given it's very unlikely
    that a user wants to try modify lex yet and reflex is still very new as an
    option in Gentoo.

    That is, as time goes on and we test more to ensure it works with any lex,
    it'll get pulled in as various ebuilds get updated anyway.

    Bug: https://bugs.gentoo.org/886017
    Bug: https://bugs.gentoo.org/886247
    Signed-off-by: Sam James <sam@gentoo.org>
    ---
    profiles/base/packages | 9 ++++++---
    1 file changed, 6 insertions(+), 3 deletions(-)


    FWIW, I'd like to push this today to avoid users having to deal
    with the migration "twice" if they have eselect-sh installed,
    given app-alternatives/* got stabled yesterday/early today.

    After discussion in #gentoo-pms, I'm going to push this
    with only the +s (i.e. keep gzip + bzip2 in @system for now),
    as PMS at least for gzip is clear it wants GNU gzip available,
    and it says "bzip2" must be as well.

    I'd like to revisit this another time and see about changing that
    if appropriate, but that's tangential to the reason I'm trying to do
    this quickly (minimising impact for users).

    I'll open a bug so we don't forget to do that revisiting.


    -----BEGIN PGP SIGNATURE-----

    iNUEARYKAH0WIQQlpruI3Zt2TGtVQcJzhAn1IN+RkAUCY6yQil8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0MjVB NkJCODhERDlCNzY0QzZCNTU0MUMyNzM4NDA5RjUyMERGOTE5MAAKCRBzhAn1IN+R kIaiAPwPE2fR+R1a+OWMrswCNMuspdd7iJUYmaW3pjxxtMDwqwEAiNSmcnEkKlG2 ZNnXdZPn3D6eVMWQlPiu7j49OQyDsAo=
    =NjWI
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)