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
This commit is contained in:
Janneke Nieuwenhuizen 2025-01-05 12:17:14 +01:00
parent 89a3961993
commit 5523bb9ef9
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -11,7 +11,7 @@
;;; Copyright © 2018 Chris Marusich <cmmarusich@gmail.com>
;;; Copyright © 2018-2024 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2019, 2020, 2021 Björn Höfling <bjoern.hoefling@bjoernhoefling.de>
;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
;;; Copyright © 2020, 2025 Janneke Nieuwenhuizen <janneke@gnu.org>
;;; Copyright © 2020 Raghav Gururajan <raghavgururajan@disroot.org>
;;; Copyright © 2020, 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; Copyright © 2021 Vincent Legoll <vincent.legoll@gmail.com>
@ -232,7 +232,12 @@ (define-public icedtea-7
(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")