GNU bug report logs - #32059
Improve etc/snippets

Previous Next

Package: guix-patches;

Reported by: Arun Isaac <arunisaac <at> systemreboot.net>

Date: Thu, 5 Jul 2018 12:20:01 UTC

Severity: normal

Done: Arun Isaac <arunisaac <at> systemreboot.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 32059 in the body.
You can then email your comments to 32059 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#32059; Package guix-patches. (Thu, 05 Jul 2018 12:20:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Arun Isaac <arunisaac <at> systemreboot.net>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Thu, 05 Jul 2018 12:20:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Arun Isaac <arunisaac <at> systemreboot.net>
To: guix-patches <at> gnu.org
Cc: Arun Isaac <arunisaac <at> systemreboot.net>
Subject: Improve etc/snippets
Date: Thu,  5 Jul 2018 17:48:12 +0530
Patch 1 adds the android-ndk and scons build systems as possibilities for the
build-system field in the package snippet.

Patch 2 modifies the package snippet so that 'origin' comes on the next line
after 'source'. I feel this is better because it makes better use of space
(less whitespace on the left of the source description). Often, this is
necessary to not run afoul of the line length limitations of `guix lint`.

Patch 3 adds a guix commit message snippet for changing the home page of
packages to HTTPS.

Patch 1 is uncontroversial. But, I don't know if others would agree on patches
2 and 3. Anyways, I am just submitting them here for consideration.

Arun Isaac (3):
  etc: snippets: Add new build systems to package snippet.
  etc: snippets: Improve indentation in the package snippet.
  etc: snippets: Add guix-commit-message-use-https-home-page.

 doc/contributing.texi                                          | 3 ++-
 etc/snippets/scheme-mode/guix-package                          | 7 +++++--
 etc/snippets/text-mode/guix-commit-message-use-https-home-page | 9 +++++++++
 3 files changed, 16 insertions(+), 3 deletions(-)
 create mode 100644 etc/snippets/text-mode/guix-commit-message-use-https-home-page

-- 
2.15.1





Information forwarded to guix-patches <at> gnu.org:
bug#32059; Package guix-patches. (Thu, 05 Jul 2018 12:41:02 GMT) Full text and rfc822 format available.

Message #8 received at 32059 <at> debbugs.gnu.org (full text, mbox):

From: Arun Isaac <arunisaac <at> systemreboot.net>
To: 32059 <at> debbugs.gnu.org
Cc: Arun Isaac <arunisaac <at> systemreboot.net>
Subject: [PATCH 1/3] etc: snippets: Add new build systems to package snippet.
Date: Thu,  5 Jul 2018 18:09:42 +0530
* etc/snippets/scheme-mode/guix-package: Add android-ndk-build-system and
scons-build-system as possibilities for the build-system field.
---
 etc/snippets/scheme-mode/guix-package | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/etc/snippets/scheme-mode/guix-package b/etc/snippets/scheme-mode/guix-package
index d392e8209..48b87e359 100644
--- a/etc/snippets/scheme-mode/guix-package
+++ b/etc/snippets/scheme-mode/guix-package
@@ -7,7 +7,8 @@
     (name "$1")
     (version "$2")
     (source origin...$0)
