* [bug#43881] [PATCH 0/2] Deduplicate package sets @ 2020-10-09 13:39 Efraim Flashner 2020-10-09 13:42 ` [bug#43881] [PATCH 1/2] system: Add %base-packages-disk-utils Efraim Flashner 0 siblings, 1 reply; 8+ messages in thread From: Efraim Flashner @ 2020-10-09 13:39 UTC (permalink / raw) To: 43881; +Cc: Efraim Flashner I noticed that the installer has nano, zile and nvi, but %base-packages has nano and zile. I also saw that the installer also pulls in %base-packages and I figured it was a good time to do something about it. I moved nvi from the installer to %base-packages-interactive. I created %base-packages-disk-utils to work with disks/partitions/file-systems. Of the packages I removed from the installer which weren't already part of %base-packages: wpa-supplicant-minimal: wpa-supplicant already provided by the wpa-supplicant-service-type. openssh: Already provided by the openssh-service-type. I figure it's worth asking: should we be using wpa-supplicant-minimal and openssh-sans-x for their services in the installer? Actually, looking at the openssh-service-type I don't see it documented in the manual a field to use a different openssh package. Efraim Flashner (2): system: Add %base-packages-disk-utils. install: Deduplicate packages with %base-package sets. gnu/system.scm | 38 +++++++++++++++++++++++++++++--------- gnu/system/install.scm | 37 ++++++++++--------------------------- 2 files changed, 39 insertions(+), 36 deletions(-) -- 2.28.0 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [bug#43881] [PATCH 1/2] system: Add %base-packages-disk-utils. 2020-10-09 13:39 [bug#43881] [PATCH 0/2] Deduplicate package sets Efraim Flashner @ 2020-10-09 13:42 ` Efraim Flashner 2020-10-09 13:42 ` [bug#43881] [PATCH 2/2] install: Deduplicate packages with %base-package sets Efraim Flashner ` (2 more replies) 0 siblings, 3 replies; 8+ messages in thread From: Efraim Flashner @ 2020-10-09 13:42 UTC (permalink / raw) To: 43881; +Cc: Efraim Flashner * gnu/system.scm (%base-packages-disk-utils): New variable. --- gnu/system.scm | 36 +++++++++++++++++++++++++++--------- 1 file changed, 27 insertions(+), 9 deletions(-) diff --git a/gnu/system.scm b/gnu/system.scm index 3f4a0065d0..b10e94b95b 100644 --- a/gnu/system.scm +++ b/gnu/system.scm @@ -10,6 +10,7 @@ ;;; Copyright © 2020 Florian Pelz <pelzflorian@pelzflorian.de> ;;; Copyright © 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com> ;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <jannek@gnu.org> +;;; Copyright © 2020 Efraim Flashner <efraim@flashner.co.il> ;;; ;;; This file is part of GNU Guix. ;;; @@ -38,24 +39,27 @@ #:use-module ((guix utils) #:select (substitute-keyword-arguments)) #:use-module (guix i18n) #:use-module (guix diagnostics) + #:use-module (gnu packages admin) #:use-module (gnu packages base) #:use-module (gnu packages bash) + #:use-module (gnu packages compression) #:use-module (gnu packages cross-base) + #:use-module (gnu packages cryptsetup) + #:use-module (gnu packages disk) + #:use-module (gnu packages file-systems) + #:use-module (gnu packages firmware) + #:use-module (gnu packages gawk) #:use-module (gnu packages guile) #:use-module (gnu packages guile-xyz) - #:use-module (gnu packages admin) #:use-module (gnu packages hurd) - #:use-module (gnu packages linux) - #:use-module (gnu packages pciutils) - #:use-module (gnu packages package-management) #:use-module (gnu packages less) - #:use-module (gnu packages zile) - #:use-module (gnu packages nano) - #:use-module (gnu packages gawk) + #:use-module (gnu packages linux) #:use-module (gnu packages man) + #:use-module (gnu packages nano) + #:use-module (gnu packages package-management) + #:use-module (gnu packages pciutils) #:use-module (gnu packages texinfo) - #:use-module (gnu packages compression) - #:use-module (gnu packages firmware) + #:use-module (gnu packages zile) #:use-module (gnu services) #:use-module (gnu services shepherd) #:use-module (gnu services base) @@ -159,6 +163,7 @@ %base-packages-interactive %base-packages-linux %base-packages-networking + %base-packages-disk-utils %base-packages-utils %base-firmware %default-kernel-arguments)) @@ -726,6 +731,19 @@ of PROVENANCE-SERVICE-TYPE to its services." ;; many people are familiar with, so keep it around. iw wireless-tools)) +(define %base-packages-disk-utils + ;; A well-rounded set of packages for interacting with disks, partitions + ;; and filesystems. + (list parted gptfdisk ddrescue + ;; We used to provide fdisk from GNU fdisk, but as of version 2.0.0a + ;; it pulls Guile 1.8, which takes unreasonable space; furthermore + ;; util-linux's fdisk is already available, in %base-packages-linux. + cryptsetup mdadm + dosfstools + btrfs-progs + f2fs-tools + jfsutils)) + (define %base-packages ;; Default set of packages globally visible. It should include anything ;; required for basic administrator tasks. -- 2.28.0 ^ permalink raw reply related [flat|nested] 8+ messages in thread
* [bug#43881] [PATCH 2/2] install: Deduplicate packages with %base-package sets. 2020-10-09 13:42 ` [bug#43881] [PATCH 1/2] system: Add %base-packages-disk-utils Efraim Flashner @ 2020-10-09 13:42 ` Efraim Flashner 2020-10-14 9:19 ` Ludovic Courtès 2020-10-14 9:17 ` [bug#43881] [PATCH 1/2] system: Add %base-packages-disk-utils Ludovic Courtès 2020-10-15 7:55 ` bug#43881: " Efraim Flashner 2 siblings, 1 reply; 8+ messages in thread From: Efraim Flashner @ 2020-10-09 13:42 UTC (permalink / raw) To: 43881; +Cc: Efraim Flashner * gnu/system.scm (%base-packages-interactive): Add nvi. * gnu/system/install.scm (installation-os)[packages]: Remove parted, gptfdisk, ddrescue, cryptsetup, mdadm, dosfstools, btrfs-progs, f2fs-tools, jfstools, openssh, wireless-tools, iw, wpa-supplicant-minimal, iproute, bash-completion, nvi. Replace glibc with the canonical-package of glibc. Add %base-packages-disk-utils. remove wpa-supplicant-minimal replace glibc with canonical-pacakge glibc --- gnu/system.scm | 2 ++ gnu/system/install.scm | 37 ++++++++++--------------------------- 2 files changed, 12 insertions(+), 27 deletions(-) diff --git a/gnu/system.scm b/gnu/system.scm index b10e94b95b..3bc89e0a31 100644 --- a/gnu/system.scm +++ b/gnu/system.scm @@ -56,6 +56,7 @@ #:use-module (gnu packages linux) #:use-module (gnu packages man) #:use-module (gnu packages nano) + #:use-module (gnu packages nvi) #:use-module (gnu packages package-management) #:use-module (gnu packages pciutils) #:use-module (gnu packages texinfo) @@ -713,6 +714,7 @@ of PROVENANCE-SERVICE-TYPE to its services." (define %base-packages-interactive ;; Default set of common interactive packages. (list less zile nano + nvi man-db info-reader ;the standalone Info reader (no Perl) bash-completion diff --git a/gnu/system/install.scm b/gnu/system/install.scm index be5a678cec..0af9e2993d 100644 --- a/gnu/system/install.scm +++ b/gnu/system/install.scm @@ -5,6 +5,7 @@ ;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com> ;;; Copyright © 2017, 2019 Tobias Geerinckx-Rice <me@tobias.gr> ;;; Copyright © 2020 Florian Pelz <pelzflorian@pelzflorian.de> +;;; Copyright © 2020 Efraim Flashner <efraim@flashner.co.il> ;;; ;;; This file is part of GNU Guix. ;;; @@ -41,18 +42,13 @@ #:use-module (gnu packages bash) #:use-module (gnu packages bootloaders) #:use-module (gnu packages certs) - #:use-module (gnu packages file-systems) + #:use-module (gnu packages compression) #:use-module (gnu packages fonts) #:use-module (gnu packages fontutils) #:use-module (gnu packages guile) #:use-module (gnu packages linux) - #:use-module (gnu packages ssh) - #:use-module (gnu packages cryptsetup) #:use-module (gnu packages package-management) - #:use-module (gnu packages disk) #:use-module (gnu packages texinfo) - #:use-module (gnu packages compression) - #:use-module (gnu packages nvi) #:use-module (gnu packages xorg) #:use-module (ice-9 match) #:use-module (srfi srfi-26) @@ -490,27 +486,14 @@ Access documentation at any time by pressing Alt-F2.\x1b[0m ;; Explicitly allow for empty passwords. (base-pam-services #:allow-empty-passwords? #t)) - (packages (cons* glibc ;for 'tzselect' & co. - parted gptfdisk ddrescue - fontconfig - font-dejavu font-gnu-unifont - grub ;mostly so xrefs to its manual work - cryptsetup - mdadm - dosfstools ;mkfs.fat, for the UEFI boot partition - btrfs-progs - f2fs-tools - jfsutils - openssh ;we already have sshd, having ssh/scp can help - wireless-tools iw wpa-supplicant-minimal iproute - ;; XXX: We used to have GNU fdisk here, but as of version - ;; 2.0.0a, that pulls Guile 1.8, which takes unreasonable - ;; space; furthermore util-linux's fdisk is already - ;; available here, so we keep that. - bash-completion - nvi ;:wq! - nss-certs ; To access HTTPS, use git, etc. - %base-packages)))) + (packages (append + (list (canonical-package glibc) ; for 'tzselect' & co. + fontconfig + font-dejavu font-gnu-unifont + grub ; mostly so xrefs to its manual work + nss-certs) ; To access HTTPS, use git, etc. + %base-packages-disk-utils + %base-packages)))) (define* (os-with-u-boot os board #:key (bootloader-target "/dev/mmcblk0") (triplet "arm-linux-gnueabihf")) -- 2.28.0 ^ permalink raw reply related [flat|nested] 8+ messages in thread
* [bug#43881] [PATCH 2/2] install: Deduplicate packages with %base-package sets. 2020-10-09 13:42 ` [bug#43881] [PATCH 2/2] install: Deduplicate packages with %base-package sets Efraim Flashner @ 2020-10-14 9:19 ` Ludovic Courtès 2020-10-14 9:24 ` Efraim Flashner 0 siblings, 1 reply; 8+ messages in thread From: Ludovic Courtès @ 2020-10-14 9:19 UTC (permalink / raw) To: Efraim Flashner; +Cc: 43881 Efraim Flashner <efraim@flashner.co.il> skribis: > * gnu/system.scm (%base-packages-interactive): Add nvi. > * gnu/system/install.scm (installation-os)[packages]: Remove parted, > gptfdisk, ddrescue, cryptsetup, mdadm, dosfstools, btrfs-progs, > f2fs-tools, jfstools, openssh, wireless-tools, iw, > wpa-supplicant-minimal, iproute, bash-completion, nvi. Replace glibc > with the canonical-package of glibc. Add %base-packages-disk-utils. > > remove wpa-supplicant-minimal > replace glibc with canonical-pacakge glibc These two lines are a leftover? I think we want to keep ‘wpa-supplicant-minimal’ and keep ‘glibc’, not the canonical-package variant (it would prevent cross-compilation). Apart from that, if that leaves the package set unchanged, LGTM! Ludo’. ^ permalink raw reply [flat|nested] 8+ messages in thread
* [bug#43881] [PATCH 2/2] install: Deduplicate packages with %base-package sets. 2020-10-14 9:19 ` Ludovic Courtès @ 2020-10-14 9:24 ` Efraim Flashner 0 siblings, 0 replies; 8+ messages in thread From: Efraim Flashner @ 2020-10-14 9:24 UTC (permalink / raw) To: Ludovic Courtès; +Cc: 43881 [-- Attachment #1: Type: text/plain, Size: 1376 bytes --] On Wed, Oct 14, 2020 at 11:19:05AM +0200, Ludovic Courtès wrote: > Efraim Flashner <efraim@flashner.co.il> skribis: > > > * gnu/system.scm (%base-packages-interactive): Add nvi. > > * gnu/system/install.scm (installation-os)[packages]: Remove parted, > > gptfdisk, ddrescue, cryptsetup, mdadm, dosfstools, btrfs-progs, > > f2fs-tools, jfstools, openssh, wireless-tools, iw, > > wpa-supplicant-minimal, iproute, bash-completion, nvi. Replace glibc > > with the canonical-package of glibc. Add %base-packages-disk-utils. > > > > remove wpa-supplicant-minimal > > replace glibc with canonical-pacakge glibc > > These two lines are a leftover? Looks like they're a leftover from squashing two commits. Especially looking at my typo for package. > I think we want to keep ‘wpa-supplicant-minimal’ and keep ‘glibc’, not > the canonical-package variant (it would prevent cross-compilation). We should already have wpa-supplicant available from the wpa-supplicant-service-type. Understood about the canonical-package bit. > Apart from that, if that leaves the package set unchanged, LGTM! > > Ludo’. Thanks for the review. -- Efraim Flashner <efraim@flashner.co.il> אפרים פלשנר GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* [bug#43881] [PATCH 1/2] system: Add %base-packages-disk-utils. 2020-10-09 13:42 ` [bug#43881] [PATCH 1/2] system: Add %base-packages-disk-utils Efraim Flashner 2020-10-09 13:42 ` [bug#43881] [PATCH 2/2] install: Deduplicate packages with %base-package sets Efraim Flashner @ 2020-10-14 9:17 ` Ludovic Courtès 2020-10-14 9:21 ` Efraim Flashner 2020-10-15 7:55 ` bug#43881: " Efraim Flashner 2 siblings, 1 reply; 8+ messages in thread From: Ludovic Courtès @ 2020-10-14 9:17 UTC (permalink / raw) To: Efraim Flashner; +Cc: 43881 Hi! Efraim Flashner <efraim@flashner.co.il> skribis: > * gnu/system.scm (%base-packages-disk-utils): New variable. [...] > #:use-module (guix diagnostics) > + #:use-module (gnu packages admin) > #:use-module (gnu packages base) > #:use-module (gnu packages bash) > + #:use-module (gnu packages compression) > #:use-module (gnu packages cross-base) > + #:use-module (gnu packages cryptsetup) > + #:use-module (gnu packages disk) > + #:use-module (gnu packages file-systems) > + #:use-module (gnu packages firmware) > + #:use-module (gnu packages gawk) > #:use-module (gnu packages guile) > #:use-module (gnu packages guile-xyz) > - #:use-module (gnu packages admin) > #:use-module (gnu packages hurd) > - #:use-module (gnu packages linux) > - #:use-module (gnu packages pciutils) > - #:use-module (gnu packages package-management) > #:use-module (gnu packages less) > - #:use-module (gnu packages zile) > - #:use-module (gnu packages nano) > - #:use-module (gnu packages gawk) > + #:use-module (gnu packages linux) > #:use-module (gnu packages man) > + #:use-module (gnu packages nano) > + #:use-module (gnu packages package-management) > + #:use-module (gnu packages pciutils) > #:use-module (gnu packages texinfo) > - #:use-module (gnu packages compression) > - #:use-module (gnu packages firmware) > + #:use-module (gnu packages zile) > #:use-module (gnu services) > #:use-module (gnu services shepherd) > #:use-module (gnu services base) Does it pull new modules or just reorder them? If the latter, fine with me! > @@ -159,6 +163,7 @@ > %base-packages-interactive > %base-packages-linux > %base-packages-networking > + %base-packages-disk-utils > %base-packages-utils Now there’s a precedent but I think we should have written “utilities” for consistency with the rest of the code base. Maybe you can do that here and then we can deprecate ‘%base-packages-utils’ in favor of ‘%base-package-utilities’. Thanks, Ludo’. ^ permalink raw reply [flat|nested] 8+ messages in thread
* [bug#43881] [PATCH 1/2] system: Add %base-packages-disk-utils. 2020-10-14 9:17 ` [bug#43881] [PATCH 1/2] system: Add %base-packages-disk-utils Ludovic Courtès @ 2020-10-14 9:21 ` Efraim Flashner 0 siblings, 0 replies; 8+ messages in thread From: Efraim Flashner @ 2020-10-14 9:21 UTC (permalink / raw) To: Ludovic Courtès; +Cc: 43881 [-- Attachment #1: Type: text/plain, Size: 2625 bytes --] On Wed, Oct 14, 2020 at 11:17:08AM +0200, Ludovic Courtès wrote: > Hi! > > Efraim Flashner <efraim@flashner.co.il> skribis: > > > * gnu/system.scm (%base-packages-disk-utils): New variable. > > > [...] > > > #:use-module (guix diagnostics) > > + #:use-module (gnu packages admin) > > #:use-module (gnu packages base) > > #:use-module (gnu packages bash) > > + #:use-module (gnu packages compression) > > #:use-module (gnu packages cross-base) > > + #:use-module (gnu packages cryptsetup) > > + #:use-module (gnu packages disk) > > + #:use-module (gnu packages file-systems) > > + #:use-module (gnu packages firmware) > > + #:use-module (gnu packages gawk) > > #:use-module (gnu packages guile) > > #:use-module (gnu packages guile-xyz) > > - #:use-module (gnu packages admin) > > #:use-module (gnu packages hurd) > > - #:use-module (gnu packages linux) > > - #:use-module (gnu packages pciutils) > > - #:use-module (gnu packages package-management) > > #:use-module (gnu packages less) > > - #:use-module (gnu packages zile) > > - #:use-module (gnu packages nano) > > - #:use-module (gnu packages gawk) > > + #:use-module (gnu packages linux) > > #:use-module (gnu packages man) > > + #:use-module (gnu packages nano) > > + #:use-module (gnu packages package-management) > > + #:use-module (gnu packages pciutils) > > #:use-module (gnu packages texinfo) > > - #:use-module (gnu packages compression) > > - #:use-module (gnu packages firmware) > > + #:use-module (gnu packages zile) > > #:use-module (gnu services) > > #:use-module (gnu services shepherd) > > #:use-module (gnu services base) > > Does it pull new modules or just reorder them? If the latter, fine with me! It reorders them and adds cryptsetup, disk and file-systems. > > @@ -159,6 +163,7 @@ > > %base-packages-interactive > > %base-packages-linux > > %base-packages-networking > > + %base-packages-disk-utils > > %base-packages-utils > > Now there’s a precedent but I think we should have written “utilities” > for consistency with the rest of the code base. > > Maybe you can do that here and then we can deprecate > ‘%base-packages-utils’ in favor of ‘%base-package-utilities’. +1 for utilities over utils > Thanks, > Ludo’. -- Efraim Flashner <efraim@flashner.co.il> אפרים פלשנר GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#43881: [PATCH 1/2] system: Add %base-packages-disk-utils. 2020-10-09 13:42 ` [bug#43881] [PATCH 1/2] system: Add %base-packages-disk-utils Efraim Flashner 2020-10-09 13:42 ` [bug#43881] [PATCH 2/2] install: Deduplicate packages with %base-package sets Efraim Flashner 2020-10-14 9:17 ` [bug#43881] [PATCH 1/2] system: Add %base-packages-disk-utils Ludovic Courtès @ 2020-10-15 7:55 ` Efraim Flashner 2 siblings, 0 replies; 8+ messages in thread From: Efraim Flashner @ 2020-10-15 7:55 UTC (permalink / raw) To: 43881-done [-- Attachment #1: Type: text/plain, Size: 232 bytes --] Patches pushed! -- Efraim Flashner <efraim@flashner.co.il> אפרים פלשנר GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2020-10-15 7:57 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2020-10-09 13:39 [bug#43881] [PATCH 0/2] Deduplicate package sets Efraim Flashner 2020-10-09 13:42 ` [bug#43881] [PATCH 1/2] system: Add %base-packages-disk-utils Efraim Flashner 2020-10-09 13:42 ` [bug#43881] [PATCH 2/2] install: Deduplicate packages with %base-package sets Efraim Flashner 2020-10-14 9:19 ` Ludovic Courtès 2020-10-14 9:24 ` Efraim Flashner 2020-10-14 9:17 ` [bug#43881] [PATCH 1/2] system: Add %base-packages-disk-utils Ludovic Courtès 2020-10-14 9:21 ` Efraim Flashner 2020-10-15 7:55 ` bug#43881: " Efraim Flashner
Code repositories for project(s) associated with this external index https://git.savannah.gnu.org/cgit/guix.git This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.