janneke pushed a commit to branch core-packages-team
in repository guix.
commit 289a14021bf37b549cd2d2c8a17e3d44aacb259f
Author: Janneke Nieuwenhuizen <[email protected]>
AuthorDate: Wed Dec 4 09:28:12 2024 +0100
gnu: zip: Fix build with gcc-14.
* gnu/packages/compression.scm (zip)[arguments]: Add CC to #:make-flags to
relax gcc-14's strictness. In phase "build" use target "generic" rather
than
"generic_gcc".
Change-Id: I21af1acdc550c83e63241811a6586598f187b2ef
---
gnu/packages/compression.scm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm
index 497cea895d..208ae8e06e 100644
--- a/gnu/packages/compression.scm
+++ b/gnu/packages/compression.scm
@@ -1942,13 +1942,14 @@ the actual decompression, the other input and output.")
`(#:tests? #f ; no test target
#:make-flags (let ((out (assoc-ref %outputs "out")))
(list "-f" "unix/Makefile"
+ "CC=gcc -Wno-error=implicit-function-declaration"
(string-append "prefix=" out)
(string-append "MANDIR=" out "/share/man/man1")))
#:phases
(modify-phases %standard-phases
(replace 'build
(lambda* (#:key (make-flags '()) #:allow-other-keys)
- (apply invoke "make" "generic_gcc" make-flags)))
+ (apply invoke "make" "generic" make-flags)))
(delete 'configure))))
(home-page "http://www.info-zip.org/Zip.html")
(synopsis "Compression and file packing utility")