GNU bug report logs - #33286
Add 'list-formats' to 'guix pack'

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-patches; Reported by: Efraim Flashner <efraim@HIDDEN>; dated Tue, 6 Nov 2018 09:55:01 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.

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


Received: (at 33286) by debbugs.gnu.org; 6 Nov 2018 15:32:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 06 10:32:14 2018
Received: from localhost ([127.0.0.1]:37447 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gK3Kv-0003Hy-W7
	for submit <at> debbugs.gnu.org; Tue, 06 Nov 2018 10:32:14 -0500
Received: from eggs.gnu.org ([208.118.235.92]:59745)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1gK3Ku-0003Hj-Bz
 for 33286 <at> debbugs.gnu.org; Tue, 06 Nov 2018 10:32:12 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ludo@HIDDEN>) id 1gK3Kk-0001O5-45
 for 33286 <at> debbugs.gnu.org; Tue, 06 Nov 2018 10:32:07 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled
 version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:55402)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1gK3Kj-0001Nt-Sw; Tue, 06 Nov 2018 10:32:02 -0500
Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=33500 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1gK3Kj-0006cr-Kn; Tue, 06 Nov 2018 10:32:01 -0500
From: ludo@HIDDEN (Ludovic =?utf-8?Q?Court=C3=A8s?=)
To: Efraim Flashner <efraim@HIDDEN>
Subject: Re: [bug#33286] Add 'list-formats' to 'guix pack'
References: <20181106095316.GB1206@macbook41>
Date: Tue, 06 Nov 2018 16:31:59 +0100
In-Reply-To: <20181106095316.GB1206@macbook41> (Efraim Flashner's message of
 "Tue, 6 Nov 2018 11:53:16 +0200")
Message-ID: <87lg66xlw0.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 33286
Cc: 33286 <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: -6.0 (------)

Hello,

Efraim Flashner <efraim@HIDDEN> skribis:

> From af9a132a662f1d703df1c32278a45d2adca146ed Mon Sep 17 00:00:00 2001
> From: Efraim Flashner <efraim@HIDDEN>
> Date: Tue, 6 Nov 2018 11:50:48 +0200
> Subject: [PATCH] pack: List the available formats.
>
> * guix/scripts/pack.scm (show-formats): New variable.
> (%options, show-help): Add 'list-formats' option.

[...]

> @@ -551,6 +552,18 @@ please email '~a'~%")
>      (squashfs . ,squashfs-image)
>      (docker  . ,docker-image)))
>=20=20
> +(define (show-formats)
> +  ;; Print the supported pack formats.
> +  (display (G_ "The supported formats for 'guix pack' are:"))
> +  (newline)
> +  (display (G_ "
> +  tarball       A self-contained tarball, ready to run on another machin=
e."))
> +  (display (G_ "
> +  squashfs      A squashfs image, ready for 'cluster engines' and the li=
ke."))

I=E2=80=99d write =E2=80=9CSquashfs image suitable for Singularity=E2=80=9D=
 and remove =E2=80=9CA=E2=80=9D from
each.

Also, since we have the =E2=80=98%formats=E2=80=99 alist right above, what =
about
adjusting it so that it contains each format description, and then
=E2=80=98show-formats=E2=80=99 would just traverse it?

You could do:

  (define-record-type <image-format>
    (image-format proc description)
    image-format?
    (proc        image-format-procedure)
    (description image-format-description))

  (define %formats
    (let-syntax ((description (syntax-rules () ((_ str) str))))
      `((tarball . ,(image-format self-contained-tarball
                                  (description "foo bar")))
        =E2=80=A6)))

The dummy =E2=80=98description=E2=80=99 macro is here to allow =E2=80=98xge=
ttext=E2=80=99 to catch the
translatable strings without actually translating them right away;
=E2=80=98show-formats=E2=80=99 will have to call =E2=80=98G_=E2=80=99 for t=
hat.

WDYT?

Ludo=E2=80=99.




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

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


Received: (at 33286) by debbugs.gnu.org; 6 Nov 2018 10:48:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 06 05:48:19 2018
Received: from localhost ([127.0.0.1]:36034 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gJyu9-0008Th-W5
	for submit <at> debbugs.gnu.org; Tue, 06 Nov 2018 05:48:19 -0500
Received: from flashner.co.il ([178.62.234.194]:40284)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <efraim@HIDDEN>) id 1gJyu8-0008TI-3j
 for 33286 <at> debbugs.gnu.org; Tue, 06 Nov 2018 05:48:16 -0500
Received: from localhost (unknown [5.102.239.133])
 by flashner.co.il (Postfix) with ESMTPSA id 3E3044005A;
 Tue,  6 Nov 2018 10:48:10 +0000 (UTC)
Date: Tue, 6 Nov 2018 12:48:09 +0200
From: Efraim Flashner <efraim@HIDDEN>
To: Danny Milosavljevic <dannym@HIDDEN>
Subject: Re: [bug#33286] Add 'list-formats' to 'guix pack'
Message-ID: <20181106104809.GD1206@macbook41>
References: <20181106095316.GB1206@macbook41>
 <20181106113915.645b3756@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512;
 protocol="application/pgp-signature"; boundary="uCPdOCrL+PnN2Vxy"
Content-Disposition: inline
In-Reply-To: <20181106113915.645b3756@HIDDEN>
User-Agent: Mutt/1.10.1 (2018-07-13)
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 33286
Cc: 33286 <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.0 (-)


--uCPdOCrL+PnN2Vxy
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Nov 06, 2018 at 11:39:15AM +0100, Danny Milosavljevic wrote:
> Hi Efraim,
>=20
> On Tue, 6 Nov 2018 11:53:16 +0200
> Efraim Flashner <efraim@HIDDEN> wrote:
>=20
> > I was looking at the help menu for 'guix pack' and I realized that I
> > didn't know what formats were available and there wasn't a flag to show
> > them.
>=20
> Good idea!  In principle LGTM, but why not (also?) always show them on "-=
-help"?
> It's kinda weird to have "--help" not show something and then having to i=
nvoke a
> command again to get it.  It's not like the new output is long in proport=
ion
> to the existing output of "--help" or anything.

we also have 'guix refresh --list-updaters' and 'guix lint
--list-checkers'.

'guix system', for file-system-type, shows '(one of 'ext4', 'iso9660')'
right in the options.

also 'guix hash' allows other formats but doesn't have a list-updaters

having "(one of 'tarball', 'squashfs', 'docker')" would be easier, but
IMO my patch gives more information, specifically about squashfs and
needing to run 'docker load'.

--=20
Efraim Flashner   <efraim@HIDDEN>   =D7=90=D7=A4=D7=A8=D7=99=D7=9D =
=D7=A4=D7=9C=D7=A9=D7=A0=D7=A8
GPG key =3D A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

--uCPdOCrL+PnN2Vxy
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAlvhcWUACgkQQarn3Mo9
g1G4Ew//UKOB3TkEk6eXnIY9TZvBfTRnFLZa0kcsiggkXiKkVVyG0iWUTR9bOY+w
JZgV4UxNtaVw51UqBaS3dGDAToc+vgmQB+59U1uQltx3eTt8eFPUP/KcZcwF6QI+
9IqLYl8WKvFdmWC6Mvj9NXZtsDHXfYu5Um8uy4QyZA7ZI0ATXlJVQG8DFcUCTNqi
mtUQ2zoEjqRjJiba/q3/AewD35gOVmurNzH0Cl+5eNjlrvwzoymmIF4jueJOcPtQ
W9fu36wFbNt94VnrT+sdfRQYNHrW2KoBY/FO9GQrXc+b47VHp8JFiGOBXfn4/ju6
3gneYEvx0MpEQyfmPSK8VNiZ3g0g6cx7nJSc2s2h4TAjKA+DrAeQ9YEKuVFaWAWM
JxEGFvabuy0q54avc6YyMe98A6EcTtRDEBRIpDeEfM4TZuldNH41NJ9qKdZX/kB/
BrapD0aSYriLvDOd5tc/wIfK+yVvD0ZgVZMQU1ZjqJS4NsU8Q4N10cXqAkJCDpmZ
ZPHPY9ESwCuiTnXWvXOW35y+K1ePhY23AKYLATKQ5qODUyRDPShr1P96LrLUaKkc
jdcoDrWfg09HjNotLUcB2dnQriiwNslJTTXj5XeQYV/ksXNi8pDCMzfE4y9RGQWO
zGMj9HMa3t9mjoKXDe6qo4CymnIUeHbR30/DViwLPQTEBb5idH8=
=lXvv
-----END PGP SIGNATURE-----

--uCPdOCrL+PnN2Vxy--




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

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


Received: (at 33286) by debbugs.gnu.org; 6 Nov 2018 10:39:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 06 05:39:30 2018
Received: from localhost ([127.0.0.1]:36026 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gJyle-0008EM-34
	for submit <at> debbugs.gnu.org; Tue, 06 Nov 2018 05:39:30 -0500
Received: from dd26836.kasserver.com ([85.13.145.193]:60778)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dannym@HIDDEN>) id 1gJylc-0008ED-2j
 for 33286 <at> debbugs.gnu.org; Tue, 06 Nov 2018 05:39:28 -0500
Received: from localhost (178.113.175.117.wireless.dyn.drei.com
 [178.113.175.117])
 by dd26836.kasserver.com (Postfix) with ESMTPSA id 3431B336024E;
 Tue,  6 Nov 2018 11:39:26 +0100 (CET)
Date: Tue, 6 Nov 2018 11:39:15 +0100
From: Danny Milosavljevic <dannym@HIDDEN>
To: Efraim Flashner <efraim@HIDDEN>
Subject: Re: [bug#33286] Add 'list-formats' to 'guix pack'
Message-ID: <20181106113915.645b3756@HIDDEN>
In-Reply-To: <20181106095316.GB1206@macbook41>
References: <20181106095316.GB1206@macbook41>
X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.32; x86_64-unknown-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
 boundary="Sig_/NxNxIYD8a.Eg+.PUstDBsT4"; protocol="application/pgp-signature"
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 33286
Cc: 33286 <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 (-)

--Sig_/NxNxIYD8a.Eg+.PUstDBsT4
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Hi Efraim,

On Tue, 6 Nov 2018 11:53:16 +0200
Efraim Flashner <efraim@HIDDEN> wrote:

> I was looking at the help menu for 'guix pack' and I realized that I
> didn't know what formats were available and there wasn't a flag to show
> them.

Good idea!  In principle LGTM, but why not (also?) always show them on "--h=
elp"?
It's kinda weird to have "--help" not show something and then having to inv=
oke a
command again to get it.  It's not like the new output is long in proportion
to the existing output of "--help" or anything.

--Sig_/NxNxIYD8a.Eg+.PUstDBsT4
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAlvhb1MACgkQ5xo1VCww
uqVAzAf+If7sdeMisWJQ/as7+E5sbNAe0AILq45s4u9vzhFKqwc24XQl22ZHw/Gn
YTO/Ny9P9ZkeqiCtXk33kSGlZINagLVWz/TAafeP7lI/jgiyd5NcefOzDL3zciK/
XDZcZn7YXZK+eAwtH2/OF12m0U0i3v3egVBri748cWEzr0g8JyK4cf1d1GcffvEv
z+G5XnJtIyxZypCez6CEFM3aAeXWLGjQOmfGwYb3EoML3u+DSegTRy97svV1sCI9
CEQH5fjZo/qYJYl6FjLI3GnWnAQpi3pdPy1ejYBHj3rKEDO0Z+RUlNkMx3L2bClB
YQ/sKqAuPHWPjM2aDg+nHjbrZsYDPA==
=Tt+F
-----END PGP SIGNATURE-----

--Sig_/NxNxIYD8a.Eg+.PUstDBsT4--




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

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


Received: (at submit) by debbugs.gnu.org; 6 Nov 2018 09:54:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 06 04:54:53 2018
Received: from localhost ([127.0.0.1]:36003 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gJy4S-0007Bd-OH
	for submit <at> debbugs.gnu.org; Tue, 06 Nov 2018 04:54:53 -0500
Received: from eggs.gnu.org ([208.118.235.92]:44156)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <efraim@HIDDEN>) id 1gJy4R-0007BR-N9
 for submit <at> debbugs.gnu.org; Tue, 06 Nov 2018 04:54:52 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <efraim@HIDDEN>) id 1gJy4G-0006Uf-Hv
 for submit <at> debbugs.gnu.org; Tue, 06 Nov 2018 04:54:44 -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.8 required=5.0 tests=BAYES_50 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:45018)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <efraim@HIDDEN>)
 id 1gJy45-0006Ia-8G
 for submit <at> debbugs.gnu.org; Tue, 06 Nov 2018 04:54:32 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:53617)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <efraim@HIDDEN>) id 1gJy42-0000ox-0q
 for guix-patches@HIDDEN; Tue, 06 Nov 2018 04:54:29 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <efraim@HIDDEN>) id 1gJy2x-0004jW-Bm
 for guix-patches@HIDDEN; Tue, 06 Nov 2018 04:53:22 -0500
Received: from flashner.co.il ([178.62.234.194]:58406)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <efraim@HIDDEN>) id 1gJy2x-0004fp-1u
 for guix-patches@HIDDEN; Tue, 06 Nov 2018 04:53:19 -0500
Received: from localhost (unknown [5.102.239.133])
 by flashner.co.il (Postfix) with ESMTPSA id 793614005A
 for <guix-patches@HIDDEN>; Tue,  6 Nov 2018 09:53:17 +0000 (UTC)
Date: Tue, 6 Nov 2018 11:53:16 +0200
From: Efraim Flashner <efraim@HIDDEN>
To: guix-patches@HIDDEN
Subject: Add 'list-formats' to 'guix pack'
Message-ID: <20181106095316.GB1206@macbook41>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512;
 protocol="application/pgp-signature"; boundary="f0KYrhQ4vYSV2aJu"
Content-Disposition: inline
User-Agent: Mutt/1.10.1 (2018-07-13)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
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: -5.0 (-----)


--f0KYrhQ4vYSV2aJu
Content-Type: multipart/mixed; boundary="nVMJ2NtxeReIH9PS"
Content-Disposition: inline


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

I was looking at the help menu for 'guix pack' and I realized that I
didn't know what formats were available and there wasn't a flag to show
them.

--=20
Efraim Flashner   <efraim@HIDDEN>   =D7=90=D7=A4=D7=A8=D7=99=D7=9D =
=D7=A4=D7=9C=D7=A9=D7=A0=D7=A8
GPG key =3D A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

--nVMJ2NtxeReIH9PS
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment; filename="0001-pack-List-the-available-formats.patch"
Content-Transfer-Encoding: quoted-printable

=46rom af9a132a662f1d703df1c32278a45d2adca146ed Mon Sep 17 00:00:00 2001
=46rom: Efraim Flashner <efraim@HIDDEN>
Date: Tue, 6 Nov 2018 11:50:48 +0200
Subject: [PATCH] pack: List the available formats.

* guix/scripts/pack.scm (show-formats): New variable.
(%options, show-help): Add 'list-formats' option.
---
 guix/scripts/pack.scm | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/guix/scripts/pack.scm b/guix/scripts/pack.scm
index 83bfa4ce0..9056ada6d 100644
--- a/guix/scripts/pack.scm
+++ b/guix/scripts/pack.scm
@@ -3,6 +3,7 @@
 ;;; Copyright =C2=A9 2017, 2018 Ricardo Wurmus <rekado@HIDDEN>
 ;;; Copyright =C2=A9 2018 Konrad Hinsen <konrad.hinsen@HIDDEN>
 ;;; Copyright =C2=A9 2018 Chris Marusich <cmmarusich@HIDDEN>
+;;; Copyright =C2=A9 2018 Efraim Flashner <efraim@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -551,6 +552,18 @@ please email '~a'~%")
     (squashfs . ,squashfs-image)
     (docker  . ,docker-image)))
=20
+(define (show-formats)
+  ;; Print the supported pack formats.
+  (display (G_ "The supported formats for 'guix pack' are:"))
+  (newline)
+  (display (G_ "
+  tarball       A self-contained tarball, ready to run on another machine.=
"))
+  (display (G_ "
+  squashfs      A squashfs image, ready for 'cluster engines' and the like=
=2E"))
+  (display (G_ "
+  docker        A tarball ready for 'docker load'."))
+  (newline))
+
 (define %options
   ;; Specifications of the command-line options.
   (cons* (option '(#\h "help") #f #f
@@ -567,6 +580,10 @@ please email '~a'~%")
          (option '(#\f "format") #t #f
                  (lambda (opt name arg result)
                    (alist-cons 'format (string->symbol arg) result)))
+         (option '("list-formats") #f #f
+                 (lambda args
+                   (show-formats)
+                   (exit 0)))
          (option '(#\R "relocatable") #f #f
                  (lambda (opt name arg result)
                    (alist-cons 'relocatable? #t result)))
@@ -621,6 +638,8 @@ Create a bundle of PACKAGE.\n"))
   (newline)
   (display (G_ "
   -f, --format=3DFORMAT    build a pack in the given FORMAT"))
+  (display (G_ "
+      --list-formats     list the formats available"))
   (display (G_ "
   -R, --relocatable      produce relocatable executables"))
   (display (G_ "
--=20
2.19.1


--nVMJ2NtxeReIH9PS--

--f0KYrhQ4vYSV2aJu
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAlvhZIwACgkQQarn3Mo9
g1HWZBAApJAfhl83Oxs1kk9mYrr/Se1y+4cqLxTK0V3OVGofYBXkvsmS2sVEdx57
wCyxFBzhzu9xc404UuNphI5IF711XmSRH5cWhFBHhmS++KcYu6PMeT2TksdQGgwp
Mexr/9j1cVKux0YhWgNVCnlKvHNhV33Mzn59unoOskhk4mL6Q4nKe9Tn3MiNXMjD
ldismupQbw3TAL3wRyTkD6fW5QANtVhH3pseMZcsS2C0we+iDyhtrp/5CdF/jHjN
B1SHlJYqIqKD7CMa8aV45wi1gQJd8JlBRdgtNJpdOsIRpsU7YQDpIIEf/YJ6Mb0d
HzPYNW+sHoCrHh60xmQkWTHwfO7Cp+L/a+NQsHKLvQAf6AdURAyNhPF0rqzFdAVK
UVo6UQWPKkjyvXQ1YFT6F9fhengSfRk0e3cSitUmsBku5UA0A6k5mAoXnxZ0mW2G
Zs97Yw0XY0dGKgKVISmrFDM5HdovR9sBGdOH5zAJWhIphtH99P6jNa2wd5hI87vX
Z9ExuaIGy5UqzVQyq/GIwaLVgYkA2EV5Fw9dKjKFblaVanwmWh7//2hiG67YVr5u
daNRSbUqDJx7BH1FRGN6DoO9WYmH72uz2XI/3SYljgGIPej+D4X51qlkQmoHdifa
PYlV+Q0/v6zvM6HeOUn4KrSq0dr2lkIVBneRG4aP9pdqkahNa54=
=9Azt
-----END PGP SIGNATURE-----

--f0KYrhQ4vYSV2aJu--




Acknowledgement sent to Efraim Flashner <efraim@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#33286; Package guix-patches. 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: Tue, 6 Nov 2018 15:45:01 UTC

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