mirror of
https://https.git.savannah.gnu.org/git/guix.git/
synced 2025-07-16 12:00:35 +02:00
etc: manifests/release: Only check for packages needed in the installer.
* etc/manifests/release.scm (%system-packages): Adjust the packages which are depended upon by the installer. Add a set of extra packages which we expect to have available. (%base-packages, %base-packages/armhf, %base-packages/hurd, %packages-to-cross-build, %packages-to-cross-build-for-mingw, %cross-bootstrap-targets, %base-manifest, %cross-manifest, %cross-bootstrap-manifest): Remove variables. Change-Id: I5806fff6bc38d14859f6d7163719841620e28d09
This commit is contained in:
parent
38de9218d6
commit
eeebc87f9f
1 changed files with 33 additions and 122 deletions
|
@ -2,6 +2,7 @@
|
||||||
;;; Copyright © 2020-2022, 2024 Ludovic Courtès <ludo@gnu.org>
|
;;; Copyright © 2020-2022, 2024 Ludovic Courtès <ludo@gnu.org>
|
||||||
;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
|
;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
|
||||||
;;; Copyright © 2023 Andreas Enge <andreas@enge.fr>
|
;;; Copyright © 2023 Andreas Enge <andreas@enge.fr>
|
||||||
|
;;; Copyright © 2025 Efraim Flashner <efraim@flashner.co.il>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -18,18 +19,13 @@
|
||||||
;;; You should have received a copy of the GNU General Public License
|
;;; You should have received a copy of the GNU General Public License
|
||||||
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
;;; This file returns a manifest containing release-critical bit, for all the
|
;;; This file returns a manifest containing packages which are needed by the
|
||||||
;;; supported architectures and cross-compilation targets.
|
;;; installer.
|
||||||
|
|
||||||
(use-modules (gnu packages)
|
(use-modules (guix packages)
|
||||||
(guix packages)
|
|
||||||
(guix profiles)
|
|
||||||
((guix platform) #:select (targets))
|
|
||||||
((gnu services xorg) #:select (%default-xorg-modules))
|
((gnu services xorg) #:select (%default-xorg-modules))
|
||||||
(guix utils)
|
(guix utils)
|
||||||
(guix gexp)
|
(srfi srfi-1))
|
||||||
(srfi srfi-1)
|
|
||||||
(srfi srfi-26))
|
|
||||||
|
|
||||||
(define* (package->manifest-entry* package system
|
(define* (package->manifest-entry* package system
|
||||||
#:key target)
|
#:key target)
|
||||||
|
@ -45,131 +41,46 @@ TARGET."
|
||||||
(%current-target-system target))
|
(%current-target-system target))
|
||||||
package))))
|
package))))
|
||||||
|
|
||||||
(define %base-packages
|
|
||||||
;; Packages that must be substitutable on all the platforms Guix supports.
|
|
||||||
(map specification->package
|
|
||||||
'("bootstrap-tarballs" "gcc-toolchain" "nss-certs"
|
|
||||||
"openssh" "emacs" "vim" "python" "guile" "guix")))
|
|
||||||
|
|
||||||
(define %base-packages/armhf
|
|
||||||
;; The guix package doesn't build natively on armhf due to Guile memory
|
|
||||||
;; issues compiling the package modules
|
|
||||||
(remove (lambda (package)
|
|
||||||
(string=? (package-name package) "guix"))
|
|
||||||
%base-packages))
|
|
||||||
|
|
||||||
(define %base-packages/hurd
|
|
||||||
;; XXX: For now we are less demanding of "i586-gnu".
|
|
||||||
(map specification->package
|
|
||||||
'("coreutils" "grep" "findutils" "gawk" "make"
|
|
||||||
#;"gcc-toolchain" "tar" "xz")))
|
|
||||||
|
|
||||||
(define %system-packages
|
(define %system-packages
|
||||||
;; Key packages proposed by the Guix System installer.
|
;; Key packages proposed by the Guix System installer.
|
||||||
(append (map specification->package
|
(append (map specification->package
|
||||||
'("xorg-server" "xfce" "gnome" "mate" "enlightenment"
|
'("guix"
|
||||||
"icewm" "openbox" "awesome" "i3-wm" "ratpoison"
|
"gnome" "xfce" "mate" "enlightenment"
|
||||||
|
"icewm" "openbox" "awesome"
|
||||||
|
"i3-wm" "i3status" "dmenu" "st"
|
||||||
|
"ratpoison" "xterm"
|
||||||
"emacs" "emacs-exwm" "emacs-desktop-environment"
|
"emacs" "emacs-exwm" "emacs-desktop-environment"
|
||||||
"xlockmore" "slock" "libreoffice"
|
"openssh" "tor" "ntp" "gpm"
|
||||||
"connman" "network-manager" "network-manager-applet"
|
"connman" "network-manager" "wpa-supplicant" "isc-dhcp" "cups"
|
||||||
"openssh" "ntp" "tor"
|
"linux-libre" "grub-hybrid"))
|
||||||
"linux-libre" "grub-hybrid"
|
|
||||||
"icecat"))
|
|
||||||
%default-xorg-modules))
|
%default-xorg-modules))
|
||||||
|
|
||||||
(define %packages-to-cross-build
|
|
||||||
;; Packages that must be cross-buildable from x86_64-linux.
|
|
||||||
;; FIXME: Add (@ (gnu packages gcc) gcc) when <https://bugs.gnu.org/40463>
|
|
||||||
;; is fixed.
|
|
||||||
(append (list (@ (gnu packages guile) guile-3.0/pinned))
|
|
||||||
(map specification->package
|
|
||||||
'("coreutils" "grep" "sed" "findutils" "diffutils" "patch"
|
|
||||||
"gawk" "gettext" "gzip" "xz"
|
|
||||||
"hello" "zlib"))))
|
|
||||||
|
|
||||||
(define %packages-to-cross-build-for-mingw
|
|
||||||
;; Many things don't build for MinGW. Restrict to what's known to work.
|
|
||||||
(map specification->package '("hello")))
|
|
||||||
|
|
||||||
(define %cross-bootstrap-targets
|
|
||||||
;; Cross-compilation triplets for which 'bootstrap-tarballs' must be
|
|
||||||
;; buildable.
|
|
||||||
'("i586-pc-gnu"
|
|
||||||
"arm-linux-gnueabihf"
|
|
||||||
"aarch64-linux-gnu"))
|
|
||||||
|
|
||||||
|
|
||||||
;;;
|
;;;
|
||||||
;;; Manifests.
|
;;; Manifests.
|
||||||
;;;
|
;;;
|
||||||
|
|
||||||
(define %base-manifest
|
|
||||||
(manifest
|
|
||||||
(append-map (lambda (system)
|
|
||||||
(map (cut package->manifest-entry* <> system)
|
|
||||||
(cond ((string=? system "i586-gnu")
|
|
||||||
%base-packages/hurd)
|
|
||||||
((string=? system "armhf-linux")
|
|
||||||
%base-packages/armhf)
|
|
||||||
((string=? system "powerpc64le-linux")
|
|
||||||
;; FIXME: Drop 'bootstrap-tarballs' until
|
|
||||||
;; <https://bugs.gnu.org/48055> is fixed.
|
|
||||||
(drop %base-packages 1))
|
|
||||||
(else
|
|
||||||
%base-packages))))
|
|
||||||
%cuirass-supported-systems)))
|
|
||||||
|
|
||||||
(define %system-manifest
|
(define %system-manifest
|
||||||
(manifest
|
(manifest
|
||||||
(append-map (lambda (system)
|
(append
|
||||||
;; Some of %SYSTEM-PACKAGES are currently unsupported on some
|
;; The linux-libre-*-generic kernel is commonly used on some architectures.
|
||||||
;; systems--e.g., GNOME on non-x86_64, due to Rust. Filter
|
(cond
|
||||||
;; them out.
|
((target-aarch64?)
|
||||||
(filter-map (lambda (package)
|
(list (package->manifest-entry (@ (gnu packages linux)
|
||||||
(and (supported-package? package system)
|
linux-libre-arm64-generic))))
|
||||||
(package->manifest-entry* package system)))
|
((target-riscv64?)
|
||||||
%system-packages))
|
(list (package->manifest-entry (@ (gnu packages linux)
|
||||||
'("x86_64-linux" "i686-linux")))) ;Guix System
|
linux-libre-riscv64-generic))))
|
||||||
|
((target-arm32?)
|
||||||
|
(list (package->manifest-entry (@ (gnu packages linux)
|
||||||
|
linux-libre-arm-generic))))
|
||||||
|
(else '()))
|
||||||
|
|
||||||
(define %cross-manifest
|
;; Some of %SYSTEM-PACKAGES are currently unsupported on some
|
||||||
(manifest
|
;; systems--e.g., GNOME on 32-bit, due to Rust. Filter them out.
|
||||||
(append-map (lambda (target)
|
(filter-map (lambda (package)
|
||||||
(map (cut package->manifest-entry* <> "x86_64-linux"
|
(and (supported-package? package (%current-system))
|
||||||
#:target target)
|
(package->manifest-entry package)))
|
||||||
(if (target-mingw? target)
|
%system-packages))))
|
||||||
%packages-to-cross-build-for-mingw
|
|
||||||
%packages-to-cross-build)))
|
|
||||||
(fold delete (targets)
|
|
||||||
'(;; Like in (gnu ci), dismiss cross-compilation to x86:
|
|
||||||
;; it's pointless.
|
|
||||||
"x86_64-linux-gnu"
|
|
||||||
"i686-linux-gnu"
|
|
||||||
|
|
||||||
;; Ignore obsolete systems, as in (gnu ci).
|
%system-manifest
|
||||||
"mips64el-linux-gnu"
|
|
||||||
"powerpc-linux-gnu"
|
|
||||||
"powerpc64-linux-gnu"
|
|
||||||
|
|
||||||
;; Ignore bare-metal targets.
|
|
||||||
"avr"
|
|
||||||
"or1k-elf"
|
|
||||||
"xtensa-ath9k-elf"
|
|
||||||
|
|
||||||
;; XXX: Important bits like libsigsegv and libffi don't
|
|
||||||
;; support RISCV at the moment, so don't require RISCV
|
|
||||||
;; support.
|
|
||||||
"riscv64-linux-gnu")))))
|
|
||||||
|
|
||||||
(define %cross-bootstrap-manifest
|
|
||||||
(manifest
|
|
||||||
(map (lambda (target)
|
|
||||||
(package->manifest-entry*
|
|
||||||
(specification->package "bootstrap-tarballs")
|
|
||||||
"x86_64-linux" #:target target))
|
|
||||||
%cross-bootstrap-targets)))
|
|
||||||
|
|
||||||
;; Return the union of all three manifests.
|
|
||||||
(concatenate-manifests (list %base-manifest
|
|
||||||
%system-manifest
|
|
||||||
%cross-manifest
|
|
||||||
%cross-bootstrap-manifest))
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue