[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/01: gnu: git-credential-netrc: Add to PERL5LIB.

From: Pierre Neidhardt
Subject: 01/01: gnu: git-credential-netrc: Add to PERL5LIB.
Date: Wed, 19 Sep 2018 03:07:28 -0400 (EDT)

ambrevar pushed a commit to branch master
in repository guix.

commit 1cfcb841eddbe6b2bfed6dfaad6bcebff66e7a16
Author: Pierre Neidhardt <address@hidden>
Date:   Tue Sep 18 12:18:23 2018 +0200

    gnu: git-credential-netrc: Add to PERL5LIB.
    * gnu/packages/version-control.scm (git)[credential-netrc]: Add to 
 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 3774961..58c870d 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, 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"))))
         (add-after 'install 'split
           (lambda* (#:key inputs outputs #:allow-other-keys)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]