GNU bug report logs -
#29496
[PATCH] doc: Update the example VCS snapshot package definition.
Previous Next
Reported by: Kei Kebreau <kkebreau <at> posteo.net>
Date: Tue, 28 Nov 2017 23:40:02 UTC
Severity: normal
Tags: patch
Done: Kei Kebreau <kkebreau <at> posteo.net>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 29496 in the body.
You can then email your comments to 29496 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#29496
; Package
guix-patches
.
(Tue, 28 Nov 2017 23:40:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Kei Kebreau <kkebreau <at> posteo.net>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Tue, 28 Nov 2017 23:40:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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 <at> dots{}"))
- (file-name (string-append "my-package-" version
- "-checkout"))))
+ (file-name (git-file-name name version))))
;; @dots{}
)))
@end example
--
2.15.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#29496
; Package
guix-patches
.
(Thu, 30 Nov 2017 17:08:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 29496 <at> debbugs.gnu.org (full text, mbox):
Kei Kebreau <kkebreau <at> posteo.net> 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.
LGTM, thanks!
Ludo’, who didn’t know about ‘git-version’.
Reply sent
to
Kei Kebreau <kkebreau <at> posteo.net>
:
You have taken responsibility.
(Thu, 30 Nov 2017 17:23:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Kei Kebreau <kkebreau <at> posteo.net>
:
bug acknowledged by developer.
(Thu, 30 Nov 2017 17:23:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 29496-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
ludo <at> gnu.org (Ludovic Courtès) writes:
> Kei Kebreau <kkebreau <at> posteo.net> 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.
>
> LGTM, thanks!
>
> Ludo’, who didn’t know about ‘git-version’.
Pushed! Thanks to you for reviewing and to Leo for making me this change.
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#29496
; Package
guix-patches
.
(Thu, 30 Nov 2017 23:15:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 29496 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On Thu, Nov 30, 2017 at 06:07:40PM +0100, Ludovic Courtès wrote:
> Kei Kebreau <kkebreau <at> posteo.net> 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.
>
> LGTM, thanks!
>
> Ludo’, who didn’t know about ‘git-version’.
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...
[signature.asc (application/pgp-signature, inline)]
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 29 Dec 2017 12:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 7 years and 174 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.