commit:     04349ec849e048ea2e0dde6fbe9e4a689bb2f821
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Fri May 30 06:29:30 2025 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Fri May 30 06:32:46 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04349ec8

eclass/ruby-fakegem.eclass: drop ruby31 workaround

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

 eclass/ruby-fakegem.eclass | 14 +-------------
 1 file changed, 1 insertion(+), 13 deletions(-)

diff --git a/eclass/ruby-fakegem.eclass b/eclass/ruby-fakegem.eclass
index c358015902bb..309f88ce0937 100644
--- a/eclass/ruby-fakegem.eclass
+++ b/eclass/ruby-fakegem.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # @ECLASS: ruby-fakegem.eclass
@@ -23,8 +23,6 @@ case ${EAPI} in
        *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
 esac
 
-# flag-o-matic is only required for ruby31 support.
-inherit flag-o-matic
 inherit ruby-ng
 
 # @ECLASS_VARIABLE: RUBY_FAKEGEM_NAME
@@ -426,16 +424,6 @@ EOF
 each_fakegem_configure() {
        debug-print-function ${FUNCNAME} "$@"
 
-       # Ruby 3.1 has a varargs implementation that is not compatible with
-       # gnu23. Ruby 3.1 is EOL in March 2025 and will be removed shortly
-       # after that.
-       case ${RUBY} in
-               *ruby31)
-                       append-flags -std=gnu17
-                       filter-flags -std=gnu23
-                       ;;
-       esac
-
        tc-export PKG_CONFIG
        for extension in "${RUBY_FAKEGEM_EXTENSIONS[@]}" ; do
                CC=$(tc-getCC) ${RUBY} --disable=did_you_mean -C 
${extension%/*} ${extension##*/} --with-cflags="${CFLAGS}" 
--with-ldflags="${LDFLAGS}" ${RUBY_FAKEGEM_EXTENSION_OPTIONS} || die

Reply via email to