gnu: unzip: Fix build with gcc-14.

* gnu/packages/compression.scm (unzip)[arguments]: Add CC to #:make-flags to
relax gcc-14's strictness.  In phase "build" use target "generic" rather than
"generic_gcc".

Change-Id: I9b4753529b15b5766d7764553bf1fb234c437d45
This commit is contained in:
Janneke Nieuwenhuizen 2024-12-04 09:28:12 +01:00
parent 44e7bfee39
commit bc79f93f8d
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -2019,15 +2019,17 @@ (define-public unzip
`("-j" ,(number->string
(parallel-job-count))
,@make-flags
"generic_gcc")))))
"generic")))))
#:make-flags
;; Fix cross-compilation without affecting native builds, as doing so
;; would trigger too many rebuilds: https://issues.guix.gnu.org/57127
(if (%current-target-system)
#~(list "-f" "unix/Makefile"
"CC=gcc -Wno-error=implicit-function-declaration"
(string-append "prefix=" #$output)
(string-append "MANDIR=" #$output "/share/man/man1"))
#~(list "-f" "unix/Makefile"
"CC=gcc -Wno-error=implicit-function-declaration"
(string-append "prefix=" %output)
(string-append "MANDIR=" %output "/share/man/man1")))))
(home-page "http://www.info-zip.org/UnZip.html")