diff options
| author | Z. Liu <zhixu.liu@gmail.com> | 2025-07-01 23:32:47 +0800 |
|---|---|---|
| committer | Sam James <sam@gentoo.org> | 2025-09-19 15:08:18 +0100 |
| commit | a5f0a9720751ddc40ef46cd69493c6d23f0adb95 (patch) | |
| tree | 776e0ae00906c387fa743fa645daf47c5ec3c9cd /dev-lang/ruby/files/3.4/015-strscan-update-extconf.rb.patch | |
| parent | a2354b6ee05e8caa92ce6419f8771a707cc0286b (diff) | |
| download | gentoo-a5f0a9720751ddc40ef46cd69493c6d23f0adb95.tar.gz gentoo-a5f0a9720751ddc40ef46cd69493c6d23f0adb95.tar.bz2 gentoo-a5f0a9720751ddc40ef46cd69493c6d23f0adb95.zip | |
dev-lang/ruby: fix build issue with gcc15
1. if USE="socks5", full protoype is required by C23
2. if CFLAGS="-flto -Werror=lto-type-mismatch", and building with
-std=c23 (default for gcc 15), build will fail with"
"static declaration of ‘rb_io_closed_p’ follows non-static declaration"
all patches are from upstream (w/ minor change if backport)
Closes: https://bugs.gentoo.org/945502
Closes: https://bugs.gentoo.org/945643
Signed-off-by: Z. Liu <zhixu.liu@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/42828
Closes: https://github.com/gentoo/gentoo/pull/42828
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-lang/ruby/files/3.4/015-strscan-update-extconf.rb.patch')
| -rw-r--r-- | dev-lang/ruby/files/3.4/015-strscan-update-extconf.rb.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/dev-lang/ruby/files/3.4/015-strscan-update-extconf.rb.patch b/dev-lang/ruby/files/3.4/015-strscan-update-extconf.rb.patch new file mode 100644 index 000000000000..ebf2791f540b --- /dev/null +++ b/dev-lang/ruby/files/3.4/015-strscan-update-extconf.rb.patch @@ -0,0 +1,29 @@ +From 4585ccd90f4251f4d42bfc338a5e14100236fa15 Mon Sep 17 00:00:00 2001 +From: Nobuyoshi Nakada <nobu@ruby-lang.org> +Date: Thu, 12 Jun 2025 10:32:49 +0900 +Subject: [PATCH] [ruby/strscan] Update extconf.rb + (https://github.com/ruby/strscan/pull/158) + +- `have_func` includes "ruby.h" by default. +- include "ruby/re.h" where `rb_reg_onig_match` is declared. + +https://github.com/ruby/strscan/commit/1ac96f47e9 + +diff --git a/ext/strscan/extconf.rb b/ext/strscan/extconf.rb +index bd65606a4e..abcbdb3ad2 100644 +--- a/ext/strscan/extconf.rb ++++ b/ext/strscan/extconf.rb +@@ -2,8 +2,8 @@ + require 'mkmf' + if RUBY_ENGINE == 'ruby' + $INCFLAGS << " -I$(top_srcdir)" if $extmk +- have_func("onig_region_memsize", "ruby.h") +- have_func("rb_reg_onig_match", "ruby.h") ++ have_func("onig_region_memsize") ++ have_func("rb_reg_onig_match", "ruby/re.h") + create_makefile 'strscan' + else + File.write('Makefile', dummy_makefile("").join) +-- +2.45.2 + |
