mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
gnu: Use patched static bash in glibc replacement.
* gnu/packages/base.scm (glibc-2.26-patched): Rename... (glibc-2.26-patched-boot): ...to this. (patched-static-bash, glibc-2.26-patched): New variables.
This commit is contained in:
parent
295fbbd75d
commit
42958b5e0f
1 changed files with 26 additions and 1 deletions
|
@ -841,7 +841,7 @@ (define-syntax glibc
|
|||
;; Below are old libc versions, which we use mostly to build locale data in
|
||||
;; the old format (which the new libc cannot cope with.)
|
||||
|
||||
(define glibc-2.26-patched
|
||||
(define glibc-2.26-patched-boot
|
||||
(package
|
||||
(inherit glibc)
|
||||
(source (origin
|
||||
|
@ -849,6 +849,31 @@ (define glibc-2.26-patched
|
|||
(patches (cons (search-patch "glibc-allow-kernel-2.6.32.patch")
|
||||
(origin-patches (package-source glibc))))))))
|
||||
|
||||
(define patched-static-bash
|
||||
(package
|
||||
(inherit static-bash)
|
||||
(arguments
|
||||
(substitute-keyword-arguments (package-arguments static-bash)
|
||||
((#:configure-flags flags '())
|
||||
;; Add a '-L' flag so that the pseudo-cross-ld of
|
||||
;; BINUTILS-BOOT0 can find libc.a.
|
||||
`(append ,flags
|
||||
(list (string-append "LDFLAGS=-static -L"
|
||||
(assoc-ref %build-inputs
|
||||
"libc-patched:static")
|
||||
"/lib"))))))
|
||||
(native-inputs
|
||||
`(("libc-patched" ,glibc-2.26-patched-boot)
|
||||
("libc-patched:static" ,glibc-2.26-patched-boot "static")))))
|
||||
|
||||
(define glibc-2.26-patched
|
||||
(package
|
||||
(inherit glibc-2.26-patched-boot)
|
||||
(inputs `(("static-bash" ,patched-static-bash)
|
||||
,@(alist-delete
|
||||
"static-bash"
|
||||
(package-inputs glibc-2.26-patched-boot))))))
|
||||
|
||||
(define-public glibc-2.25
|
||||
(package
|
||||
(inherit glibc)
|
||||
|
|
Loading…
Reference in a new issue