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
This commit is contained in:
Janneke Nieuwenhuizen 2024-12-04 09:28:12 +01:00
parent 39d93a9ae7
commit 3f2bd4eaaf
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -1922,13 +1922,14 @@ (define-public zip
`(#: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")