-    (build-system ${3:$$(yas-choose-value "ant-build-system"
+    (build-system ${3:$$(yas-choose-value "android-ndk-build-system"
+                                          "ant-build-system"
                                           "asdf-build-system"
                                           "cargo-build-system"
                                           "cmake-build-system"
@@ -25,6 +26,7 @@
                                           "python-build-system"
                                           "r-build-system"
                                           "ruby-build-system"
+                                          "scons-build-system"
                                           "texlive-build-system"
                                           "trivial-build-system"
                                           "waf-build-system")})
-- 
2.15.1





Information forwarded to guix-patches <at> gnu.org:
bug#32059; Package guix-patches. (Thu, 05 Jul 2018 12:41:02 GMT) Full text and rfc822 format available.

Message #11 received at 32059 <at> debbugs.gnu.org (full text, mbox):

From: Arun Isaac <arunisaac <at> systemreboot.net>
To: 32059 <at> debbugs.gnu.org
Cc: Arun Isaac <arunisaac <at> systemreboot.net>
Subject: [PATCH 2/3] etc: snippets: Improve indentation in the package snippet.
Date: Thu,  5 Jul 2018 18:09:43 +0530
* etc/snippets/scheme-mode/guix-package: Move origin field to the next line.
---
 etc/snippets/scheme-mode/guix-package | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/etc/snippets/scheme-mode/guix-package b/etc/snippets/scheme-mode/guix-package
index 48b87e359..18735bd18 100644
--- a/etc/snippets/scheme-mode/guix-package
+++ b/etc/snippets/scheme-mode/guix-package
@@ -6,7 +6,8 @@
   (package
     (name "$1")
     (version "$2")
-    (source origin...$0)
+    (source
+     origin...$0)
     (build-system ${3:$$(yas-choose-value "android-ndk-build-system"
                                           "ant-build-system"
                                           "asdf-build-system"
-- 
2.15.1





Information forwarded to guix-patches <at> gnu.org:
bug#32059; Package guix-patches. (Thu, 05 Jul 2018 12:41:03 GMT) Full text and rfc822 format available.

Message #14 received at 32059 <at> debbugs.gnu.org (full text, mbox):

From: Arun Isaac <arunisaac <at> systemreboot.net>
To: 32059 <at> debbugs.gnu.org
Cc: Arun Isaac <arunisaac <at> systemreboot.net>
Subject: [PATCH 3/3] etc: snippets: Add
 guix-commit-message-use-https-home-page.
Date: Thu,  5 Jul 2018 18:09:44 +0530
* etc/snippets/text-mode/guix-commit-message-use-https-home-page: New file.
* doc/contributing.texi (The Perfect Setup): Document new snippet.
---
 doc/contributing.texi                                          | 3 ++-
 etc/snippets/text-mode/guix-commit-message-use-https-home-page | 9 +++++++++
 2 files changed, 11 insertions(+), 1 deletion(-)
 create mode 100644 etc/snippets/text-mode/guix-commit-message-use-https-home-page

diff --git a/doc/contributing.texi b/doc/contributing.texi
index ca44b3b0b..79bd536f5 100644
--- a/doc/contributing.texi
+++ b/doc/contributing.texi
@@ -210,7 +210,8 @@ The commit message snippets depend on @url{https://magit.vc/, Magit} to
 display staged files.  When editing a commit message type @code{add}
 followed by @kbd{TAB} to insert a commit message template for adding a
 package; type @code{update} followed by @kbd{TAB} to insert a template
-for updating a package.
+for updating a package; type @code{https} followed by @kbd{TAB} to
+insert a template for changing the home page URI of a package to HTTPS.
 
 The main snippet for @code{scheme-mode} is triggered by typing
 @code{package...} followed by @kbd{TAB}.  This snippet also inserts the
diff --git a/etc/snippets/text-mode/guix-commit-message-use-https-home-page b/etc/snippets/text-mode/guix-commit-message-use-https-home-page
new file mode 100644
index 000000000..df20d31a8
--- /dev/null
+++ b/etc/snippets/text-mode/guix-commit-message-use-https-home-page
@@ -0,0 +1,9 @@
+# -*- mode: snippet -*-
+# name: guix-commit-message-use-https-home-page
+# key: https
+# condition: git-commit-mode
+# --
+gnu: $1: Use HTTPS home page URI.
+
+* `(car (magit-staged-files))` ($1)[home-page]: Use HTTPS URI.
+`(mapconcat (lambda (file) (concat "* " file)) (cdr (magit-staged-files)) "\n")`
\ No newline at end of file
-- 
2.15.1





Information forwarded to guix-patches <at> gnu.org:
bug#32059; Package guix-patches. (Thu, 12 Jul 2018 21:38:02 GMT) Full text and rfc822 format available.

Message #17 received at 32059 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Arun Isaac <arunisaac <at> systemreboot.net>
Cc: 32059 <at> debbugs.gnu.org
Subject: Re: [bug#32059] [PATCH 1/3] etc: snippets: Add new build systems to
 package snippet.
Date: Thu, 12 Jul 2018 23:37:23 +0200
Arun Isaac <arunisaac <at> systemreboot.net> skribis:

> * etc/snippets/scheme-mode/guix-package: Add android-ndk-build-system and
> scons-build-system as possibilities for the build-system field.

LGTM!




Information forwarded to guix-patches <at> gnu.org:
bug#32059; Package guix-patches. (Thu, 12 Jul 2018 21:38:02 GMT) Full text and rfc822 format available.

Message #20 received at 32059 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Arun Isaac <arunisaac <at> systemreboot.net>
Cc: 32059 <at> debbugs.gnu.org
Subject: Re: [bug#32059] [PATCH 2/3] etc: snippets: Improve indentation in the
 package snippet.
Date: Thu, 12 Jul 2018 23:37:49 +0200
Arun Isaac <arunisaac <at> systemreboot.net> skribis:

> * etc/snippets/scheme-mode/guix-package: Move origin field to the next line.
> ---
>  etc/snippets/scheme-mode/guix-package | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/etc/snippets/scheme-mode/guix-package b/etc/snippets/scheme-mode/guix-package
> index 48b87e359..18735bd18 100644
> --- a/etc/snippets/scheme-mode/guix-package
> +++ b/etc/snippets/scheme-mode/guix-package
> @@ -6,7 +6,8 @@
>    (package
>      (name "$1")
>      (version "$2")
> -    (source origin...$0)
> +    (source
> +     origin...$0)

I personally prefer the original version.  :-)




Information forwarded to guix-patches <at> gnu.org:
bug#32059; Package guix-patches. (Thu, 12 Jul 2018 21:39:02 GMT) Full text and rfc822 format available.

Message #23 received at 32059 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Arun Isaac <arunisaac <at> systemreboot.net>
Cc: 32059 <at> debbugs.gnu.org
Subject: Re: [bug#32059] [PATCH 3/3] etc: snippets: Add
 guix-commit-message-use-https-home-page.
Date: Thu, 12 Jul 2018 23:38:04 +0200
Arun Isaac <arunisaac <at> systemreboot.net> skribis:

> * etc/snippets/text-mode/guix-commit-message-use-https-home-page: New file.
> * doc/contributing.texi (The Perfect Setup): Document new snippet.

LGTM, thanks!




Reply sent to Arun Isaac <arunisaac <at> systemreboot.net>:
You have taken responsibility. (Fri, 13 Jul 2018 07:34:02 GMT) Full text and rfc822 format available.

Notification sent to Arun Isaac <arunisaac <at> systemreboot.net>:
bug acknowledged by developer. (Fri, 13 Jul 2018 07:34:02 GMT) Full text and rfc822 format available.

Message #28 received at 32059-done <at> debbugs.gnu.org (full text, mbox):

From: Arun Isaac <arunisaac <at> systemreboot.net>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 32059-done <at> debbugs.gnu.org
Subject: Re: [bug#32059] [PATCH 2/3] etc: snippets: Improve indentation in the
 package snippet.
Date: Fri, 13 Jul 2018 13:03:26 +0530
>> -    (source origin...$0)
>> +    (source
>> +     origin...$0)
>
> I personally prefer the original version.  :-)

Oh, well... :-( But, I understand... :-)

I have pushed the other two patches to master.




Information forwarded to guix-patches <at> gnu.org:
bug#32059; Package guix-patches. (Fri, 13 Jul 2018 08:29:01 GMT) Full text and rfc822 format available.

Message #31 received at 32059-done <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Arun Isaac <arunisaac <at> systemreboot.net>
Cc: 32059-done <at> debbugs.gnu.org
Subject: Re: [bug#32059] [PATCH 2/3] etc: snippets: Improve indentation in the
 package snippet.
Date: Fri, 13 Jul 2018 10:28:23 +0200
Arun Isaac <arunisaac <at> systemreboot.net> skribis:

>>> -    (source origin...$0)
>>> +    (source
>>> +     origin...$0)
>>
>> I personally prefer the original version.  :-)
>
> Oh, well... :-( But, I understand... :-)
>
> I have pushed the other two patches to master.

Heheh, thank you!

Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 10 Aug 2018 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 310 days ago.

Previous Next


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