public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] [PATCH] profiles/base: add app-alternatives/{awk,bzip2,gzip,sh,tar} to @system
@ 2022-12-28 16:04 Sam James
  2022-12-28 16:27 ` Sam James
  0 siblings, 1 reply; 4+ messages in thread
From: Sam James @ 2022-12-28 16:04 UTC (permalink / raw
  To: gentoo-dev; +Cc: mgorny, base-system, Sam James

- 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



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [gentoo-dev] [PATCH] profiles/base: add app-alternatives/{awk,bzip2,gzip,sh,tar} to @system
  2022-12-28 16:04 [gentoo-dev] [PATCH] profiles/base: add app-alternatives/{awk,bzip2,gzip,sh,tar} to @system Sam James
@ 2022-12-28 16:27 ` Sam James
  2022-12-28 18:52   ` Sam James
  0 siblings, 1 reply; 4+ messages in thread
From: Sam James @ 2022-12-28 16:27 UTC (permalink / raw
  To: gentoo-dev; +Cc: Michał Górny, base-system

[-- Attachment #1: Type: text/plain, Size: 1717 bytes --]



> 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.




[-- Attachment #2: Message signed with OpenPGP --]
[-- Type: application/pgp-signature, Size: 358 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-dev] [PATCH] profiles/base: add app-alternatives/{awk,bzip2,gzip,sh,tar} to @system
  2022-12-28 16:27 ` Sam James
@ 2022-12-28 18:52   ` Sam James
  2022-12-28 19:06     ` Sam James
  0 siblings, 1 reply; 4+ messages in thread
From: Sam James @ 2022-12-28 18:52 UTC (permalink / raw
  To: gentoo-dev; +Cc: Michał Górny, base-system

[-- Attachment #1: Type: text/plain, Size: 2284 bytes --]



> 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.


[-- Attachment #2: Message signed with OpenPGP --]
[-- Type: application/pgp-signature, Size: 358 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-dev] [PATCH] profiles/base: add app-alternatives/{awk,bzip2,gzip,sh,tar} to @system
  2022-12-28 18:52   ` Sam James
@ 2022-12-28 19:06     ` Sam James
  0 siblings, 0 replies; 4+ messages in thread
From: Sam James @ 2022-12-28 19:06 UTC (permalink / raw
  To: gentoo-dev; +Cc: Michał Górny, base-system

[-- Attachment #1: Type: text/plain, Size: 2453 bytes --]



> 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


[-- Attachment #2: Message signed with OpenPGP --]
[-- Type: application/pgp-signature, Size: 358 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-12-28 19:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-28 16:04 [gentoo-dev] [PATCH] profiles/base: add app-alternatives/{awk,bzip2,gzip,sh,tar} to @system Sam James
2022-12-28 16:27 ` Sam James
2022-12-28 18:52   ` Sam James
2022-12-28 19:06     ` Sam James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox