From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 06 04:54:53 2018 Received: (at submit) by debbugs.gnu.org; 6 Nov 2018 09:54:53 +0000 Received: from localhost ([127.0.0.1]:36003 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gJy4S-0007Bd-OH for submit@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 ) id 1gJy4R-0007BR-N9 for submit@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 ) id 1gJy4G-0006Uf-Hv for submit@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 ) id 1gJy45-0006Ia-8G for submit@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 ) id 1gJy42-0000ox-0q for guix-patches@gnu.org; Tue, 06 Nov 2018 04:54:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gJy2x-0004jW-Bm for guix-patches@gnu.org; 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 ) id 1gJy2x-0004fp-1u for guix-patches@gnu.org; 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 ; Tue, 6 Nov 2018 09:53:17 +0000 (UTC) Date: Tue, 6 Nov 2018 11:53:16 +0200 From: Efraim Flashner To: guix-patches@gnu.org 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@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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 =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 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 ;;; Copyright =C2=A9 2018 Konrad Hinsen ;;; Copyright =C2=A9 2018 Chris Marusich +;;; Copyright =C2=A9 2018 Efraim Flashner ;;; ;;; 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-- From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 06 05:39:30 2018 Received: (at 33286) by debbugs.gnu.org; 6 Nov 2018 10:39:30 +0000 Received: from localhost ([127.0.0.1]:36026 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gJyle-0008EM-34 for submit@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 ) id 1gJylc-0008ED-2j for 33286@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 To: Efraim Flashner Subject: Re: [bug#33286] Add 'list-formats' to 'guix pack' Message-ID: <20181106113915.645b3756@scratchpost.org> 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@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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 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-- From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 06 05:48:19 2018 Received: (at 33286) by debbugs.gnu.org; 6 Nov 2018 10:48:19 +0000 Received: from localhost ([127.0.0.1]:36034 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gJyu9-0008Th-W5 for submit@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 ) id 1gJyu8-0008TI-3j for 33286@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 To: Danny Milosavljevic Subject: Re: [bug#33286] Add 'list-formats' to 'guix pack' Message-ID: <20181106104809.GD1206@macbook41> References: <20181106095316.GB1206@macbook41> <20181106113915.645b3756@scratchpost.org> 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@scratchpost.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 33286 Cc: 33286@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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 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 =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-- From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 06 10:32:14 2018 Received: (at 33286) by debbugs.gnu.org; 6 Nov 2018 15:32:14 +0000 Received: from localhost ([127.0.0.1]:37447 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gK3Kv-0003Hy-W7 for submit@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 ) id 1gK3Ku-0003Hj-Bz for 33286@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 ) id 1gK3Kk-0001O5-45 for 33286@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 ) 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 ) id 1gK3Kj-0006cr-Kn; Tue, 06 Nov 2018 10:32:01 -0500 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Efraim Flashner 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@gnu.org> 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@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) Hello, Efraim Flashner skribis: > From af9a132a662f1d703df1c32278a45d2adca146ed Mon Sep 17 00:00:00 2001 > From: Efraim Flashner > 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 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. From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 27 12:26:48 2018 Received: (at 33286) by debbugs.gnu.org; 27 Nov 2018 17:26:48 +0000 Received: from localhost ([127.0.0.1]:52488 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gRh8K-0000k8-Bu for submit@debbugs.gnu.org; Tue, 27 Nov 2018 12:26:48 -0500 Received: from flashner.co.il ([178.62.234.194]:39014) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gRh8I-0000ju-1S for 33286@debbugs.gnu.org; Tue, 27 Nov 2018 12:26:46 -0500 Received: from localhost (unknown [5.102.239.133]) by flashner.co.il (Postfix) with ESMTPSA id 9318840134; Tue, 27 Nov 2018 17:26:39 +0000 (UTC) Date: Tue, 27 Nov 2018 19:26:38 +0200 From: Efraim Flashner To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#33286] Add 'list-formats' to 'guix pack' Message-ID: <20181127172638.GB17277@macbook41> References: <20181106095316.GB1206@macbook41> <87lg66xlw0.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="4bRzO86E/ozDv8r1" Content-Disposition: inline In-Reply-To: <87lg66xlw0.fsf@gnu.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 33286 Cc: 33286@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --4bRzO86E/ozDv8r1 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Nov 06, 2018 at 04:31:59PM +0100, Ludovic Court=C3=A8s wrote: > Hello, >=20 > Efraim Flashner skribis: >=20 > > From af9a132a662f1d703df1c32278a45d2adca146ed Mon Sep 17 00:00:00 2001 > > From: Efraim Flashner > > 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. >=20 > [...] >=20 > > @@ -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 mach= ine.")) > > + (display (G_ " > > + squashfs A squashfs image, ready for 'cluster engines' and the = like.")) >=20 > 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. >=20 > Also, since we have the =E2=80=98%formats=E2=80=99 alist right above, wha= t about > adjusting it so that it contains each format description, and then > =E2=80=98show-formats=E2=80=99 would just traverse it? >=20 > You could do: >=20 > (define-record-type > (image-format proc description) > image-format? > (proc image-format-procedure) > (description image-format-description)) >=20 > (define %formats > (let-syntax ((description (syntax-rules () ((_ str) str)))) > `((tarball . ,(image-format self-contained-tarball > (description "foo bar"))) > =E2=80=A6))) >=20 > The dummy =E2=80=98description=E2=80=99 macro is here to allow =E2=80=98x= gettext=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= that. >=20 > WDYT? >=20 > Ludo=E2=80=99. I do like the idea, but I haven't been able to get it to work. In the mean time I've committed this as db08ea40873ae20507bc40d34a56dea1b8ce8f0e so we at least get the benefits of having it here. --=20 Efraim Flashner =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 --4bRzO86E/ozDv8r1 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAlv9fk4ACgkQQarn3Mo9 g1GsqBAAvysITfIlz1HnhtmwjdzPLJLm3qmArvkSvdqQhWPhQ9zDhh5rsBdaPz5I /DHtjlklX8AzajlD1DV/2nhr51euxY1Gq5fXMKgtecb+mp3T5KhWfU0MFRZqbuHl zodZWajTRxdb378Znq6Z6l+54WkFqolspPDnh6w8/EPmQJ4QAQ+wkonivPLyIZBg YkEwD91np5I+osy026czqSa4h4Qy8JrRjvzqJbUMe86Aj92ll/YvtT7QNz3QGShM WSvQMQEmmtZUXi8/2U0CLF/iggBiSO65PSmlhRngqPRLqB9t80pWrztLhfvfr01k URekyFPKjh/TM+yKjZk3DriLtlW9UicJPM5Heg8zcwuRyFf0JC6DnYJjVj0MfipP bB6v2ZOSk/WiURC9mibRDfRVD6Hup/bLfjxZFCO6zwEoqQqzoIFL10djPa4oJ7zC KTCD0gAev6mu/TBn5++AtR00xGb6p+rt1qDlgGAKkm3yJR97nS/zupfv4bmKInD+ hFnLk+iuqvgBbGJ8KN8Xqm/asEOOCoOxZ7ImXxnH/W343zq4vH6vcy2FvoU726sY h4CaZF5oeg+slcGXZcQUZJKLiQwEn+EDQOyiKT+o4S8lg+9qrwgO9QbHiyILeYzh IBgwUVK8pe9SIbNCF1YzGrdTi9LdP4H16yFdMCefX0lIsZoWpJY= =mzO8 -----END PGP SIGNATURE----- --4bRzO86E/ozDv8r1-- From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 13 08:03:51 2021 Received: (at 33286-done) by debbugs.gnu.org; 13 Jul 2021 12:03:51 +0000 Received: from localhost ([127.0.0.1]:39625 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3H8h-0004ya-Hn for submit@debbugs.gnu.org; Tue, 13 Jul 2021 08:03:51 -0400 Received: from mail-qk1-f174.google.com ([209.85.222.174]:33286) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3H8f-0004yO-5Q for 33286-done@debbugs.gnu.org; Tue, 13 Jul 2021 08:03:50 -0400 Received: by mail-qk1-f174.google.com with SMTP id 23so25852qke.0 for <33286-done@debbugs.gnu.org>; Tue, 13 Jul 2021 05:03:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=PXVdOHlmBdRAzuG5njD1GflJoErxaMcUEJP7KEMRnAI=; b=Hk2OmVy/v0OiX/0P7oOF3LBZEPNc90ieYlKa9n8xlPUtCPp7GP7/dD8AtbDNhP+uej xJXtgszN78B66p8N4m8XbRBmoP1MHEuoqm4sOYT3ms46LI/rQviZWqoEEAi2NRP1EHsD gkkUiYrsvl2sVkPW6Ulj7X1vroABgmDCIHzOjs/PFU7mWC5xwUr9wv3GQ7sVjVM8B1tj AvTAlc38z8TagQ9tvNipQbO4DM98FCk0oUT4OsTafnHyKX5TkA3Xjmap4Pd32jrBpXG+ k68ppbNo+cNONWdSqfi8WNtlwYS1LlhqyK85uJsbUd1G25IH8NEVijKALGiIWem531nN zBgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=PXVdOHlmBdRAzuG5njD1GflJoErxaMcUEJP7KEMRnAI=; b=kKfmrMNAEJ+2YDpZpMfr6ZNos9GswA2zhEUf8G5zPZTp9XuDuydE8G/U9WAiHmlNLW Yi05u+dbQ8XlygFpxsy1m75T1zwiB6wnx3vsG9/isX7J6dZfAqOvQzRmAIETSr7hCS2o NgTlMAvSKuANIeChnzuNUn3HWQjeGHBeLWbKccVyqKQVeerW9x0qS21wAhTZqZWd1Mfh 4rH9ywXijq2ffcWq7yBBCafk1ilxmrsD8RgmPyfm3DM05PfQgzHWfNtmsRJ5SrAMPenh Zxy87NBYI2W0Hlw3arPMSR8Gvfy7Tg8/Q3rSeIZDAjEGPk8Fl0KtxlEtWcrzsNVroOI4 zGEA== X-Gm-Message-State: AOAM531IQjZt3aK/KFBps3oVPozWsxXUnI9mQHGcalm9NyoCQZnjdNaG 1UNfan/K4ktu11hBs06/kobMyT/b0QcVfg== X-Google-Smtp-Source: ABdhPJy+g5VEM7uYYyJOOdeanvd1T7CUWBkgF0ZE3uXYTl74zOpGTpYIueVX0YfvgpU76HcO0AFVCA== X-Received: by 2002:ae9:dd46:: with SMTP id r67mr2797816qkf.380.1626177823581; Tue, 13 Jul 2021 05:03:43 -0700 (PDT) Received: from hurd (dsl-10-136-19.b2b2c.ca. [72.10.136.19]) by smtp.gmail.com with ESMTPSA id l5sm7871615qkb.62.2021.07.13.05.03.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Jul 2021 05:03:43 -0700 (PDT) From: Maxim Cournoyer To: Efraim Flashner Subject: Re: bug#33286: Add 'list-formats' to 'guix pack' References: <20181106095316.GB1206@macbook41> <87lg66xlw0.fsf@gnu.org> <20181127172638.GB17277@macbook41> Date: Tue, 13 Jul 2021 08:03:42 -0400 In-Reply-To: <20181127172638.GB17277@macbook41> (Efraim Flashner's message of "Tue, 27 Nov 2018 19:26:38 +0200") Message-ID: <87zguqs9nl.fsf_-_@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 33286-done Cc: Ludovic =?utf-8?Q?Court=C3=A8s?= , 33286-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello, Efraim Flashner writes: > On Tue, Nov 06, 2018 at 04:31:59PM +0100, Ludovic Court=C3=A8s wrote: >> Hello, >>=20 >> Efraim Flashner skribis: >>=20 >> > From af9a132a662f1d703df1c32278a45d2adca146ed Mon Sep 17 00:00:00 2001 >> > From: Efraim Flashner >> > 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. >>=20 >> [...] >>=20 >> > @@ -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 mac= hine.")) >> > + (display (G_ " >> > + squashfs A squashfs image, ready for 'cluster engines' and the= like.")) >>=20 >> 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. >>=20 >> Also, since we have the =E2=80=98%formats=E2=80=99 alist right above, wh= at about >> adjusting it so that it contains each format description, and then >> =E2=80=98show-formats=E2=80=99 would just traverse it? [...] > I do like the idea, but I haven't been able to get it to work. In the > mean time I've committed this as db08ea40873ae20507bc40d34a56dea1b8ce8f0e > so we at least get the benefits of having it here. Closing. Thank you! Maxim From unknown Thu Sep 11 15:11:10 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 11 Aug 2021 11:24:13 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator