unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#32760] [PATCH] gnu: git-credential-netrc: Add Git.pm to PERL5LIB.
@ 2018-09-18 10:29 Pierre Neidhardt
  2018-09-18 19:00 ` Leo Famulari
  2018-09-19  7:09 ` bug#32760: " Pierre Neidhardt
  0 siblings, 2 replies; 4+ messages in thread
From: Pierre Neidhardt @ 2018-09-18 10:29 UTC (permalink / raw)
  To: 32760

* 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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-09-19  7:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-18 10:29 [bug#32760] [PATCH] gnu: git-credential-netrc: Add Git.pm to PERL5LIB Pierre Neidhardt
2018-09-18 19:00 ` Leo Famulari
2018-09-18 19:02   ` Pierre Neidhardt
2018-09-19  7:09 ` bug#32760: " Pierre Neidhardt

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).