From unknown Fri Jun 20 20:10:52 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#29496] [PATCH] doc: Update the example VCS snapshot package definition. Resent-From: Kei Kebreau Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 28 Nov 2017 23:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 29496 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 29496@debbugs.gnu.org Cc: Kei Kebreau X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.1511912371873 (code B ref -1); Tue, 28 Nov 2017 23:40:02 +0000 Received: (at submit) by debbugs.gnu.org; 28 Nov 2017 23:39:31 +0000 Received: from localhost ([127.0.0.1]:35322 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eJpTP-0000E1-Cq for submit@debbugs.gnu.org; Tue, 28 Nov 2017 18:39:31 -0500 Received: from eggs.gnu.org ([208.118.235.92]:51534) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eJpTN-0000Dm-E2 for submit@debbugs.gnu.org; Tue, 28 Nov 2017 18:39:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eJpTH-0004Y3-CY for submit@debbugs.gnu.org; Tue, 28 Nov 2017 18:39:24 -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,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:45583) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eJpTH-0004Xs-9U for submit@debbugs.gnu.org; Tue, 28 Nov 2017 18:39:23 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42487) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eJpTG-0007q2-9K for guix-patches@gnu.org; Tue, 28 Nov 2017 18:39:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eJpTD-0004Ve-39 for guix-patches@gnu.org; Tue, 28 Nov 2017 18:39:22 -0500 Received: from mout01.posteo.de ([185.67.36.65]:36349) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eJpTC-0004Tz-PG for guix-patches@gnu.org; Tue, 28 Nov 2017 18:39:19 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 6247021237 for ; Wed, 29 Nov 2017 00:39:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1511912355; bh=eCWiqJR4hQKA76AWAn1qtjxkx4F/wTEug/KcZvDtjE4=; h=From:To:Cc:Subject:Date:From; b=flqAt7dT0PpZYp7vgOZ5zp/lxHVmlZF66X1GUl491tJ/SY6cd4Zm0tj7eW64gf7aB vQwB+CHsSoLE/xA2oN7yoHf8gRx73aV7bTyqZYmhFbzTgyco1cel8BlCyNSBmnPqf4 V6NpY9pNqnFLvTKADFCpEHEj2/tWDBDBHtPZ1dE0qbMn/7baWAZgUtch1AYMD3TWLz SuFhsCTXobdW+2nZImbM1Ur5OP6tA8XQHrJV/yf3l+ieD2c1nYZbxXgK4g1sNkUnRn bxpSFyoe2lPR1vHSZR1pKJJlu9puQ5fJEGyn7gk8UswhNMPtyrOzovASEgW9Me9hza JZ3B9LprbmSbw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 3ymg9Z164wz9rxC; Wed, 29 Nov 2017 00:39:11 +0100 (CET) From: Kei Kebreau Date: Tue, 28 Nov 2017 18:38:53 -0500 Message-Id: <20171128233853.14438-1-kkebreau@posteo.net> X-Mailer: git-send-email 2.15.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] 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-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: -4.0 (----) In commit ee17a9e06e636400e3354796a42ac445dbcc8f96, the helpers git-version and git-file-name removed the need to build version and file name strings manually for packages that use VCS snapshots. doc/guix.texi (Version Numbers): Use git-version and git-file-name. --- doc/guix.texi | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index 777ca2738..0bd6b6a79 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -19880,16 +19880,14 @@ definition may look like this: (let ((commit "c3f29bc928d5900971f65965feaae59e1272a3f7") (revision "1")) ;Guix package revision (package - (version (string-append "0.9-" revision "." - (string-take commit 7))) + (version (git-version "0.9" revision commit)) (source (origin (method git-fetch) (uri (git-reference (url "git://example.org/my-package.git") (commit commit))) (sha256 (base32 "1mbikn@dots{}")) - (file-name (string-append "my-package-" version - "-checkout")))) + (file-name (git-file-name name version)))) ;; @dots{} ))) @end example -- 2.15.0 From unknown Fri Jun 20 20:10:52 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#29496] [PATCH] doc: Update the example VCS snapshot package definition. Resent-From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 30 Nov 2017 17:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29496 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Kei Kebreau Cc: 29496@debbugs.gnu.org Received: via spool by 29496-submit@debbugs.gnu.org id=B29496.151206166417479 (code B ref 29496); Thu, 30 Nov 2017 17:08:01 +0000 Received: (at 29496) by debbugs.gnu.org; 30 Nov 2017 17:07:44 +0000 Received: from localhost ([127.0.0.1]:38580 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eKSJM-0004Xr-GZ for submit@debbugs.gnu.org; Thu, 30 Nov 2017 12:07:44 -0500 Received: from [141.255.128.1] (port=60342 helo=hera.aquilenet.fr) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eKSJJ-0004Xi-T2 for 29496@debbugs.gnu.org; Thu, 30 Nov 2017 12:07:42 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 1BDCE100BD; Thu, 30 Nov 2017 18:07:44 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pqvXpc6F42tN; Thu, 30 Nov 2017 18:07:43 +0100 (CET) Received: from ribbon (unknown [193.50.110.211]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 53393FF60; Thu, 30 Nov 2017 18:07:43 +0100 (CET) From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <20171128233853.14438-1-kkebreau@posteo.net> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 10 Frimaire an 226 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 30 Nov 2017 18:07:40 +0100 In-Reply-To: <20171128233853.14438-1-kkebreau@posteo.net> (Kei Kebreau's message of "Tue, 28 Nov 2017 18:38:53 -0500") Message-ID: <87tvxb1yqr.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 2.2 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Kei Kebreau skribis: > In commit ee17a9e06e636400e3354796a42ac445dbcc8f96, the helpers git-version > and git-file-name removed the need to build version and file name strings > manually for packages that use VCS snapshots. > > doc/guix.texi (Version Numbers): Use git-version and git-file-name. [...] Content analysis details: (2.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.0 SPF_HELO_FAIL SPF: HELO does not match SPF record (fail) [SPF failed: Please see http://www.openspf.org/Why?s=helo; id=hera.aquilenet.fr; ip=141.255.128.1; r=debbugs.gnu.org] 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS 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.2 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Kei Kebreau skribis: > In commit ee17a9e06e636400e3354796a42ac445dbcc8f96, the helpers git-version > and git-file-name removed the need to build version and file name strings > manually for packages that use VCS snapshots. > > doc/guix.texi (Version Numbers): Use git-version and git-file-name. [...] Content analysis details: (2.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.0 SPF_HELO_FAIL SPF: HELO does not match SPF record (fail) [SPF failed: Please see http://www.openspf.org/Why?s=helo;id=hera.aquilenet.fr;ip=141.255.128.1;r=debbugs.gnu.org] 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS Kei Kebreau skribis: > In commit ee17a9e06e636400e3354796a42ac445dbcc8f96, the helpers git-versi= on > and git-file-name removed the need to build version and file name strings > manually for packages that use VCS snapshots. > > doc/guix.texi (Version Numbers): Use git-version and git-file-name. LGTM, thanks! Ludo=E2=80=99, who didn=E2=80=99t know about =E2=80=98git-version=E2=80=99. From unknown Fri Jun 20 20:10:52 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Kei Kebreau Subject: bug#29496: closed (Re: [bug#29496] [PATCH] doc: Update the example VCS snapshot package definition.) Message-ID: References: <87vahr3cni.fsf@posteo.net> <20171128233853.14438-1-kkebreau@posteo.net> X-Gnu-PR-Message: they-closed 29496 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 29496@debbugs.gnu.org Date: Thu, 30 Nov 2017 17:23:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1512062582-26302-1" This is a multi-part message in MIME format... ------------=_1512062582-26302-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #29496: [PATCH] doc: Update the example VCS snapshot package definition. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 29496@debbugs.gnu.org. --=20 29496: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D29496 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1512062582-26302-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 29496-done) by debbugs.gnu.org; 30 Nov 2017 17:22:19 +0000 Received: from localhost ([127.0.0.1]:38616 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eKSXT-0006pG-9d for submit@debbugs.gnu.org; Thu, 30 Nov 2017 12:22:19 -0500 Received: from mout01.posteo.de ([185.67.36.65]:49862) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eKSXR-0006p1-50 for 29496-done@debbugs.gnu.org; Thu, 30 Nov 2017 12:22:17 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 05C0E20F5A for <29496-done@debbugs.gnu.org>; Thu, 30 Nov 2017 18:22:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1512062530; bh=IECzqwqgnkCWeQETXFQO5FFVy3ZG8T87cXESZ483JUg=; h=From:To:Cc:Subject:Date:From; b=O/CHcw7S4cs38upH//T8OANUCtRNg/FIaeww9aXgz2qSOwBlq/f7b0spPwXbDZ7r8 NTJ8Ij0OdSOEPwn/uNAnsL9VONpFa53zyXfgN8DJgrqcwPAYmjAwWAFKWd0rLt8zm7 6Ct+Rln/dTIABXSqPmjGsmGQn2jCBzx+gpil1CHsKFj7bdZfahhV3GyP/NHiz2xe31 ooQMsDOCAm92CI86sZ1y+wKhiRKdPII9yBBSKaZXQn5w/vtOzoWisVcwrH4hAJctgO 4se5dzxkB74s7FZYgWxqFj8B5wkxffL8mFiCvkJq8CCqfE21sW77TWgjtSyvMhcd9H JnLw1BV938+Rg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 3ynkjX17Wpz9rxJ; Thu, 30 Nov 2017 18:22:05 +0100 (CET) From: Kei Kebreau To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [bug#29496] [PATCH] doc: Update the example VCS snapshot package definition. References: <20171128233853.14438-1-kkebreau@posteo.net> <87tvxb1yqr.fsf@gnu.org> Date: Thu, 30 Nov 2017 12:21:53 -0500 In-Reply-To: <87tvxb1yqr.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Thu, 30 Nov 2017 18:07:40 +0100") Message-ID: <87vahr3cni.fsf@posteo.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 29496-done Cc: 29496-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: -2.3 (--) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Kei Kebreau skribis: > >> In commit ee17a9e06e636400e3354796a42ac445dbcc8f96, the helpers git-vers= ion >> and git-file-name removed the need to build version and file name strings >> manually for packages that use VCS snapshots. >> >> doc/guix.texi (Version Numbers): Use git-version and git-file-name. > > LGTM, thanks! > > Ludo=E2=80=99, who didn=E2=80=99t know about =E2=80=98git-version=E2=80= =99. Pushed! Thanks to you for reviewing and to Leo for making me this change. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEg7ZwOtzKO2lLzi2m5qXuPBlGeg0FAlogPjEACgkQ5qXuPBlG eg0FfQ/+Ln9nlQswrpU3BhGjjFxubLskFiQllzhzMkQGAp4h0r71FzBmhulw4QuO LaXz0inw3qYr6sDL0Jrx2+bUTniR018BSrDp4wPbVl+az4VhHVcbyL4WnnqheBp/ MBl+1r5xMtuME7lbHGIV1cUifgkdssP++/0N7mJme6GRDsTq7CiHvcDy3lPu8EWq XBTGOC4coXZ4H8powseHkze6Vudui34Kq+74nuiKVeLZ/lSE9W8ie3UUrJN2QJsu +eaa4qgg1BBoJ9ZtVHmVGmmyUZtSbgWoRHd5mtm4kuT8pM9sXpuz3VcidhdQxSAf l4hWv1Rc3KsvE2nbeb96jgxnSu2G8e+9VWjsFyjpcQrGusWw7BtrxYYX4rSkFEeA 1RzKG23K2E8xIkWgtE+aJRoohVUJBgl/VVIPuSFOMeY/QTc5jZz4dj/x+GOXWt4v oVVv7zV527VsnRNFYukSAYvtE159xl5Gf+/q/Qbocj9/BHMjowpMHowWHLtugrHR KibYZHBXtMpTG0OoE3tqeKvjaBobYPs4GoDeeSFKmKIWTNxkkknzRZN7/eYLvNR+ JMASglzFNvHcGJGUJ/MYjV2kS9hSFSctFWHXzfDx7k/MiTjgW/AsI7Uejo8Ch0kF sCIFlYPWCm9JX0vTDbP465+f5Tmn/CJldqhWvbQZEUmQ4DDEjsE= =/9Ki -----END PGP SIGNATURE----- --=-=-=-- ------------=_1512062582-26302-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 28 Nov 2017 23:39:31 +0000 Received: from localhost ([127.0.0.1]:35322 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eJpTP-0000E1-Cq for submit@debbugs.gnu.org; Tue, 28 Nov 2017 18:39:31 -0500 Received: from eggs.gnu.org ([208.118.235.92]:51534) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eJpTN-0000Dm-E2 for submit@debbugs.gnu.org; Tue, 28 Nov 2017 18:39:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eJpTH-0004Y3-CY for submit@debbugs.gnu.org; Tue, 28 Nov 2017 18:39:24 -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,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:45583) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eJpTH-0004Xs-9U for submit@debbugs.gnu.org; Tue, 28 Nov 2017 18:39:23 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42487) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eJpTG-0007q2-9K for guix-patches@gnu.org; Tue, 28 Nov 2017 18:39:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eJpTD-0004Ve-39 for guix-patches@gnu.org; Tue, 28 Nov 2017 18:39:22 -0500 Received: from mout01.posteo.de ([185.67.36.65]:36349) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eJpTC-0004Tz-PG for guix-patches@gnu.org; Tue, 28 Nov 2017 18:39:19 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 6247021237 for ; Wed, 29 Nov 2017 00:39:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1511912355; bh=eCWiqJR4hQKA76AWAn1qtjxkx4F/wTEug/KcZvDtjE4=; h=From:To:Cc:Subject:Date:From; b=flqAt7dT0PpZYp7vgOZ5zp/lxHVmlZF66X1GUl491tJ/SY6cd4Zm0tj7eW64gf7aB vQwB+CHsSoLE/xA2oN7yoHf8gRx73aV7bTyqZYmhFbzTgyco1cel8BlCyNSBmnPqf4 V6NpY9pNqnFLvTKADFCpEHEj2/tWDBDBHtPZ1dE0qbMn/7baWAZgUtch1AYMD3TWLz SuFhsCTXobdW+2nZImbM1Ur5OP6tA8XQHrJV/yf3l+ieD2c1nYZbxXgK4g1sNkUnRn bxpSFyoe2lPR1vHSZR1pKJJlu9puQ5fJEGyn7gk8UswhNMPtyrOzovASEgW9Me9hza JZ3B9LprbmSbw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 3ymg9Z164wz9rxC; Wed, 29 Nov 2017 00:39:11 +0100 (CET) From: Kei Kebreau To: guix-patches@gnu.org Subject: [PATCH] doc: Update the example VCS snapshot package definition. Date: Tue, 28 Nov 2017 18:38:53 -0500 Message-Id: <20171128233853.14438-1-kkebreau@posteo.net> X-Mailer: git-send-email 2.15.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] 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 Cc: Kei Kebreau 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: -4.0 (----) In commit ee17a9e06e636400e3354796a42ac445dbcc8f96, the helpers git-version and git-file-name removed the need to build version and file name strings manually for packages that use VCS snapshots. doc/guix.texi (Version Numbers): Use git-version and git-file-name. --- doc/guix.texi | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index 777ca2738..0bd6b6a79 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -19880,16 +19880,14 @@ definition may look like this: (let ((commit "c3f29bc928d5900971f65965feaae59e1272a3f7") (revision "1")) ;Guix package revision (package - (version (string-append "0.9-" revision "." - (string-take commit 7))) + (version (git-version "0.9" revision commit)) (source (origin (method git-fetch) (uri (git-reference (url "git://example.org/my-package.git") (commit commit))) (sha256 (base32 "1mbikn@dots{}")) - (file-name (string-append "my-package-" version - "-checkout")))) + (file-name (git-file-name name version)))) ;; @dots{} ))) @end example -- 2.15.0 ------------=_1512062582-26302-1-- From unknown Fri Jun 20 20:10:52 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#29496] [PATCH] doc: Update the example VCS snapshot package definition. Resent-From: Leo Famulari Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 30 Nov 2017 23:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29496 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: Kei Kebreau , 29496@debbugs.gnu.org Received: via spool by 29496-submit@debbugs.gnu.org id=B29496.151208367832002 (code B ref 29496); Thu, 30 Nov 2017 23:15:02 +0000 Received: (at 29496) by debbugs.gnu.org; 30 Nov 2017 23:14:38 +0000 Received: from localhost ([127.0.0.1]:38743 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eKY2P-0008K5-Ti for submit@debbugs.gnu.org; Thu, 30 Nov 2017 18:14:38 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:34125) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eKY2O-0008Jy-87 for 29496@debbugs.gnu.org; Thu, 30 Nov 2017 18:14:36 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 2D23C20AF2; Thu, 30 Nov 2017 18:14:36 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Thu, 30 Nov 2017 18:14:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= mesmtp; bh=jZxvHpxrViNZVlYuk1NwABlPyM8lnqnWBNl5iK60QYI=; b=Bzy4N GcyOLjVErFg5O+SkO752ixxPui4dSPBOnHnUM4MJU6/ovHbDhzea2GU0ub5VV5Rg EUaksKtxxlPL8n+CCkqLGXGHwT7w0mklJGfOQCBwTnuhJfMoJn+ho83NJNzLsLpR PBAaSC9lBkpQwhrs4419wLf3yrdynbNZPOOxSQ= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=jZxvHpxrViNZVlYuk1NwABlPyM8ln qnWBNl5iK60QYI=; b=O3A17qPRDUh4McWlZbg+hQUD3fKuWl5vIQawhZTAKTFS4 CI6ulQ8HXDVZKaEcFoGnzlGZFJ0EwOxn2zzRf+bOmR0DGM2LoyXev7EIXUryY5Tr 9FGgcOSw8SozzJnov1KwIRc9Lwi7tRG05+Kd7mEKzgTU3FLcKw8xaM1vlEBtr583 KvOUcXyEpFlTSSjK8BlCdjhUkqwN1gFxnDimxQG0DQf97wZfsK6KAmmckXQpa6v6 6zhygKtG5JjIIrFnTp0R1AoAPRBd+qKxz+3f1RIAkpeVrrSQNyA/cqQgB34EYy87 R7FxRf/roW874php8EMOmdLZF9Ai8+LTPADYCFRUg== X-ME-Sender: Received: from localhost (96-64-66-194-static.hfc.comcastbusiness.net [96.64.66.194]) by mail.messagingengine.com (Postfix) with ESMTPA id DBFE87FACC; Thu, 30 Nov 2017 18:14:35 -0500 (EST) Date: Thu, 30 Nov 2017 18:14:35 -0500 From: Leo Famulari Message-ID: <20171130231435.GA9053@jasmine.lan> References: <20171128233853.14438-1-kkebreau@posteo.net> <87tvxb1yqr.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Dxnq1zWXvFF0Q93v" Content-Disposition: inline In-Reply-To: <87tvxb1yqr.fsf@gnu.org> User-Agent: Mutt/1.9.1 (2017-09-22) X-Spam-Score: -0.7 (/) 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: -0.7 (/) --Dxnq1zWXvFF0Q93v Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Nov 30, 2017 at 06:07:40PM +0100, Ludovic Court=C3=A8s wrote: > Kei Kebreau skribis: >=20 > > In commit ee17a9e06e636400e3354796a42ac445dbcc8f96, the helpers git-ver= sion > > and git-file-name removed the need to build version and file name strin= gs > > manually for packages that use VCS snapshots. > > > > doc/guix.texi (Version Numbers): Use git-version and git-file-name. >=20 > LGTM, thanks! >=20 > Ludo=E2=80=99, who didn=E2=80=99t know about =E2=80=98git-version=E2=80= =99. I also missed it when this was added, but was grateful for it when making all the Git-based packages in (gnu packages syncthing). I don't remember how I found it now... --Dxnq1zWXvFF0Q93v Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEsFFZSPHn08G5gDigJkb6MLrKfwgFAlogkNoACgkQJkb6MLrK fwhiwRAAkGXOY5nmmaeyXq1WUDGenNgZOVzuwwFEieKTm6hSajUp6euPX49qyH5/ /Lpux86+1rfPS3jNaDp9pSVgt3s6BvTzW5fh79eMKk0YTqikl9dgThuSs/Ffckc2 eQhFha/qH8Pdn+v54mBMshfjAdyySycCpKogqzCR1yPg0gFn3twNzraNyk42Iq2Y YB/Cy6MqDoIMUmrGNjFC0DFgyw9jCvefQR5oEqDqOISS7/3lfq1LRGIAdnWntnbr exxfsmUKI4vbEAfxEY0XyjowdW4OV8AY8fwIu0FFyk7puaIHP2GghRREkWYmITS0 rlqPUdmzJQGFR+BIPk61uCNordAXWpyQm2p7bWQaelu/Pu3Y1U5f85wFtIGSlHxy 7tesn72N1qxph5tNK2M3cqb4tPeBAfixD2SR2GIK/AVMfIBzNxLSls6KBc89SuWF j3t62RMvIe9hmbEFjCJsfgdBiBlYxNKIcNjPBtHSffyPv+BadzpxHHL7rsKsvhMq e2SAQrGd0fel5JnYEYjkCcsLUI6tEyjlnSkCEao24JFtGMp2YsLw41UKJBVQiB81 IrRUISkbRTDWFQZBUq2tABm6fg/3Y182s2EVem7HqnGb5Wi/wxRTMX3qnpWz8pf+ BaHSbGvs0+Ql4L36M6XoMfa6VInxmODZn4fwYX5CZu2YlQYmDjg= =FbEO -----END PGP SIGNATURE----- --Dxnq1zWXvFF0Q93v--