janneke pushed a commit to branch core-packages-team in repository guix. commit e6f85d84be70ba813df6d24ffccbb1988f1545ea Author: Janneke Nieuwenhuizen <jann...@gnu.org> AuthorDate: Wed Dec 4 09:28:12 2024 +0100
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 --- gnu/packages/compression.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm index 208ae8e06e..fa0c48303f 100644 --- a/gnu/packages/compression.scm +++ b/gnu/packages/compression.scm @@ -2039,15 +2039,17 @@ Compression ratios of 2:1 to 3:1 are common for text files.") `("-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")