gnu: bootstrap: mes-minimal: Remove packages and tarball.

* gnu/packages/make-bootstrap.scm (%mes-minimal, %mes-minimal-stripped,
%mes-bootstrap-tarball): Remove.
This commit is contained in:
Jan (janneke) Nieuwenhuizen 2022-09-12 10:54:31 +02:00 committed by Janneke Nieuwenhuizen
parent 0501136d57
commit c2167ffb97
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -53,7 +53,6 @@ (define-module (gnu packages make-bootstrap)
%glibc-bootstrap-tarball
%gcc-bootstrap-tarball
%guile-bootstrap-tarball
%mes-bootstrap-tarball
%bootstrap-tarballs
%guile-static-stripped))
@ -593,55 +592,6 @@ (define %gcc-stripped
"--version"))
'("gcc" "g++" "cpp"))))))))))
;; Two packages: first build static, bare minimum content.
(define-public %mes-minimal
;; A minimal Mes without documentation.
(package
(inherit mes)
(name "mes-minimal")
(native-inputs (list guile-3.0))
(arguments
`(#:system "i686-linux"
#:strip-binaries? #f
#:configure-flags '("--mes")
#:phases
(modify-phases %standard-phases
(delete 'patch-shebangs)
(add-after 'install 'strip-install
(lambda _
(let* ((out (assoc-ref %outputs "out"))
(share (string-append out "/share")))
(delete-file-recursively (string-append out "/lib/guile"))
(delete-file-recursively (string-append share "/guile"))
(for-each delete-file
(find-files
(string-append share "/mes/lib")
"\\.(h|c)"))))))))))
;; next remove store references.
(define %mes-minimal-stripped
;; A minimal Mes with store references removed, for bootstrap.
(package
(inherit %mes-minimal)
(name (string-append (package-name %mes-minimal) "-stripped"))
(build-system trivial-build-system)
(arguments
(list #:modules '((guix build utils))
#:allowed-references '()
#:builder
#~(begin
(use-modules (guix build utils))
(let ((in #$%mes-minimal)
(out #$output))
(copy-recursively in out)
(for-each (lambda (dir)
(for-each remove-store-references
(find-files (string-append out "/" dir)
".*")))
'("bin" "share/mes"))))))))
(define* (make-guile-static guile patches)
(package-with-relocatable-glibc
(static-package
@ -833,10 +783,6 @@ (define %guile-bootstrap-tarball
;; A tarball with the statically-linked, relocatable Guile.
(tarball-package %guile-static-stripped))
(define %mes-bootstrap-tarball
;; A tarball with Mes binary seed.
(tarball-package %mes-minimal-stripped))
(define %bootstrap-tarballs
;; A single derivation containing all the bootstrap tarballs, for
;; convenience.