summaryrefslogtreecommitdiff
path: root/dev-lang/ruby/ruby-3.3.8.ebuild
diff options
context:
space:
mode:
authorZ. Liu <zhixu.liu@gmail.com>2025-07-01 23:32:47 +0800
committerSam James <sam@gentoo.org>2025-09-19 15:08:18 +0100
commita5f0a9720751ddc40ef46cd69493c6d23f0adb95 (patch)
tree776e0ae00906c387fa743fa645daf47c5ec3c9cd /dev-lang/ruby/ruby-3.3.8.ebuild
parenta2354b6ee05e8caa92ce6419f8771a707cc0286b (diff)
downloadgentoo-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/ruby-3.3.8.ebuild')
-rw-r--r--dev-lang/ruby/ruby-3.3.8.ebuild6
1 files changed, 3 insertions, 3 deletions
diff --git a/dev-lang/ruby/ruby-3.3.8.ebuild b/dev-lang/ruby/ruby-3.3.8.ebuild
index 378454244e77..dbd706e7339b 100644
--- a/dev-lang/ruby/ruby-3.3.8.ebuild
+++ b/dev-lang/ruby/ruby-3.3.8.ebuild
@@ -85,6 +85,9 @@ pkg_setup() {
src_prepare() {
eapply "${FILESDIR}"/"${SLOT}"/010*.patch
eapply "${FILESDIR}"/"${SLOT}"/013*.patch
+ eapply "${FILESDIR}"/"${SLOT}"/015*.patch
+ eapply "${FILESDIR}"/"${SLOT}"/016*.patch
+ eapply "${FILESDIR}"/"${SLOT}"/017*.patch
eapply "${FILESDIR}"/"${SLOT}"/902*.patch
if use elibc_musl ; then
@@ -161,9 +164,6 @@ src_configure() {
# In many places aliasing rules are broken; play it safe
# as it's risky with newer compilers to leave it as it is.
append-flags -fno-strict-aliasing
- # Avoid a compile error with certain USE flag combinations when
- # using std=gnu23, bug #945643 and bug #945502
- append-cflags -std=gnu17
# Workaround for bug #938302
if use systemtap && has_version "dev-debug/systemtap[-dtrace-symlink(+)]" ; then