From 44bd0e2c35e2539e4b5060d0d39c0b11d2b87b59 Mon Sep 17 00:00:00 2001 From: "Artyom V. Poptsov" Date: Tue, 28 Oct 2025 20:23:31 +0300 Subject: [PATCH] gnu: drip: Fix build with gcc-14. * gnu/packages/java.scm (drip): Fix build with gcc-14. [arguments]<#:phases>: Add "relax-gcc-14-strictness" phase. Change-Id: I9468bb942c4c569fe6e108f096c32b56658ed146 --- gnu/packages/java.scm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm index 6e61bded235433feb05bdfa98f1f608321855df8..fb7512edd20663f51a7d1f7d1b2cf99315284281 100644 --- a/gnu/packages/java.scm +++ b/gnu/packages/java.scm @@ -18,7 +18,7 @@ ;;; Copyright © 2021 Mike Gerwitz ;;; Copyright © 2021 Pierre Langlois ;;; Copyright © 2021 Guillaume Le Vaillant -;;; Copyright © 2022, 2024 Artyom V. Poptsov +;;; Copyright © 2022, 2024, 2025 Artyom V. Poptsov ;;; Copyright © 2024 Paul A. Patience ;;; Copyright © 2024 Raven Hallsby ;;; Copyright © 2025 Zheng Junjie <873216071@qq.com> @@ -2284,6 +2284,15 @@ Tool for Language Recognition v3).") #:phases (modify-phases %standard-phases (delete 'configure) + (add-before 'build 'relax-gcc-14-strictness + (lambda _ + (substitute* "Makefile" + ((" gcc(.*)$" all options) + (string-append + " gcc" + " -Wno-error=incompatible-pointer-types" + " -Wno-error=implicit-function-declaration" + options))))) (add-before 'install 'fix-wrapper (lambda* (#:key inputs #:allow-other-keys) (let ((jps (search-input-file inputs "/bin/jps")))