mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-02-10 13:40:20 +01:00
gnu: linux-libre: Remove obsolete workaround.
* gnu/packages/linux.scm (make-linux-libre*)[arguments]: Do not change CPATH or CROSS_CPATH.
This commit is contained in:
parent
bbd1e4e7ed
commit
4a894c2f09
1 changed files with 0 additions and 21 deletions
|
@ -684,27 +684,6 @@ for ARCH and optionally VARIANT, or #f if there is no such configuration."
|
||||||
#t))
|
#t))
|
||||||
(replace 'configure
|
(replace 'configure
|
||||||
(lambda* (#:key inputs native-inputs target #:allow-other-keys)
|
(lambda* (#:key inputs native-inputs target #:allow-other-keys)
|
||||||
;; On AArch64 (at least), we need to remove glibc headers from
|
|
||||||
;; CPATH (they are still available as "system headers"), so that
|
|
||||||
;; the kernel can override uint64_t. See
|
|
||||||
;; <https://bugs.gnu.org/37593>. This is also true when
|
|
||||||
;; cross-compiling, except in that case, cross-libc must be
|
|
||||||
;; removed from CROSS_CPATH.
|
|
||||||
(let ((var ,(if (%current-target-system)
|
|
||||||
"CROSS_CPATH"
|
|
||||||
"CPATH"))
|
|
||||||
(libc ,(if (%current-target-system)
|
|
||||||
"cross-libc"
|
|
||||||
"libc")))
|
|
||||||
(setenv var
|
|
||||||
(string-join
|
|
||||||
(remove
|
|
||||||
(cut string-prefix? (assoc-ref inputs libc) <>)
|
|
||||||
(string-split (getenv var) #\:))
|
|
||||||
":"))
|
|
||||||
(format #t "environment variable `~a' changed to `~a'~%"
|
|
||||||
var (getenv var)))
|
|
||||||
|
|
||||||
;; Avoid introducing timestamps
|
;; Avoid introducing timestamps
|
||||||
(setenv "KCONFIG_NOTIMESTAMP" "1")
|
(setenv "KCONFIG_NOTIMESTAMP" "1")
|
||||||
(setenv "KBUILD_BUILD_TIMESTAMP" (getenv "SOURCE_DATE_EPOCH"))
|
(setenv "KBUILD_BUILD_TIMESTAMP" (getenv "SOURCE_DATE_EPOCH"))
|
||||||
|
|
Loading…
Add table
Reference in a new issue