[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/07: gnu: glibc-2.35: Disable C++ compiler for build.
From: |
guix-commits |
Subject: |
04/07: gnu: glibc-2.35: Disable C++ compiler for build. |
Date: |
Sun, 26 May 2024 10:31:52 -0400 (EDT) |
jpoiret pushed a commit to branch core-updates
in repository guix.
commit f8f49e965e928ff0ae63f5938f70125d1be074c5
Author: Josselin Poiret <dev@jpoiret.xyz>
AuthorDate: Sun May 26 16:06:37 2024 +0200
gnu: glibc-2.35: Disable C++ compiler for build.
* gnu/packages/base.scm (glibc-2.33): Move disabling the compiler from
here...
(glibc-2.35): to here, and update the comment.
Change-Id: Ie2511486f0e5791929f1f48529be7cc88c9553c2
---
gnu/packages/base.scm | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm
index 1ff5183289..5c4c7492a8 100644
--- a/gnu/packages/base.scm
+++ b/gnu/packages/base.scm
@@ -1111,6 +1111,12 @@ with the Linux kernel.")
(substitute-keyword-arguments (package-arguments glibc)
((#:configure-flags flags #~'())
#~(cons* "--enable-crypt"
+ ;; We do not want to use the C++ compiler, because its
+ ;; libstdc++ is linked against a newer glibc, and so relies
+ ;; on those newer symbols. Pretend it doesn't link (the test
+ ;; doesn't actually check that the compiler works with new
+ ;; libstdc++ and older glibc).
+ "libc_cv_cxx_link_ok=no"
#$flags))
((#:phases phases)
;; The C.UTF-8 fails to build in glibc 2.35:
@@ -1139,14 +1145,7 @@ with the Linux kernel.")
(member (basename patch)
'("glibc-2.35-CVE-2023-4911.patch"
"glibc-hurd-clock_gettime_monotonic.patch")))
- (origin-patches (package-source glibc-2.35)))))))
- (arguments
- (substitute-keyword-arguments (package-arguments glibc-2.35)
- ((#:configure-flags flags ''())
- ;; There are undefined references to pthread symbols while linking
- ;; 'support/links-dso-program.cc'. Since this isn't needed here, turn
- ;; off C++ tests.
- #~(cons "libc_cv_cxx_link_ok=no" #$flags))))))
+ (origin-patches (package-source
glibc-2.35)))))))))
(define-public glibc-2.32
(package
- branch core-updates updated (d859ab9375 -> 02f07bcd3b), guix-commits, 2024/05/26
- 03/07: gnu: glibc-2.35: Use CVE-2023-4911 again., guix-commits, 2024/05/26
- 01/07: gnu: glibc/fixed: Remove variable., guix-commits, 2024/05/26
- 06/07: gnu: Add glibc-locales-2.35., guix-commits, 2024/05/26
- 05/07: gnu: make-glibc-locales: Modernize., guix-commits, 2024/05/26
- 02/07: gnu: %default-locale-libcs: Add glibc-2.35 and generalize for Hurd., guix-commits, 2024/05/26
- 07/07: Merge remote-tracking branch 'origin/master' into core-updates, guix-commits, 2024/05/26
- 04/07: gnu: glibc-2.35: Disable C++ compiler for build.,
guix-commits <=