Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 907377 (ruby31-stable) - dev-lang/ruby:3.1 stable request
Summary: dev-lang/ruby:3.1 stable request
Status: RESOLVED FIXED
Alias: ruby31-stable
Product: Gentoo Linux
Classification: Unclassified
Component: Stabilization (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords: CC-ARCHES
: 910965 (view as bug list)
Depends on:
Blocks: 899596
  Show dependency tree
 
Reported: 2023-05-29 16:22 UTC by Sam James
Modified: 2023-07-25 13:51 UTC (History)
1 user (show)

See Also:
Package list:
dev-lang/ruby-3.1.4-r2 app-eselect/eselect-ruby-20221225 dev-ruby/did_you_mean-1.6.3 dev-ruby/rdoc-6.3.3-r1 dev-ruby/rdoc-6.4.0 dev-ruby/rubygems-3.3.26 dev-ruby/bundler-2.3.26
Runtime testing required: ---
nattka: sanity-check-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-29 16:22:02 UTC
Please test and mark stable this slot of dev-lang/ruby and its dependencies.

This ruby slot makes use of use.stable.mask to keep the ruby_targets_ruby31 USE flag masked on stable, so in addition to adding keywords you will also need to remove the ruby31 entry in your arch package.use.stable and make.defaults file. This is similar to how python slots work. In summary:

use.stable.mask: remove ruby_targets_ruby31 entry
make.defaults: remove the RUBY_TARGETS entry to revert to the new default version

---

I'm going slowly as this is my first time doing this, may not kick this off today.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-29 16:22:13 UTC
(In reply to Sam James from comment #0)
> I'm going slowly as this is my first time doing this, may not kick this off
> today.

Next step is I need to replicate these:

commit a9633a06ca7a9fd986d06c637b990c0edfbea066
Author: Hans de Graaff <graaff@gentoo.org>
Date:   Sun Jan 15 09:45:19 2023 +0100

    profiles/base: set base profile defaults for ruby30

    Allow ruby_targets_ruby30 to be used in stable packages and set both
    ruby27 and ruby30 as default ruby targets. We cannot switch directly to
    ruby30-only since we need to keep a working ruby+dependencies at all
    times to allow proper installation of packages.

    https://bugs.gentoo.org/890915

    Signed-off-by: Hans de Graaff <graaff@gentoo.org>

commit 8d7b0aba3f26df6842d76b189986b5ec013137b2
Author: Hans de Graaff <graaff@gentoo.org>
Date:   Sun Jan 15 09:38:46 2023 +0100

    profiles/arch: replicate ruby settings for each stable arch

    Replicate the current base use.stable.mask and make.defaults settings
    for each arch with a stable ruby to allow ruby30 to be unmasked for each
    arch individually. See https://bugs.gentoo.org/890915

    Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Comment 2 NATTkA bot gentoo-dev 2023-05-29 16:24:18 UTC Comment hidden (obsolete)
Comment 3 Larry the Git Cow gentoo-dev 2023-05-29 18:30:52 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9be832e2fafc36b9539224b28f4e7b7e1754835

commit f9be832e2fafc36b9539224b28f4e7b7e1754835
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-05-29 18:30:08 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-05-29 18:30:45 +0000

    profiles/base: set base profile defaults for ruby31
    
    Allow ruby_targets_ruby31 to be used in stable packages and set both
    ruby30 and ruby31 as default ruby targets. We cannot switch directly to
    ruby31-only since we need to keep a working ruby+dependencies at all
    times to allow proper installation of packages.
    
    Bug: https://bugs.gentoo.org/907377
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/base/make.defaults   | 4 ++--
 profiles/base/use.stable.mask | 9 ++++-----
 2 files changed, 6 insertions(+), 7 deletions(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=48a15993318593dc8f0fcd5ff5f7052e3ea67c73

commit 48a15993318593dc8f0fcd5ff5f7052e3ea67c73
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-05-29 18:28:48 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-05-29 18:30:44 +0000

    profiles/arch: replicate ruby settings for each stable arch
    
    Replicate the current base use.stable.mask and make.defaults settings
    for each arch with a stable ruby to allow ruby31 to be unmasked for each
    arch individually.
    
    Bug: https://bugs.gentoo.org/907377
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/arch/amd64/make.defaults           | 4 ++++
 profiles/arch/amd64/use.stable.mask         | 4 ++++
 profiles/arch/arm/make.defaults             | 4 ++++
 profiles/arch/arm/use.stable.mask           | 4 ++++
 profiles/arch/arm64/make.defaults           | 4 ++++
 profiles/arch/arm64/use.stable.mask         | 4 ++++
 profiles/arch/hppa/make.defaults            | 4 ++++
 profiles/arch/hppa/use.stable.mask          | 4 ++++
 profiles/arch/powerpc/ppc32/make.defaults   | 4 ++++
 profiles/arch/powerpc/ppc32/use.stable.mask | 4 ++++
 profiles/arch/powerpc/ppc64/make.defaults   | 4 ++++
 profiles/arch/powerpc/ppc64/use.stable.mask | 4 ++++
 profiles/arch/sparc/make.defaults           | 4 ++++
 profiles/arch/sparc/use.stable.mask         | 4 ++++
 profiles/arch/x86/make.defaults             | 4 ++++
 profiles/arch/x86/use.stable.mask           | 4 ++++
 16 files changed, 64 insertions(+)
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-29 18:34:47 UTC
Instructions:
1. tatt -b 907377 (or similar) [on testing machine]
2. In /etc/portage/profile/use.stable.mask, add -ruby_targets_ruby31 [on testing machine]
3. In /etc/portage/profile/make.defaults, set RUBY_TARGETS="ruby31" [on testing machine]
4. Run the useflags script from step 1 [on testing machine] (may need to do a world upgrade)
5. Once done, immediately commit the results.
6. Commit changes to use.stable.mask in gentoo.git for ${ARCH}: remove ruby_targets_ruby31 entry
7. Commit changes to make.defaults in gentoo.git for ${ARCH}: remove the RUBY_TARGETS entry to revert to the new default version

Please ignore the sanity check on the bug, it's just because of how ruby works in gentoo right now.
Comment 5 NATTkA bot gentoo-dev 2023-05-29 18:36:27 UTC Comment hidden (obsolete)
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-29 18:37:07 UTC
(In reply to Sam James from comment #1)
> (In reply to Sam James from comment #0)
> > I'm going slowly as this is my first time doing this, may not kick this off
> > today.
> 
> Next step is I need to replicate these:
> 

Done that.

Once this bug is done, I need to replicate:

commit 9e0485092e849ad54a161824833af6b94ea7c2ae
Author: Hans de Graaff <graaff@gentoo.org>
Date:   Sun Feb 26 09:40:56 2023 +0100

    eclass/ruby-utils.eclass: make ruby30 the preferred stable ruby

    Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Comment 7 NATTkA bot gentoo-dev 2023-05-29 19:08:15 UTC Comment hidden (obsolete)
Comment 8 Arthur Zamarin archtester Gentoo Infrastructure gentoo-dev Security 2023-05-29 19:34:08 UTC
ppc done
Comment 9 NATTkA bot gentoo-dev 2023-05-29 19:36:13 UTC Comment hidden (obsolete)
Comment 10 Arthur Zamarin archtester Gentoo Infrastructure gentoo-dev Security 2023-05-29 19:38:58 UTC
arm done
Comment 11 NATTkA bot gentoo-dev 2023-05-29 19:40:14 UTC Comment hidden (obsolete)
Comment 12 Arthur Zamarin archtester Gentoo Infrastructure gentoo-dev Security 2023-05-29 19:43:11 UTC
ppc64 done
Comment 13 Arthur Zamarin archtester Gentoo Infrastructure gentoo-dev Security 2023-05-29 19:44:56 UTC
arm64 done
Comment 14 Larry the Git Cow gentoo-dev 2023-05-29 19:45:02 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9bd8782134dc2b2cb1ccc8fe3c69efd8a5fb171e

commit 9bd8782134dc2b2cb1ccc8fe3c69efd8a5fb171e
Author:     Arthur Zamarin <arthurzam@gentoo.org>
AuthorDate: 2023-05-29 19:44:04 +0000
Commit:     Arthur Zamarin <arthurzam@gentoo.org>
CommitDate: 2023-05-29 19:44:04 +0000

    profiles/arch/arm64: enable RUBY_TARGETS=ruby31
    
    Bug: https://bugs.gentoo.org/907377
    Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>

 profiles/arch/arm64/make.defaults   | 4 ----
 profiles/arch/arm64/use.stable.mask | 4 ----
 2 files changed, 8 deletions(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c3b9ce4d05bdac74f506a09d899f17bb905321bd

commit c3b9ce4d05bdac74f506a09d899f17bb905321bd
Author:     Arthur Zamarin <arthurzam@gentoo.org>
AuthorDate: 2023-05-29 19:39:53 +0000
Commit:     Arthur Zamarin <arthurzam@gentoo.org>
CommitDate: 2023-05-29 19:39:53 +0000

    profiles/arch/ppc64: enable RUBY_TARGETS=ruby31
    
    Bug: https://bugs.gentoo.org/907377
    Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>

 profiles/arch/powerpc/ppc64/make.defaults   | 4 ----
 profiles/arch/powerpc/ppc64/use.stable.mask | 4 ----
 2 files changed, 8 deletions(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a500b32dd99216728622e23105b7517bc753fef

commit 4a500b32dd99216728622e23105b7517bc753fef
Author:     Arthur Zamarin <arthurzam@gentoo.org>
AuthorDate: 2023-05-29 19:37:45 +0000
Commit:     Arthur Zamarin <arthurzam@gentoo.org>
CommitDate: 2023-05-29 19:37:45 +0000

    profiles/arch/arm: enable RUBY_TARGETS=ruby31
    
    Bug: https://bugs.gentoo.org/907377
    Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>

 profiles/arch/arm/make.defaults   | 4 ----
 profiles/arch/arm/use.stable.mask | 4 ----
 2 files changed, 8 deletions(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac060050c746bcbcc5655b945b81337c77906a3a

commit ac060050c746bcbcc5655b945b81337c77906a3a
Author:     Arthur Zamarin <arthurzam@gentoo.org>
AuthorDate: 2023-05-29 19:30:01 +0000
Commit:     Arthur Zamarin <arthurzam@gentoo.org>
CommitDate: 2023-05-29 19:33:46 +0000

    profiles/arch/ppc32: enable RUBY_TARGETS=ruby31
    
    Bug: https://bugs.gentoo.org/907377
    Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>

 profiles/arch/powerpc/ppc32/make.defaults   | 4 ----
 profiles/arch/powerpc/ppc32/use.stable.mask | 4 ----
 2 files changed, 8 deletions(-)
Comment 15 NATTkA bot gentoo-dev 2023-05-29 19:48:13 UTC Comment hidden (obsolete)
Comment 16 Arthur Zamarin archtester Gentoo Infrastructure gentoo-dev Security 2023-05-29 20:01:15 UTC
amd64 done
Comment 17 Larry the Git Cow gentoo-dev 2023-05-29 20:01:39 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c042e28628e134a0963aaa081cec4023a08c2ae8

commit c042e28628e134a0963aaa081cec4023a08c2ae8
Author:     Arthur Zamarin <arthurzam@gentoo.org>
AuthorDate: 2023-05-29 20:00:43 +0000
Commit:     Arthur Zamarin <arthurzam@gentoo.org>
CommitDate: 2023-05-29 20:01:24 +0000

    profiles/arch/amd64: enable RUBY_TARGETS=ruby31
    
    Bug: https://bugs.gentoo.org/907377
    Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>

 profiles/arch/amd64/make.defaults   | 4 ----
 profiles/arch/amd64/use.stable.mask | 4 ----
 2 files changed, 8 deletions(-)
Comment 18 NATTkA bot gentoo-dev 2023-05-29 20:04:14 UTC Comment hidden (obsolete)
Comment 19 Larry the Git Cow gentoo-dev 2023-05-29 20:10:07 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a66eec1add1d02f63151bba808010154ef3abea

commit 3a66eec1add1d02f63151bba808010154ef3abea
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-05-29 20:07:24 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-05-29 20:09:37 +0000

    profiles/arch/hppa: enable RUBY_TARGETS=ruby31
    
    Bug: https://bugs.gentoo.org/907377
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/arch/hppa/make.defaults   | 4 ----
 profiles/arch/hppa/use.stable.mask | 4 ----
 2 files changed, 8 deletions(-)
Comment 20 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-29 20:10:22 UTC
hppa done
Comment 21 NATTkA bot gentoo-dev 2023-05-29 20:12:13 UTC Comment hidden (obsolete)
Comment 22 Larry the Git Cow gentoo-dev 2023-05-29 20:21:00 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=016bdbd0c5cd0456d64874eccb7a3ca5b700e0b7

commit 016bdbd0c5cd0456d64874eccb7a3ca5b700e0b7
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-05-29 20:20:32 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-05-29 20:20:32 +0000

    profiles/arch/x86: enable RUBY_TARGETS=ruby31
    
    Bug: https://bugs.gentoo.org/907377
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/arch/x86/make.defaults   | 4 ----
 profiles/arch/x86/use.stable.mask | 4 ----
 2 files changed, 8 deletions(-)
Comment 23 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-29 20:21:10 UTC
x86 done
Comment 24 NATTkA bot gentoo-dev 2023-05-29 20:24:14 UTC
Sanity check failed:

> dev-lang/ruby-3.1.4-r2
>   pdepend sparc stable profile default/linux/sparc/17.0 (8 total)
>     >=dev-ruby/bundler-2.3.3[ruby_targets_ruby31(-)]
>     >=dev-ruby/did_you_mean-1.6.1[ruby_targets_ruby31(-)]
>     >=dev-ruby/json-2.6.1[ruby_targets_ruby31(-)]
>     >=dev-ruby/minitest-5.15.0[ruby_targets_ruby31(-)]
>     >=dev-ruby/power_assert-2.0.1[ruby_targets_ruby31(-)]
>     >=dev-ruby/rake-13.0.6[ruby_targets_ruby31(-)]
>     >=dev-ruby/rbs-2.1.0[ruby_targets_ruby31(-)]
>     >=dev-ruby/rdoc-6.3.3[ruby_targets_ruby31(-)]
>     >=dev-ruby/rexml-3.2.5[ruby_targets_ruby31(-)]
>     >=dev-ruby/rss-0.2.9[ruby_targets_ruby31(-)]
>     >=dev-ruby/test-unit-3.5.3[ruby_targets_ruby31(-)]
>     >=dev-ruby/typeprof-0.12.2[ruby_targets_ruby31(-)]
>     virtual/rubygems[ruby_targets_ruby31(-)]
Comment 25 Larry the Git Cow gentoo-dev 2023-05-30 01:28:00 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=780a29cd9228988031ed0243d764d478d0482045

commit 780a29cd9228988031ed0243d764d478d0482045
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-05-30 01:27:10 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-05-30 01:27:10 +0000

    ruby-utils.eclass: make ruby31 the preferred stable ruby
    
    Bug: https://bugs.gentoo.org/907377
    Signed-off-by: Sam James <sam@gentoo.org>

 eclass/ruby-utils.eclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a85b855198fd1958e441c42141f64d00f177ac8

commit 8a85b855198fd1958e441c42141f64d00f177ac8
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-05-30 01:25:26 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-05-30 01:25:26 +0000

    profiles/arch/sparc: enable RUBY_TARGETS=ruby31
    
    Bug: https://bugs.gentoo.org/907377
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/arch/sparc/make.defaults   | 4 ----
 profiles/arch/sparc/use.stable.mask | 4 ----
 2 files changed, 8 deletions(-)
Comment 26 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-30 01:28:27 UTC
sparc done & eclass updated.

All done!
Comment 27 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-07-25 13:51:16 UTC
*** Bug 910965 has been marked as a duplicate of this bug. ***