GNU bug report logs - #39505
Adding filesystem utilities based on file-systems

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: Leo Famulari <leo@HIDDEN>; dated Sat, 8 Feb 2020 00:32:01 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at 39505 <at> debbugs.gnu.org:


Received: (at 39505) by debbugs.gnu.org; 10 Feb 2020 22:07:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 10 17:07:07 2020
Received: from localhost ([127.0.0.1]:55650 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1j1HCt-0005Xk-1p
	for submit <at> debbugs.gnu.org; Mon, 10 Feb 2020 17:07:07 -0500
Received: from eggs.gnu.org ([209.51.188.92]:48832)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1j1HCr-0005Wp-3w
 for 39505 <at> debbugs.gnu.org; Mon, 10 Feb 2020 17:07:05 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:56529)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1j1HCl-0007qF-Td; Mon, 10 Feb 2020 17:07:00 -0500
Received: from [2a01:e0a:1d:7270:6a6c:dc17:fc02:cfda] (port=45638 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1j1HCk-0001Q8-NU; Mon, 10 Feb 2020 17:06:59 -0500
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Leo Famulari <leo@HIDDEN>
Subject: Re: bug#39505: Adding filesystem utilities based on file-systems
References: <20200208003122.GA31711@HIDDEN>
Date: Mon, 10 Feb 2020 23:06:55 +0100
In-Reply-To: <20200208003122.GA31711@HIDDEN> (Leo Famulari's message of
 "Fri, 7 Feb 2020 19:31:22 -0500")
Message-ID: <87r1z2gkqo.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 39505
Cc: 39505 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

--=-=-=
Content-Type: text/plain

Hi Leo,

Leo Famulari <leo@HIDDEN> skribis:

> As discussed in #39332 [0], it would be great if filesystem utility
> packages were added to the system profile if a file-systems entry uses
> that filesystem type.
>
> For example, btrfs-progs could be added if a btrfs filesystem was listed
> in file-systems.

This could be done with something like:


--=-=-=
Content-Type: text/x-patch
Content-Disposition: inline

diff --git a/gnu/system.scm b/gnu/system.scm
index 01baa248a2..3ff3073017 100644
--- a/gnu/system.scm
+++ b/gnu/system.scm
@@ -203,7 +203,11 @@
          (default %default-issue))
 
   (packages operating-system-packages             ; list of (PACKAGE OUTPUT...)
-            (default %base-packages))             ; or just PACKAGE
+            (thunked)                             ; or just PACKAGE
+            (default (append (file-system-packages
+                              (operating-system-file-systems
+                               this-operating-system))
+                             %base-packages)))
 
   (timezone operating-system-timezone)            ; string
   (locale   operating-system-locale               ; string

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable


However, this would only work for the default values of =E2=80=98packages=
=E2=80=99.  In
other cases, users would have to add (file-system-packages =E2=80=A6) expli=
citly
by themselves, which is not great.

Alternately, we could turn =E2=80=98%base-packages=E2=80=99 into a macro th=
at expands
to something like:

  (gimme-the-base-packages this-operating-system)

but that wouldn=E2=80=99t be great because now you=E2=80=99d be unable to r=
efer to
=E2=80=98%base-packages=E2=80=99 like a regular variable, outside the lexic=
al context of
an =E2=80=98operating-system=E2=80=99 form.

Thoughts?

Ludo=E2=80=99.

--=-=-=--




Information forwarded to bug-guix@HIDDEN:
bug#39505; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 8 Feb 2020 00:31:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 07 19:31:45 2020
Received: from localhost ([127.0.0.1]:50485 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1j0E2C-0007Bv-Rv
	for submit <at> debbugs.gnu.org; Fri, 07 Feb 2020 19:31:45 -0500
Received: from lists.gnu.org ([209.51.188.17]:60007)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <leo@HIDDEN>) id 1j0E29-0007Bl-1q
 for submit <at> debbugs.gnu.org; Fri, 07 Feb 2020 19:31:43 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:42800)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <leo@HIDDEN>) id 1j0E27-0005L4-SQ
 for bug-guix@HIDDEN; Fri, 07 Feb 2020 19:31:40 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_20,RCVD_IN_DNSWL_LOW,
 URIBL_BLOCKED autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <leo@HIDDEN>) id 1j0E26-0001al-Sr
 for bug-guix@HIDDEN; Fri, 07 Feb 2020 19:31:39 -0500
Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:46443)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <leo@HIDDEN>) id 1j0E26-0001Xj-NZ
 for bug-guix@HIDDEN; Fri, 07 Feb 2020 19:31:38 -0500
