From: Pierre Neidhardt <mail@ambrevar.xyz>
To: 32760@debbugs.gnu.org
Subject: [bug#32760] [PATCH] gnu: git-credential-netrc: Add Git.pm to PERL5LIB.
Date: Tue, 18 Sep 2018 12:29:24 +0200 [thread overview]
Message-ID: <20180918102924.18270-1-mail@ambrevar.xyz> (raw)
* 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
next reply other threads:[~2018-09-18 15:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-18 10:29 Pierre Neidhardt [this message]
2018-09-18 19:00 ` [bug#32760] [PATCH] gnu: git-credential-netrc: Add Git.pm to PERL5LIB Leo Famulari
2018-09-18 19:02 ` Pierre Neidhardt
2018-09-19 7:09 ` bug#32760: " Pierre Neidhardt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180918102924.18270-1-mail@ambrevar.xyz \
--to=mail@ambrevar.xyz \
--cc=32760@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).