gnu: gcc-toolchain: Remove 'bin/sh' and 'bin/bash'.
* gnu/packages/commencement.scm (gcc-toolchain)[arguments] <#:builder>: Delete 'bin/sh' and 'bin/bash'.
This commit is contained in:
parent
1b2b81773c
commit
6f450b87de
|
@ -756,16 +756,26 @@ COREUTILS-FINAL vs. COREUTILS, etc."
|
||||||
'(#:modules ((guix build union))
|
'(#:modules ((guix build union))
|
||||||
#:builder (begin
|
#:builder (begin
|
||||||
(use-modules (ice-9 match)
|
(use-modules (ice-9 match)
|
||||||
|
(srfi srfi-26)
|
||||||
(guix build union))
|
(guix build union))
|
||||||
|
|
||||||
|
(let ((out (assoc-ref %outputs "out")))
|
||||||
|
|
||||||
(match %build-inputs
|
(match %build-inputs
|
||||||
(((names . directories) ...)
|
(((names . directories) ...)
|
||||||
(union-build (assoc-ref %outputs "out")
|
(union-build out directories)))
|
||||||
directories)))
|
|
||||||
|
;; Remove the 'sh' and 'bash' binaries that come with
|
||||||
|
;; libc to avoid polluting the user's profile (these are
|
||||||
|
;; statically-linked binaries with no locale support and
|
||||||
|
;; so on.)
|
||||||
|
(for-each (lambda (file)
|
||||||
|
(delete-file (string-append out "/bin/" file)))
|
||||||
|
'("sh" "bash"))
|
||||||
|
|
||||||
(union-build (assoc-ref %outputs "debug")
|
(union-build (assoc-ref %outputs "debug")
|
||||||
(list (assoc-ref %build-inputs
|
(list (assoc-ref %build-inputs
|
||||||
"libc-debug"))))))
|
"libc-debug")))))))
|
||||||
|
|
||||||
(native-search-paths (package-native-search-paths gcc))
|
(native-search-paths (package-native-search-paths gcc))
|
||||||
(search-paths (package-search-paths gcc))
|
(search-paths (package-search-paths gcc))
|
||||||
|
|
Loading…
Reference in New Issue