GNU bug report logs - #45043
[PATCH] gnu: git-open: Remove unnecessary propagated input.

Previous Next

Package: guix-patches;

Reported by: EuAndreh <eu <at> euandre.org>

Date: Fri, 4 Dec 2020 20:54:02 UTC

Severity: normal

Tags: patch

Done: Leo Famulari <leo <at> famulari.name>

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 45043 in the body.
You can then email your comments to 45043 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#45043; Package guix-patches. (Fri, 04 Dec 2020 20:54:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to EuAndreh <eu <at> euandre.org>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Fri, 04 Dec 2020 20:54:02 GMT) Full text and rfc822 format available.

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

From: EuAndreh <eu <at> euandre.org>
To: guix-patches <at> gnu.org
Cc: EuAndreh <eu <at> euandre.org>
Subject: [PATCH] gnu: git-open: Remove unnecessary propagated input.
Date: Fri,  4 Dec 2020 17:53:32 -0300
* gnu/packages/version-control.scm (git-open): Stop propagating xdg-utils
package, and replace the runtime dependency by wrapping xdg-utils in the
derivation.  Also use copy-build-system instead of trivial-build-system.
---
 gnu/packages/version-control.scm | 25 +++++++++++++------------
 1 file changed, 13 insertions(+), 12 deletions(-)

diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
index a8e6d2c4b9..eec57b3b6d 100644
--- a/gnu/packages/version-control.scm
+++ b/gnu/packages/version-control.scm
@@ -55,6 +55,7 @@
   #:use-module (guix git-download)
   #:use-module (guix hg-download)
   #:use-module (guix build-system cmake)
+  #:use-module (guix build-system copy)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system go)
   #:use-module (guix build-system perl)
@@ -2733,20 +2734,20 @@ file contents on a remote server.")
        (file-name (git-file-name name version))
        (sha256
         (base32 "11n46bngvca5wbdbfcxzjhjbfdbad7sgf7h9gf956cb1q8swsdm0"))))
-    (build-system trivial-build-system)
-    (propagated-inputs
+    (build-system copy-build-system)
+    (inputs
      `(("xdg-utils" ,xdg-utils)))
     (arguments
-     `(#:modules ((guix build utils))
-       #:builder
-       (begin
-         (use-modules (guix build utils))
-         (let ((source (assoc-ref %build-inputs "source"))
-               (out    (assoc-ref %outputs "out")))
-           (mkdir-p (string-append out "/bin"))
-           (copy-file (string-append source "/git-open")
-                      (string-append out "/bin/git-open"))
-           #t))))
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'install 'wrap-program
+           (lambda* (#:key outputs inputs #:allow-other-keys)
+             (let ((out (assoc-ref outputs "out"))
+                   (xdg-utils (assoc-ref inputs "xdg-utils")))
+               (wrap-program (string-append out "/bin/git-open")
+                 `("PATH" ":" prefix (,(string-append xdg-utils "/bin"))))))))
+       #:install-plan
+       '(("git-open" "bin/git-open"))))
     (home-page "https://github.com/paulirish/git-open")
     (synopsis "Open a Git repository's homepage from the command-line")
     (description
-- 
2.29.2





Information forwarded to guix-patches <at> gnu.org:
bug#45043; Package guix-patches. (Sat, 05 Dec 2020 04:44:01 GMT) Full text and rfc822 format available.

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

From: Leo Famulari <leo <at> famulari.name>
To: EuAndreh via Guix-patches via <guix-patches <at> gnu.org>
Cc: EuAndreh <eu <at> euandre.org>, 45043-done <at> debbugs.gnu.org
Subject: Re: [bug#45043] [PATCH] gnu: git-open: Remove unnecessary propagated
 input.
Date: Fri, 4 Dec 2020 23:42:47 -0500
On Fri, Dec 04, 2020 at 05:53:32PM -0300, EuAndreh via Guix-patches via wrote:
> * gnu/packages/version-control.scm (git-open): Stop propagating xdg-utils
> package, and replace the runtime dependency by wrapping xdg-utils in the
> derivation.  Also use copy-build-system instead of trivial-build-system.

Thanks! I rewrote the commit to be more idiomatic and pushed as
4cf3734c56d669ee2d78082e5d7c4d0a58e0f800.

About the commit message, we write them in the GNU ChangeLog format:

https://guix.gnu.org/manual/en/html_node/Submitting-Patches.html

Basically, we describe changes to the code, organized by file and
variable. The linked chapter in the GNU coding manual is instructive
when combined with `git log` of the Guix repo.




Reply sent to Leo Famulari <leo <at> famulari.name>:
You have taken responsibility. (Sat, 05 Dec 2020 04:44:02 GMT) Full text and rfc822 format available.

Notification sent to EuAndreh <eu <at> euandre.org>:
bug acknowledged by developer. (Sat, 05 Dec 2020 04:44:02 GMT) Full text and rfc822 format available.

Information forwarded to guix-patches <at> gnu.org:
bug#45043; Package guix-patches. (Sat, 05 Dec 2020 11:20:02 GMT) Full text and rfc822 format available.

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

From: EuAndreh <eu <at> euandre.org>
To: Leo Famulari <leo <at> famulari.name>, EuAndreh via Guix-patches via
 <guix-patches <at> gnu.org>
Cc: , 45043-done <at> debbugs.gnu.org
Subject: Re: [bug#45043] [PATCH] gnu: git-open: Remove unnecessary
 propagated input.
Date: Sat, 05 Dec 2020 08:19:17 -0300
Leo Famulari <leo <at> famulari.name> writes:

> Thanks! I rewrote the commit to be more idiomatic and pushed as
> 4cf3734c56d669ee2d78082e5d7c4d0a58e0f800.
>
> About the commit message, we write them in the GNU ChangeLog format:
>
> https://guix.gnu.org/manual/en/html_node/Submitting-Patches.html
>
> Basically, we describe changes to the code, organized by file and
> variable. The linked chapter in the GNU coding manual is instructive
> when combined with `git log` of the Guix repo.

Hmm, makes sense. Thanks for the tip. I see my commit message was only
partially compliant.




Information forwarded to guix-patches <at> gnu.org:
bug#45043; Package guix-patches. (Sat, 05 Dec 2020 11:21:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 02 Jan 2021 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 167 days ago.

Previous Next


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