GNU bug report logs - #32760
[PATCH] gnu: git-credential-netrc: Add Git.pm to PERL5LIB.

Previous Next

Package: guix-patches;

Reported by: Pierre Neidhardt <mail <at> ambrevar.xyz>

Date: Tue, 18 Sep 2018 15:17:02 UTC

Severity: normal

Tags: patch

Merged with 32761

Done: Pierre Neidhardt <mail <at> ambrevar.xyz>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Pierre Neidhardt <mail <at> ambrevar.xyz>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#32760: closed ([PATCH] gnu: git-credential-netrc: Add Git.pm
 to PERL5LIB.)
Date: Wed, 19 Sep 2018 07:10:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Wed, 19 Sep 2018 09:09:03 +0200
with message-id <87pnxaezg0.fsf <at> ambrevar.xyz>
and subject line [bug#32760] [PATCH] gnu: git-credential-netrc: Add Git.pm to PERL5LIB.
has caused the debbugs.gnu.org bug report #32760,
regarding [PATCH] gnu: git-credential-netrc: Add Git.pm to PERL5LIB.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
32760: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=32760
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Pierre Neidhardt <mail <at> ambrevar.xyz>
To: guix-patches <at> gnu.org
Subject: [PATCH] gnu: git-credential-netrc: Add Git.pm to PERL5LIB.
Date: Tue, 18 Sep 2018 12:29:24 +0200
* gnu/packages/version-control.scm (git)[credential-netrc]: Add Git.pm to PERL5LIB.
---
 gnu/packages/version-control.scm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
index 377496178..58c870df5 100644
--- a/gnu/packages/version-control.scm
+++ b/gnu/packages/version-control.scm
@@ -309,6 +309,13 @@ as well as the classic centralized workflow.")
             (let* ((netrc (assoc-ref outputs "credential-netrc")))
               (install-file "contrib/credential/netrc/git-credential-netrc"
                             (string-append netrc "/bin"))
+              ;; Previously, Git.pm was automatically found by netrc.
+              ;; Perl 5.26 changed how it locates modules so that @INC no
+              ;; longer includes the current working directory (the Perl
+              ;; community calls this "dotless @INC").
+              (wrap-program (string-append netrc "/bin/git-credential-netrc")
+                `("PERL5LIB" ":" prefix
+                  (,(string-append (assoc-ref outputs "out") "/share/perl5"))))
               #t)))
         (add-after 'install 'split
           (lambda* (#:key inputs outputs #:allow-other-keys)
-- 
2.19.0



[Message part 3 (message/rfc822, inline)]
From: Pierre Neidhardt <mail <at> ambrevar.xyz>
To: 32760-done <at> debbugs.gnu.org
Subject: [bug#32760] [PATCH] gnu: git-credential-netrc: Add Git.pm to PERL5LIB.
Date: Wed, 19 Sep 2018 09:09:03 +0200
[Message part 4 (text/plain, inline)]
close
[signature.asc (application/pgp-signature, inline)]

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

Previous Next


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