guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

13/14: gnu: unzip: Fix build with gcc-14.


From: guix-commits
Subject: 13/14: gnu: unzip: Fix build with gcc-14.
Date: Thu, 5 Dec 2024 04:27:04 -0500 (EST)

janneke pushed a commit to branch core-packages-team
in repository guix.

commit 62111eeeb145429fd286c16a91c2701cc3f7bf6a
Author: Janneke Nieuwenhuizen <janneke@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=-Wno-implicit-function-declaration" to #:make-flags.  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 b9c06b7e59..f13c620770 100644
--- a/gnu/packages/compression.scm
+++ b/gnu/packages/compression.scm
@@ -2019,15 +2019,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-implicit-function-declaration"
                        (string-append "prefix=" #$output)
                        (string-append "MANDIR=" #$output "/share/man/man1"))
                #~(list "-f" "unix/Makefile"
+                       "CC=gcc -Wno-implicit-function-declaration"
                        (string-append "prefix=" %output)
                        (string-append "MANDIR=" %output "/share/man/man1")))))
     (home-page "http://www.info-zip.org/UnZip.html";)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]