mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: linux-libre-headers: Do not retain reference to the bootstrap tools.
* gnu/packages/linux.scm (linux-libre-headers)[install-phase]: Remove ".install" files from the output. [arguments]: Add #:allowed-references.
This commit is contained in:
parent
67dfa1986d
commit
b15389e159
2 changed files with 17 additions and 11 deletions
|
@ -106,12 +106,21 @@
|
||||||
(and (zero? (system* "make"
|
(and (zero? (system* "make"
|
||||||
(string-append "INSTALL_HDR_PATH=" out)
|
(string-append "INSTALL_HDR_PATH=" out)
|
||||||
"headers_install"))
|
"headers_install"))
|
||||||
|
(begin
|
||||||
(mkdir (string-append out "/include/config"))
|
(mkdir (string-append out "/include/config"))
|
||||||
(call-with-output-file
|
(call-with-output-file
|
||||||
(string-append out
|
(string-append out
|
||||||
"/include/config/kernel.release")
|
"/include/config/kernel.release")
|
||||||
(lambda (p)
|
(lambda (p)
|
||||||
(format p "~a-default~%" ,version))))))))
|
(format p "~a-default~%" ,version)))
|
||||||
|
|
||||||
|
;; Remove the '.install' and '..install.cmd' files; the
|
||||||
|
;; latter contains store paths, which pulls in bootstrap
|
||||||
|
;; binaries in the build environment, and prevents bit
|
||||||
|
;; reproducibility for the bootstrap binaries.
|
||||||
|
(for-each delete-file (find-files out "\\.install"))
|
||||||
|
|
||||||
|
#t))))))
|
||||||
(package
|
(package
|
||||||
(name "linux-libre-headers")
|
(name "linux-libre-headers")
|
||||||
(version version)
|
(version version)
|
||||||
|
@ -133,6 +142,7 @@
|
||||||
(alist-replace
|
(alist-replace
|
||||||
'install ,install-phase
|
'install ,install-phase
|
||||||
(alist-delete 'configure %standard-phases)))
|
(alist-delete 'configure %standard-phases)))
|
||||||
|
#:allowed-references ()
|
||||||
#:tests? #f))
|
#:tests? #f))
|
||||||
(synopsis "GNU Linux-Libre kernel headers")
|
(synopsis "GNU Linux-Libre kernel headers")
|
||||||
(description "Headers of the Linux-Libre kernel.")
|
(description "Headers of the Linux-Libre kernel.")
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright © 2012, 2013, 2014 Ludovic Courtès <ludo@gnu.org>
|
;;; Copyright © 2012, 2013, 2014, 2015 Ludovic Courtès <ludo@gnu.org>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -374,10 +374,6 @@ for `sh' in $PATH, and without nscd, and with static NSS modules."
|
||||||
(copy-recursively (string-append linux "/include/asm-generic")
|
(copy-recursively (string-append linux "/include/asm-generic")
|
||||||
(string-append incdir "/asm-generic"))
|
(string-append incdir "/asm-generic"))
|
||||||
|
|
||||||
;; Remove the '.install' and '..install.cmd' files; the latter
|
|
||||||
;; contains store paths, which prevents bit reproducibility.
|
|
||||||
(for-each delete-file (find-files incdir "\\.install"))
|
|
||||||
|
|
||||||
#t))))
|
#t))))
|
||||||
(inputs `(("libc" ,(let ((target (%current-target-system)))
|
(inputs `(("libc" ,(let ((target (%current-target-system)))
|
||||||
(if target
|
(if target
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue