From unknown Wed Jun 18 23:04:51 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#74500 <74500@debbugs.gnu.org> To: bug#74500 <74500@debbugs.gnu.org> Subject: Status: pack: add =?UTF-8?Q?=E2=80=98--file=3DFILE=E2=80=99?= with the same meaning as for guix build Reply-To: bug#74500 <74500@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:04:51 +0000 retitle 74500 pack: add =E2=80=98--file=3DFILE=E2=80=99 with the same meani= ng as for guix build reassign 74500 guix-patches submitter 74500 "Dr. Arne Babenhauserheide" severity 74500 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 23 18:37:55 2024 Received: (at submit) by debbugs.gnu.org; 23 Nov 2024 23:37:55 +0000 Received: from localhost ([127.0.0.1]:59891 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tEzhL-0005QQ-5L for submit@debbugs.gnu.org; Sat, 23 Nov 2024 18:37:55 -0500 Received: from lists.gnu.org ([209.51.188.17]:44264) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tEzhI-0005QH-Nw for submit@debbugs.gnu.org; Sat, 23 Nov 2024 18:37:53 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tEzhI-0005ew-HS for guix-patches@gnu.org; Sat, 23 Nov 2024 18:37:52 -0500 Received: from mout.web.de ([212.227.15.14]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tEzhG-00010g-Id for guix-patches@gnu.org; Sat, 23 Nov 2024 18:37:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de; s=s29768273; t=1732405067; x=1733009867; i=arne_bab@web.de; bh=QB8w61gT9zu2w3qs0JcfhO6e7wsBxWjcm8bY2RccvPA=; h=X-UI-Sender-Class:From:To:Subject:Date:Message-ID:MIME-Version: Content-Type:cc:content-transfer-encoding:content-type:date:from: message-id:mime-version:reply-to:subject:to; b=SVSIo0rd77xXu9qbVQGJG7AZ7jX9RKccF6GmI8uG2IJ6lAbw/lF2hQ0eVx9zLjM9 PKnKf4GlvpK6Lw9Yilkn56eKFtysXHQvJyEnYhEOZovnirqoy/GQbcBYQPYn8UPtW 9AYTOQUmjGES4rbgO6YfcQ9EGuyqXGvzMuSNSBksw4eSkFdLvHJw7B/NTOPZFe/cR BSn8PxMZ8vcacXtcmjyXh1oTwLzKhXsHBaSGmp4CPn+OIM/RcjSHhT4UXzNdMJ8mu wnbsZHqFGOXdAeoJ1A+7hCeE1YwsiQOkdPYhCiupSpRtvnNEXHCozkX7kohSJSFQH dYWs/+wvZvrHya8C3A== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from fluss ([84.165.21.171]) by smtp.web.de (mrweb005 [213.165.67.108]) with ESMTPSA (Nemesis) id 1MQ8Wa-1t1k8h34Do-00OtKQ; Sun, 24 Nov 2024 00:37:47 +0100 From: "Dr. Arne Babenhauserheide" To: guix-patches@gnu.org Subject: pack: add =?utf-8?Q?=E2=80=98--file=3DFILE=E2=80=99?= with the same meaning as for guix build Date: Sun, 24 Nov 2024 00:37:46 +0100 Message-ID: <87y119bjxx.fsf@web.de> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Provags-ID: V03:K1:BCdmN5ntFCN3LJvzAZSM04BPKeA7DXkngc2snAEn24bXIq/Jfe2 vbncPOP1uzwaZRTbCrd/6u07y/E6VvnoKKpuKF4XauVgSqsDTld9/xRrs8vcIzWcGI3f5p1 IxSoN9mNjg3kC2TpDDBPopeYs0QajCtNQOJMfz7WPkTZ3FnKCAXRfR/H8o7hFhjIlYwVk/r /3OheCO1D51VWkA86ei3Q== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:VKnt9B/hppk=;TPFF32zCdhaLM6PE5js6rwFbzR7 AAZF3b4vJmCt43yszOT2jst1zm6BhXYvp92QiBtUYgfztmwcIT0QnSiu+oB7SghEfofQIYBzM mkum916Egj1FevRIbZN6wy4VR5iHF171rEipjK/gfUwj71L10Jzx17H/g9HfqQQyAbAkr5WwI Xmbxl4xma9Lbv3VJYKJAAy8rj2RnqWakmmbZ9hrfuQImnayhI6GsufrfSikKoVvHi/GLovS6e M6oEQ8rQLF7EtUX62R+Wh4vr93aX08YnGpdGrZu1oP0QV4MacHgophxMgdzfl/Hh9K93ItJre 0ZkyaFcFVq5wuofLgA0jqe+E1+VVMRhZ/rwQVxYBOxg/MY9PhozIw4cgsR86n6B44ghWMleBK aY3E3WGxqE7cV0f4Ik2lNoC9IsaQT051jkoanJPSqQ3nfoApmDusspJznnxBmvXqmcm+BuRAd uY46RKlPEipsnl68FCUmAUzjGpAj9uiLXFvbhyYW586KSTIPzj6KJ/HL3eyRPIuV4GpLNlKLG ueTk8K1mKpfgimNRIlFPXM/VR4HKqPfKqKZh+BQ14bAaNrPZSSScKQzfFT7VSYCMU2PhuLTo7 kYAWhUOAe1Hs+QHQC2b5Ox6VuudUCDwcx/3QThHXq6o0An7+VYUuPq1hJ/kjKcY3G7lhdazDb hAc2q0K+yMqgRy0Q2h2E/e8qVJUukZFSY4jBY1S9Gb+coVq7lIX4C8L1LK2xe9LWpVgkBuTbd WmxKZ73oC6OZ+351j6lct2RUUQ7KlXEaULspkdxUnW+XrPyVDC/+wcJR+K9QCH2ebD0GDOxmh 3H2wS9w7cFBQTJj0LkztP/GaSbOC2vbFtBFyPTuljnJJkf9m75dmWv+t+Ju/BmD+vogiiZxnA 9zFUEZoxFfd4wgk1h42GfSaz+XtMKt3EUhNQktvSooCMXhO+gJ/+NYB6B Received-SPF: pass client-ip=212.227.15.14; envelope-from=arne_bab@web.de; helo=mout.web.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) 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: -2.3 (--) --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, the attached patch adds the option to use `guix pack --file=3Dguix.scm` just like you=E2=80=99d use `guix build --file=3Dguix.scm` or `guix shell =2D-file=3Dguix.scm`. guix pack -f ... still means --format to preserve backwards compatibility. Only the long option --file is added. --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-pack-add-file-FILE-with-the-same-meaning-as-for-guix.patch Content-Transfer-Encoding: quoted-printable From=20a1956bea3a33fed9a01246c9e5e394a7dd9daf6c Mon Sep 17 00:00:00 2001 Message-ID: From: Arne Babenhauserheide Date: Sun, 24 Nov 2024 00:32:36 +0100 Subject: [PATCH] =3D?UTF-8?q?pack:=3D20add=3D20=3DE2=3D80=3D98--file=3D3DFI= LE=3DE2=3D80=3D99?=3D =3D?UTF-8?q?=3D20with=3D20the=3D20same=3D20meaning=3D20as=3D20for=3D20guix= =3D20build?=3D MIME-Version: 1.0 Content-Type: text/plain; charset=3DUTF-8 Content-Transfer-Encoding: 8bit * guix/scripts/pack.scm (%options): add --file=3DFILE, but no shorthand (that=E2=80=99s already taken for format). * doc/guix.texi (Invoking guix pack): document --file Change-Id: I87797fccdf218ead3b7f471a84034e8a8d566245 =2D-- doc/guix.texi | 8 ++++++++ guix/scripts/pack.scm | 11 +++++++++++ 2 files changed, 19 insertions(+) diff --git a/doc/guix.texi b/doc/guix.texi index 29bce718d4..aea8bf6063 100644 =2D-- a/doc/guix.texi +++ b/doc/guix.texi @@ -7217,6 +7217,14 @@ Invoking guix pack build} (@pxref{Additional Build Options, @option{--expression} in @command{guix build}}). =20 +@item --file=3D@var{file} +build a pack the code within @var{file} evaluates to. + +This has the same purpose as the same-named option in @command{guix +build} (@pxref{Additional Build Options, @option{--file} in +@command{guix build}}), but it has no shorthand, because @option{-f} +already means @option{--format}. + @anchor{pack-manifest} @item --manifest=3D@var{file} @itemx -m @var{file} diff --git a/guix/scripts/pack.scm b/guix/scripts/pack.scm index 7c5fe76fe0..d588f40257 100644 =2D-- a/guix/scripts/pack.scm +++ b/guix/scripts/pack.scm @@ -28,6 +28,7 @@ =20 (define-module (guix scripts pack) #:use-module (guix scripts) + #:autoload (guix import json) (json->scheme-file) #:use-module (guix ui) #:use-module (guix gexp) #:use-module (guix utils) @@ -1430,6 +1431,9 @@ (define %options (lambda (opt name arg result) (alist-cons 'derivation-only? #t result))) =20 + (option '("file") #t #f + (lambda (opt name arg result) + (alist-cons 'file arg result))) (option '(#\f "format") #t #f (lambda (opt name arg result) (alist-cons 'format (string->symbol arg) result))) @@ -1520,6 +1524,8 @@ (define (show-help) (show-deb-format-options) (show-rpm-format-options) (newline) + (display (G_ " + --file=3DFORMAT build a pack the code within FILE evaluates to"= )) (display (G_ " -f, --format=3DFORMAT build a pack in the given FORMAT")) (display (G_ " @@ -1584,6 +1590,11 @@ (define-command (guix-pack . args) list)) (('expression . exp) (read/eval-package-expression exp)) + (('file . file) + (let ((file (or (and (string-suffix? ".json" file) + (json->scheme-file file)) + file))) + (load* file (make-user-module '())))) (x #f))) =20 (define (manifest-from-args store opts) base-commit: 7c93145d9e027cb571bf7634192dfae5468ecde2 prerequisite-patch-id: 088a72da8c11e5d1c7087b4a5e8bb9c4a3b9b2af prerequisite-patch-id: a092dba2c994aba4c74f1484621cebe53f548492 prerequisite-patch-id: 09ee3fdfcc708aeec9e6a7a54e2993e857e19aca prerequisite-patch-id: 7957383d6685c848a7cbfa78e930adeaf528a2e1 prerequisite-patch-id: aa5d5050c29bbacf33790ca89f8c2690337f3ac7 prerequisite-patch-id: 2883dba4155a5a883cf03d43a130cb5f31de189c prerequisite-patch-id: d14add7cc2f54106903ee5427a510b4204fb636f prerequisite-patch-id: 2beca5d9522ccdc5c6751681bbf00d5107380fd8 =2D-=20 2.46.0 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Best wishes, Arne =2D-=20 Unpolitisch sein hei=C3=9Ft politisch sein, ohne es zu merken. draketo.de --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJEBAEBCAAuFiEE801qEjXQSQPNItXAE++NRSQDw+sFAmdCZ0sQHGFybmVfYmFi QHdlYi5kZQAKCRAT741FJAPD68UqD/0ZC7cUdgCi/fRdN7B4qMBPb0iPTCMERV63 I0ANDUIoYK6nyi9O0jlRwVlRg3ZgragQL8VK5kiflwXmHN9byguDauyPRZp0PtNH W/s40foSdytR7JAteWYfNYkA8acGDvKowbuskfnX3EBpy/IfAtoIkgD32yXZ61Ua lDkxySNcBCnsPi4xklflv20K2bYtdVtm9q1qhww9009fgFLwJ+CEzLsfWrQC6otS iNFDSywhevghsY0zn8PpgcKVPPRMg819UC+A0tqDOfCmHs6smsaJRbRE4TCWrQ1G sJv4PnOGmagVytXTjCOOPzDxcOwzLpgiueq8eYf92VU3sBDme51P0kuaEoshtOm2 OHs951XPpmgigIa0mXPbWgMERJMAe8jnDjRxgcD7caODzSY4op6CkXN6PMFWK3vE j5tikvPYSLtgpU7BLBOBfJYo85r9pfDY372DsT//witZThcTMELYUvnU1A0C9y+g 3n02hn6IW8uVZ33CKzgKl9LjnRxaMN3kigRrwx10wRHjbkCAzx1XbtiISyZ7XOYO muYk7QBKgETRcsS58VFl8Fi6Engk4DHDf9r0FvDizHXYTnpFH93gAGDd86gpfNkX wmXqZ1p+zTFWHpjKC70VkJsbHi8+hb0TOjBTylK27JzWQGrvGswxC38yOisbqI1r /MHdyGfzrIjEBAEBCAAuFiEE3Si95tmHXKvOSosd3M8NswvBBUgFAmdCZ0sQHGFy bmVfYmFiQHdlYi5kZQAKCRDczw2zC8EFSJmLA/9eQVfoa7xSN69KzhLjyV2+wykK XIqblg5sB/7dk9ZNzrLGrOC6SYq5tY6IgbMrKBlQbgBDmmBCCg8X7tI7YXEsi8W2 J8PcezwaHhysceFc4IYIuSFAK1EtMdfpBwhrGW7utnHe4xd9LeAnxeX+Ntk8jY9q vv8+DNNJakudiD6uEA== =H4l1 -----END PGP SIGNATURE----- --==-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 02 06:02:01 2024 Received: (at 74500-done) by debbugs.gnu.org; 2 Dec 2024 11:02:02 +0000 Received: from localhost ([127.0.0.1]:54407 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tI4Bl-0000mI-8v for submit@debbugs.gnu.org; Mon, 02 Dec 2024 06:02:01 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60992) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tI4Bj-0000m1-1c for 74500-done@debbugs.gnu.org; Mon, 02 Dec 2024 06:02:00 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tI49W-00036d-RX; Mon, 02 Dec 2024 05:59:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=7rU/Slb1O+mg8acoMztouWpyLFxlGT4ohcZfjg/K7q4=; b=OWGRwl+mQFeixGfK9T2g qAaU8KFO9yp/d9TntUOl8Hngj45MhexGKGk2DHkkMMbfLPSxOJZPgGdk0QYOGysCVI9LZ7zqqN45Q TT0cu3zW1iXs6witmIyQyY8yCi/QnS+gxGOE+/KmG/Y8EH+5TddbT9iVm0LbxDF8eMMzIZbvnFzFq fXra6bfmhTtkocTbDDtIgdEULW+UMrjiR7z+2E7/72KH/JRcDowrJYUErLmjuYSZmuvKwew9mSZsd NYUdM3XSRsSNYaQrGAP5Z03xh074bvL2oGoNrR0fYrmbYppZcz2/qQxw1ZUwYbe0lk1dG6o2j4vvq cbkCd1PO7XFpTg==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: "Dr. Arne Babenhauserheide" Subject: Re: bug#74500: pack: add =?utf-8?Q?=E2=80=98--file=3DFILE?= =?utf-8?Q?=E2=80=99?= with the same meaning as for guix build In-Reply-To: <87y119bjxx.fsf@web.de> (Arne Babenhauserheide's message of "Sun, 24 Nov 2024 00:37:46 +0100") References: <87y119bjxx.fsf@web.de> Date: Mon, 02 Dec 2024 11:59:37 +0100 Message-ID: <874j3mxsdi.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 74500-done Cc: 74500-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: -3.3 (---) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, "Dr. Arne Babenhauserheide" skribis: > From a1956bea3a33fed9a01246c9e5e394a7dd9daf6c Mon Sep 17 00:00:00 2001 > Message-ID: > From: Arne Babenhauserheide > Date: Sun, 24 Nov 2024 00:32:36 +0100 > Subject: [PATCH] =3D?UTF-8?q?pack:=3D20add=3D20=3DE2=3D80=3D98--file=3D3D= FILE=3DE2=3D80=3D99?=3D > =3D?UTF-8?q?=3D20with=3D20the=3D20same=3D20meaning=3D20as=3D20for=3D20gu= ix=3D20build?=3D > MIME-Version: 1.0 > Content-Type: text/plain; charset=3DUTF-8 > Content-Transfer-Encoding: 8bit > > * guix/scripts/pack.scm (%options): add --file=3DFILE, but no > shorthand (that=E2=80=99s already taken for format). > * doc/guix.texi (Invoking guix pack): document --file > > Change-Id: I87797fccdf218ead3b7f471a84034e8a8d566245 Applied with this minor change: --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/doc/guix.texi b/doc/guix.texi index 0d461fb96a..594d152de6 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -7277,7 +7277,8 @@ Invoking guix pack @command{guix build}}). @item --file=@var{file} -build a pack the code within @var{file} evaluates to. +Build a pack containing the package or other object the code within +@var{file} evaluates to. This has the same purpose as the same-named option in @command{guix build} (@pxref{Additional Build Options, @option{--file} in --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Thanks! Ludo=E2=80=99. --=-=-=-- From unknown Wed Jun 18 23:04:51 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 30 Dec 2024 12:24:05 +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