-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
git: Properly wrap Git commands that are implemented in Perl. #30001
Conversation
Some Git commands are implemented as Perl scripts. Some of these scripts use Perl modules from CPAN. Without wrapping these programs to set `GITPERLLIB`, these programs would not be fully functional because some Perl libraries are found to be missing at runtime. Fixes #29996
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
14296 packages will be rebuilt |
I don't like that this manually lists perl programs instead of wrapping all programs (except git-svn and git-send-email) with a perl shebang. |
oops I've missed your comment @orivej. Can you expand your objection a bit? I don't understand the issue that you are seeing. |
pushed as 07ca7b6 in the release-17.09 branch |
Some Git commands are implemented as Perl scripts. Some of these scripts use Perl modules from CPAN. Without wrapping these programs to set `GITPERLLIB`, these programs would not be fully functional because some Perl libraries are found to be missing at runtime. Fixes #29996 (cherry picked from commit f795d78)
The issue is that if git adds new perl programs This was not necessary to do in this PR and I don't mind that you've merged it. |
Ok. I agree that we might potentially have more maintenance down the road with the current approach but I am not sure if wrapping all the libexec programs is the right approach either. Another option would be to wrap the git binary itself and let it propagate the environment variables to the sub-programs. Anyways, right now it's fixed, it will come back at the next upgrade of if it becomes too annoying to maintain. |
I think this is a good idea. Note that this PR didn't introduce a problem that wasn't already there: the existing code is already singling out some commands to be wrapped - it's just that a few had been forgotten over time! |
Some Git commands are implemented as Perl scripts. Some of these
scripts use Perl modules from CPAN. Without wrapping these programs to
set
GITPERLLIB
, these programs would not be fully functional becausesome Perl libraries are found to be missing at runtime.
git-svn
was one such program. It was already wrapped properly,provided
svnSupport = true
. Similarly forgit-send-mail
. But thiswrapping did not extend to other commands.
Fixes #29996