Received: from compute4.internal (compute4.nyi.internal [10.202.2.44])
 by mailout.west.internal (Postfix) with ESMTP id 4CF153AB;
 Fri,  7 Feb 2020 19:31:36 -0500 (EST)
Received: from mailfrontend2 ([10.202.2.163])
 by compute4.internal (MEProxy); Fri, 07 Feb 2020 19:31:36 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name;
 h=date:from:to:subject:message-id:mime-version:content-type; s=
 mesmtp; bh=mEQTCrb2VybgZGJYS7rC+hNq7NVhX1XT0qXvlegKLNk=; b=uO8O0
 IhJEJVlr6WH0HhpnFCgyMvxlLww7i5O/k0JGWGtjyKBdx8qtmJvWmFMEnMVrIYPk
 uCeqkua7ZqIkidR/0h4Glsh3mjoppYIe30sZYgcg4MzKnNUqrkfSWX7NOM3lePbh
 SS1LegSwN/8x/7XD+KlTeDVC/QdoflzR3J2HpQ=
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=content-type:date:from:message-id
 :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender
 :x-me-sender:x-sasl-enc; s=fm2; bh=mEQTCrb2VybgZGJYS7rC+hNq7NVhX
 1XT0qXvlegKLNk=; b=mw6OH9xqrFOVSxivtnJozXBOOwlQNgSUui5ZsWMPla6Dv
 vM2V2Ubsp+wXkeRbaeRXD6qv1iPVM0jR27ybrnWNmtEDoHRadNh+tnYJJlHg2eCH
 8zp4+EBTUJDHU2IQZAjpAHUrcxiPZuq8PBD/Ki2dFBLv4QeRaArPsU72Alk+bGr5
 2EN3kp412qkf78Hpr4UqhXkzELvz7c3AxApIcI6mwK/kCDP4QC1QypInPxcksJjr
 GOWiLp5R+vttVAlimEs0d/a0FOIYfKqDoTrvGheybC43hInfCG/rGReaDLo8gmda
 vLojkYBFfp6CYA9FBDEkM/tNBsONmvRu1JsNpu5/A==
X-ME-Sender: <xms:ZwE-XpuVfPX3qk6O1x0_UFWwDD_3mC-WAc2Y6gYdrk46Ws-NjdOzgQ>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrheeigddvgecutefuodetggdotefrodftvf
 curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu
 uegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfggtggusehttdertddttd
 dvnecuhfhrohhmpefnvghoucfhrghmuhhlrghrihcuoehlvghosehfrghmuhhlrghrihdr
 nhgrmhgvqeenucffohhmrghinhepghhuihigrdhinhhfohenucfkphepudejvddrheekrd
 dvtdefrdduieeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhf
 rhhomheplhgvohesfhgrmhhulhgrrhhirdhnrghmvg
X-ME-Proxy: <xmx:ZwE-XrwhDPydxEJ7mvHjeo7PykdGWpyYuyRiaboNsLUXd7FgQzx91Q>
 <xmx:ZwE-XriPRscbvGPhVILGM4diC-xLWqyKwQ4kwFAj72QFq56iBKQWOA>
 <xmx:ZwE-XrPRp0k_xcyB4mqB3gc397M8ZDARCddv2aUhP7BfVxnbu_RukA>
 <xmx:ZwE-Xk5G0gcsbtXDqnoZBT1obMHVGGBbVe0GrRJnglQY0BMFUdqw4w>
Received: from localhost (unknown [172.58.203.168])
 by mail.messagingengine.com (Postfix) with ESMTPA id F3C7C30607B0
 for <bug-guix@HIDDEN>; Fri,  7 Feb 2020 19:31:34 -0500 (EST)
Date: Fri, 7 Feb 2020 19:31:22 -0500
From: Leo Famulari <leo@HIDDEN>
To: bug-guix@HIDDEN
Subject: Adding filesystem utilities based on file-systems
Message-ID: <20200208003122.GA31711@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-Received-From: 64.147.123.24
X-Spam-Score: 0.2 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.8 (/)

As discussed in #39332 [0], it would be great if filesystem utility
packages were added to the system profile if a file-systems entry uses
that filesystem type.

For example, btrfs-progs could be added if a btrfs filesystem was listed
in file-systems.

[0]
https://issues.guix.info/issue/39332#3




Acknowledgement sent to Leo Famulari <leo@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#39505; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 10 Feb 2020 22:15:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.