[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#49672] [PATCH 3/9] gnu: Query membership in ‘supported-systems’ lis
From: |
Thiago Jung Bauermann |
Subject: |
[bug#49672] [PATCH 3/9] gnu: Query membership in ‘supported-systems’ list with Nix identifier |
Date: |
Tue, 20 Jul 2021 22:00:37 -0300 |
Packages’ ‘supported-systems’ list contains Nix system identifiers, while
‘%current-target-system’ contains a GNU triplet. We need to use
‘current-target-nix-system’ to query the list, which always returns a Nix
system identifier.
* gnu/packages/bootloaders.scm (grub)[inputs]: Use ‘current-target-nix-system’
to query membership in (package-supported-systems).
* gnu/packages/pciutils.scm (pciutils): Likewise.
---
gnu/packages/bootloaders.scm | 9 +++------
gnu/packages/pciutils.scm | 3 +--
2 files changed, 4 insertions(+), 8 deletions(-)
diff --git a/gnu/packages/bootloaders.scm b/gnu/packages/bootloaders.scm
index 742992a119b2..be51fb0c3de4 100644
--- a/gnu/packages/bootloaders.scm
+++ b/gnu/packages/bootloaders.scm
@@ -182,16 +182,14 @@
;; Depend on LVM2 for libdevmapper, used by 'grub-probe' and
;; 'grub-install' to recognize mapped devices (LUKS, etc.)
- ,@(if (member (or (%current-target-system)
- (%current-system))
+ ,@(if (member (current-target-nix-system)
(package-supported-systems lvm2))
`(("lvm2" ,lvm2))
'())
;; Depend on mdadm, which is invoked by 'grub-probe' and 'grub-install'
;; to determine whether the root file system is RAID.
- ,@(if (member (or (%current-target-system)
- (%current-system))
+ ,@(if (member (current-target-nix-system)
(package-supported-systems mdadm))
`(("mdadm" ,mdadm))
'())
@@ -202,8 +200,7 @@
;; Needed for ‘grub-mount’, the only reliable way to tell whether a
given
;; file system will be readable by GRUB without rebooting.
- ,@(if (member (or (%current-target-system)
- (%current-system))
+ ,@(if (member (current-target-nix-system)
(package-supported-systems fuse))
`(("fuse" ,fuse))
'())
diff --git a/gnu/packages/pciutils.scm b/gnu/packages/pciutils.scm
index d7d224b292f2..f2196c4e53ae 100644
--- a/gnu/packages/pciutils.scm
+++ b/gnu/packages/pciutils.scm
@@ -112,8 +112,7 @@
`(("which" ,which)
("pkg-config" ,pkg-config)))
(inputs
- `(,@(if (member (or (%current-target-system)
- (%current-system))
+ `(,@(if (member (current-target-nix-system)
(package-supported-systems kmod))
`(("kmod" ,kmod))
'())
- [bug#49672] [PATCH 0/9] Target check fixes and cleanups, Thiago Jung Bauermann, 2021/07/20
- [bug#49672] [PATCH 1/9] gnu: Fix check of ‘%current-system’ and ‘%current-target-system’, Thiago Jung Bauermann, 2021/07/20
- [bug#49672] [PATCH 2/9] utils: Add ‘current-target-nix-system’ helper, Thiago Jung Bauermann, 2021/07/20
- [bug#49672] [PATCH 3/9] gnu: Query membership in ‘supported-systems’ list with Nix identifier,
Thiago Jung Bauermann <=
- [bug#49672] [PATCH 7/9] bootloader: grub: Fix mix of GNU triplet and Nix system identifier, Thiago Jung Bauermann, 2021/07/20
- [bug#49672] [PATCH 4/9] gnu: Use ‘current-target-nix-system’ in pattern matches, Thiago Jung Bauermann, 2021/07/20
- [bug#49672] [PATCH 5/9] gnu: Use ‘current-target-nix-system’ in prefix checks, Thiago Jung Bauermann, 2021/07/20
- [bug#49672] [PATCH 6/9] gnu: Fix GNU/Linux system detection, Thiago Jung Bauermann, 2021/07/20
- [bug#49672] [PATCH 8/9] gnu: ustr: Don’t pass default argument, Thiago Jung Bauermann, 2021/07/20
- [bug#49672] [PATCH 9/9] gnu: Use existing target helpers from ‘(guix utils)’, Thiago Jung Bauermann, 2021/07/20