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

commit d5d2eea95df6c1d4d1a1ca96617a9bcf83bd96d6
Author: Janneke Nieuwenhuizen <[email protected]>
AuthorDate: Thu Dec 5 15:14:37 2024 +0100

    gnu: libstdc++: Fix build for linux with gcc-14.
    
    * gnu/packages/gcc.scm (make-libstdc++)[arguments]: Rename stage 
"patch-hurd64
    to "patch-tzdb.cc and use unrestrictedly.
    
    Change-Id: Icaf0a31744dc6102d96444f531f3ba1878a61b6c
---
 gnu/packages/gcc.scm | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/gcc.scm b/gnu/packages/gcc.scm
index 6247919fec..f900464f41 100644
--- a/gnu/packages/gcc.scm
+++ b/gnu/packages/gcc.scm
@@ -1029,14 +1029,11 @@ using compilers other than GCC."
           (add-before 'configure 'chdir
             (lambda _
               (chdir "libstdc++-v3")))
-          #$@(let ((version (package-version gcc)))
-               (if (target-hurd64?)
-                   #~((add-after 'unpack 'patch-hurd64
-                        (lambda _
-                          (substitute* "libstdc++-v3/src/c++20/tzdb.cc"
-                            (("#if ! defined _GLIBCXX_ZONEINFO_DIR")
-                             "#if __GNU__ || ! defined 
_GLIBCXX_ZONEINFO_DIR")))))
-                   '())))
+          (add-after 'unpack 'patch-tzdb.cc
+            (lambda _
+              (substitute* "libstdc++-v3/src/c++20/tzdb.cc"
+                (("#if ! defined _GLIBCXX_ZONEINFO_DIR")
+                 "#if 1 // ! defined _GLIBCXX_ZONEINFO_DIR")))))
 
       #:configure-flags '`("--disable-libstdcxx-pch"
                            ,(string-append "--with-gxx-include-dir="

Reply via email to