bootstrap: Merge mes-minimal into mes-minimal-stripped.
* gnu/packages/make-bootstrap.scm (%mes-minimal): Remove. (%mes-minimal-stripped): Configure using --mes. Strip installation.
This commit is contained in:
parent
c994177155
commit
20dd94b82f
|
@ -548,55 +548,31 @@ for `sh' in $PATH, and without nscd, and with static NSS modules."
|
||||||
((#:make-flags flags)
|
((#:make-flags flags)
|
||||||
`(cons "CC=gcc -static" ,flags)))))))
|
`(cons "CC=gcc -static" ,flags)))))))
|
||||||
|
|
||||||
(define %mes-minimal
|
(define-public %mes-minimal-stripped
|
||||||
;; A minimal Mes without documentation dependencies, for bootstrap.
|
;; A minimal Mes without documentation dependencies, for bootstrap.
|
||||||
(let ((triplet "i686-unknown-linux-gnu"))
|
(let ((triplet "i686-unknown-linux-gnu"))
|
||||||
(package
|
(package
|
||||||
(inherit mes)
|
(inherit mes)
|
||||||
(name "mes-minimal")
|
(name "mes-minimal-stripped")
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("guile" ,guile-2.2)))
|
`(("guile" ,guile-2.2)))
|
||||||
(arguments
|
(arguments
|
||||||
`(#:system "i686-linux"
|
`(#:system "i686-linux"
|
||||||
#:strip-binaries? #f
|
#:strip-binaries? #f
|
||||||
|
#:configure-flags '("--mes")
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-before 'configure 'optional-dot
|
(add-after 'install 'strip-install
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "configure"
|
(let* ((out (assoc-ref %outputs "out"))
|
||||||
(("#:version-option \"-V\"" all)
|
(share (string-append out "/share")))
|
||||||
(string-append all "#:optional? #t")))))))))))
|
(delete-file-recursively (string-append out "/lib/guile"))
|
||||||
|
(delete-file-recursively (string-append share "/guile"))
|
||||||
(define-public %mes-minimal-stripped
|
(delete-file-recursively (string-append share "/mes/scaffold"))
|
||||||
;; The subset of Mes files needed for bootstrap.
|
(for-each
|
||||||
(package
|
delete-file
|
||||||
(inherit %mes-minimal)
|
(find-files (string-append share "/mes/lib")
|
||||||
(name "mes-minimal-stripped")
|
"\\.(h|c)")))))))))))
|
||||||
(build-system trivial-build-system)
|
|
||||||
(source #f)
|
|
||||||
(arguments
|
|
||||||
`(#:modules ((guix build utils))
|
|
||||||
#:builder
|
|
||||||
(begin
|
|
||||||
(use-modules (srfi srfi-1)
|
|
||||||
(srfi srfi-26)
|
|
||||||
(guix build utils))
|
|
||||||
|
|
||||||
(setvbuf (current-output-port) _IOLBF)
|
|
||||||
(let* ((out (assoc-ref %outputs "out"))
|
|
||||||
(bindir (string-append out "/bin"))
|
|
||||||
(libdir (string-append out "/lib"))
|
|
||||||
(mes (assoc-ref %build-inputs "mes")))
|
|
||||||
|
|
||||||
(copy-recursively (string-append mes "/bin") bindir)
|
|
||||||
(copy-recursively (string-append mes "/lib") libdir)
|
|
||||||
(copy-recursively (string-append mes "/share/mes/lib") libdir)
|
|
||||||
(for-each remove-store-references
|
|
||||||
(remove (lambda (file) (or (string-suffix? ".h" file)
|
|
||||||
(string-suffix? ".c" file)))
|
|
||||||
(find-files out ".*")))
|
|
||||||
#t))))
|
|
||||||
(inputs `(("mes" ,%mes-minimal)))))
|
|
||||||
|
|
||||||
(define %guile-static
|
(define %guile-static
|
||||||
;; A statically-linked Guile that is relocatable--i.e., it can search
|
;; A statically-linked Guile that is relocatable--i.e., it can search
|
||||||
|
|
Loading…
Reference in New Issue