[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/08: gnu: libstdc++-boot0: Improve gcc-wrapper workaround.
From: |
Marius Bakke |
Subject: |
02/08: gnu: libstdc++-boot0: Improve gcc-wrapper workaround. |
Date: |
Sat, 6 Oct 2018 12:59:45 -0400 (EDT) |
mbakke pushed a commit to branch wip-gcc7
in repository guix.
commit 7c1ddb3a4307600ce125688a699f4424b74e9826
Author: Marius Bakke <address@hidden>
Date: Wed Oct 3 17:13:06 2018 +0200
gnu: libstdc++-boot0: Improve gcc-wrapper workaround.
* gnu/packages/commencement.scm (libstdc++-boot0): Adjust the configure
script
instead of copying libstdc++.so from %BOOT0-INPUTS.
---
gnu/packages/commencement.scm | 18 +++++++-----------
1 file changed, 7 insertions(+), 11 deletions(-)
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index 46d2a46..c4f1125 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -1720,17 +1720,13 @@ exec " gcc "/bin/" program
(substitute-keyword-arguments (package-arguments lib)
((#:phases phases)
`(modify-phases ,phases
- ;; FIXME: why doesn't this package build
libstdc++.so.6.0.20,
- ;; when gcc-mesboot builds it fine?
- ;; libtool: install:
/gnu/store/7swwdnq02lqk4xkd8740fxdj1h4va38l-bootstrap-binaries-0/bin/install -c
.libs/libstdc++.so.6.0.20
/gnu/store/np5pmdlwfin3vmqk88chh0fgs0ncki79-libstdc++-boot0-4.8.5/lib/libstdc++.so.6.0.20
- ;;
/gnu/store/7swwdnq02lqk4xkd8740fxdj1h4va38l-bootstrap-binaries-0/bin/install:
cannot stat '.libs/libstdc++.so.6.0.20': No such file or directory
- (add-after 'build 'copy-libstdc++-
- (lambda* (#:key outputs #:allow-other-keys)
- (let ((gcc (assoc-ref %build-inputs "gcc"))
- (out (assoc-ref outputs "out")))
- (copy-file (string-append gcc
"/lib/libstdc++.so.6.0.20")
- (string-append
"src/.libs/libstdc++.so.6.0.20"))
- #t)))))))
+ (add-after 'unpack 'workaround-wrapper-bug
+ ;; XXX: The crude gcc-cross-wrapper causes "g++ -v" to
+ ;; fail, which in turn confuses the configure script.
+ (lambda _
+ (substitute* "libstdc++-v3/configure"
+ (("g\\+\\+ -v") "true"))
+ #t))))))
(_ (package-arguments lib)))))
(inputs (%boot0-inputs))
(native-inputs '()))))
- branch wip-gcc7 created (now f47d100), Marius Bakke, 2018/10/06
- 04/08: gnu: Remove duplicate linux-libre-headers package from bootstrap inputs., Marius Bakke, 2018/10/06
- 06/08: gnu: python: Fix FTBFS with GCC >= 6., Marius Bakke, 2018/10/06
- 07/08: gnu: cmake: Try CPATH and C_INCLUDE_PATH when finding system libraries., Marius Bakke, 2018/10/06
- 05/08: gnu: Use GCC 7 as the default compiler., Marius Bakke, 2018/10/06
- 02/08: gnu: libstdc++-boot0: Improve gcc-wrapper workaround.,
Marius Bakke <=
- 01/08: gnu: Remove gcc-for-libstdc++., Marius Bakke, 2018/10/06
- 08/08: gnu: cppunit: Update to 1.14.0., Marius Bakke, 2018/10/06
- 03/08: gnu: gcc-boot0: Improve gcc-wrapper workarounds., Marius Bakke, 2018/10/06