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/ruby-3.2.8.ebuild | |
| 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/ruby-3.2.8.ebuild')
| -rw-r--r-- | dev-lang/ruby/ruby-3.2.8.ebuild | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/dev-lang/ruby/ruby-3.2.8.ebuild b/dev-lang/ruby/ruby-3.2.8.ebuild index c43cff6afaed..906dbbdb07bf 100644 --- a/dev-lang/ruby/ruby-3.2.8.ebuild +++ b/dev-lang/ruby/ruby-3.2.8.ebuild @@ -86,6 +86,7 @@ src_prepare() { eapply "${FILESDIR}"/"${SLOT}"/010*.patch eapply "${FILESDIR}"/"${SLOT}"/011*.patch eapply "${FILESDIR}"/"${SLOT}"/013*.patch + eapply "${FILESDIR}"/"${SLOT}"/017*.patch eapply "${FILESDIR}"/"${SLOT}"/902*.patch if use elibc_musl ; then @@ -164,9 +165,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 |
