diff options
author | Hans de Graaff <graaff@gentoo.org> | 2023-12-06 11:19:56 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2023-12-06 11:20:10 +0100 |
commit | 8fae2f5fa040a06ca2cdef96c5bc42fb76633e07 (patch) | |
tree | bbc0e8ba6fac128d31c5e44eea0cc1ef0a664844 /dev-ruby/ruby-shadow | |
parent | sys-fs/f2fs-tools: Stabilize 1.16.0-r1 ppc64, #919317 (diff) | |
download | gentoo-8fae2f5fa040a06ca2cdef96c5bc42fb76633e07.tar.gz gentoo-8fae2f5fa040a06ca2cdef96c5bc42fb76633e07.tar.bz2 gentoo-8fae2f5fa040a06ca2cdef96c5bc42fb76633e07.zip |
dev-ruby/ruby-shadow: enable ruby32
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/ruby-shadow')
-rw-r--r-- | dev-ruby/ruby-shadow/files/ruby-shadow-2.5.1-ruby32.patch | 31 | ||||
-rw-r--r-- | dev-ruby/ruby-shadow/ruby-shadow-2.5.1.ebuild | 6 |
2 files changed, 35 insertions, 2 deletions
diff --git a/dev-ruby/ruby-shadow/files/ruby-shadow-2.5.1-ruby32.patch b/dev-ruby/ruby-shadow/files/ruby-shadow-2.5.1-ruby32.patch new file mode 100644 index 000000000000..3cbcf4b088b3 --- /dev/null +++ b/dev-ruby/ruby-shadow/files/ruby-shadow-2.5.1-ruby32.patch @@ -0,0 +1,31 @@ +From eab4aba3f5e06ea8f124d3e5ff6b3fa88c4807cd Mon Sep 17 00:00:00 2001 +From: Mamoru TASAKA <mtasaka@fedoraproject.org> +Date: Thu, 1 Dec 2022 12:23:05 +0900 +Subject: [PATCH] extconf.rb: use Rbconfig::CONFIG instead of mkmf CONFIG + +In mkmf.rb CONFIG is defined as CONFIG is defined as RbConfig::MAKEFILE_CONFIG +and RbConfig::MAKEFILE_CONFIG is almost same as RbConfig::CONFIG +except that RbConfig::MAKEFILE_CONFIG uses reference for other variables. + +Using CONFIG in extconf.rb causes error with ruby3.2 because now +CONFIG['host_os'] uses reference for target_os variable, and extconf.rb +expects that this variable is all expanded. So instead, use RbConfig::CONFIG . + +Closes #30 +--- + extconf.rb | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/extconf.rb b/extconf.rb +index d17f926..55dcff5 100644 +--- a/extconf.rb ++++ b/extconf.rb +@@ -14,7 +14,7 @@ + else; '' + end + +-implementation = case CONFIG['host_os'] ++implementation = case RbConfig::CONFIG['host_os'] + when /linux/i; 'shadow' + when /sunos|solaris/i; 'shadow' + when /freebsd|mirbsd|netbsd|openbsd/i; 'pwd' diff --git a/dev-ruby/ruby-shadow/ruby-shadow-2.5.1.ebuild b/dev-ruby/ruby-shadow/ruby-shadow-2.5.1.ebuild index ef081802042c..7ed501bd6700 100644 --- a/dev-ruby/ruby-shadow/ruby-shadow-2.5.1.ebuild +++ b/dev-ruby/ruby-shadow/ruby-shadow-2.5.1.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby26 ruby27 ruby30 ruby31" +USE_RUBY="ruby31 ruby32" RUBY_FAKEGEM_TASK_TEST="" @@ -20,3 +20,5 @@ LICENSE="|| ( public-domain Unlicense )" SLOT="0" KEYWORDS="amd64 ~arm ~arm64 ~hppa ppc ~ppc64 ~riscv ~sparc x86" IUSE="" + +PATCHES=( "${FILESDIR}/${P}-ruby32.patch" ) |