janneke pushed a commit to branch core-packages-team
in repository guix.
commit 60c5ace7d50b74d5c37d30becddc498fdc4bc322
Author: Janneke Nieuwenhuizen <[email protected]>
AuthorDate: Sun Jan 5 12:17:14 2025 +0100
gnu: icedtea-7: Fix build with gcc-14.
* gnu/packages/java.scm (icedtea-7)[arguments]: Extend CFLAGS_COMMON in
"fix-openjdk" to relax gcc-14's strictness.
Change-Id: Icc2fec77390dfd052339184633c1c30915ebded2
---
gnu/packages/java.scm | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index f4d83da05a..1134e3eee0 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -11,7 +11,7 @@
;;; Copyright © 2018 Chris Marusich <[email protected]>
;;; Copyright © 2018-2024 Efraim Flashner <[email protected]>
;;; Copyright © 2019, 2020, 2021 Björn Höfling
<[email protected]>
-;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <[email protected]>
+;;; Copyright © 2020, 2025 Janneke Nieuwenhuizen <[email protected]>
;;; Copyright © 2020 Raghav Gururajan <[email protected]>
;;; Copyright © 2020, 2022 Maxim Cournoyer <[email protected]>
;;; Copyright © 2021 Vincent Legoll <[email protected]>
@@ -233,7 +233,12 @@
(lambda _
(substitute* "openjdk.src/jdk/make/common/Defs-linux.gmk"
(("CFLAGS_COMMON = -fno-strict-aliasing" all)
- (string-append all " -fcommon")))
+ (string-append all
+ " -fcommon"
+ " -Wno-error=implicit-function-declaration"
+ " -Wno-error=implicit-int"
+ " -Wno-error=incompatible-pointer-types"
+ " -Wno-error=int-conversion")))
(substitute*
'("openjdk.src/jdk/src/solaris/native/java/net/PlainSocketImpl.c"
"openjdk.src/jdk/src/solaris/native/java/net/PlainDatagramSocketImpl.c")