[MacPorts] #13401: git-core with +svn produces a git-svn that uses the wrong perl binary
#13401: git-core with +svn produces a git-svn that uses the wrong perl binary -----------------------------------+---------------------------------------- Reporter: tim.stoop@gmail.com | Owner: macports-dev@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: MacPorts base bugs Component: ports | Version: 1.5.2 Keywords: git-svn git-core perl | -----------------------------------+---------------------------------------- After building git-core with +svn, I tried to start git-svn and get the following message: asterisk:~ tim$ git-svn Can't locate SVN/Core.pm in @INC (@INC contains: /opt/local/lib/perl5/site_perl/5.8.8 /System/Library/Perl/5.8.6/darwin- thread-multi-2level /System/Library/Perl/5.8.6 /Library/Perl/5.8.6/darwin- thread-multi-2level /Library/Perl/5.8.6 /Library/Perl /Network/Library/Perl/5.8.6/darwin-thread-multi-2level /Network/Library/Perl/5.8.6 /Network/Library/Perl /System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level /System/Library/Perl/Extras/5.8.6 /Library/Perl/5.8.1 .) at /opt/local/bin /git-svn line 24. asterisk:~ tim$ I can solve this by editing the hashbang of /opt/local/bin/git-svn and changing it to: #! /opt/local/bin/perl Should be a patch? -- Ticket URL: <http://trac.macports.org/projects/macports/ticket/13401> MacPorts </projects/macports> Ports system for Mac OS
#13401: git-core with +svn produces a git-svn that uses the wrong perl binary ----------------------------------+----------------------------------------- Reporter: tim.stoop@gmail.com | Owner: macports-dev@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.5.2 Resolution: | Keywords: git-svn git-core perl ----------------------------------+----------------------------------------- Changes (by jmpp@macports.org): * milestone: MacPorts base bugs => Port Bugs Old description:
After building git-core with +svn, I tried to start git-svn and get the following message:
asterisk:~ tim$ git-svn Can't locate SVN/Core.pm in @INC (@INC contains: /opt/local/lib/perl5/site_perl/5.8.8 /System/Library/Perl/5.8.6/darwin- thread-multi-2level /System/Library/Perl/5.8.6 /Library/Perl/5.8.6 /darwin-thread-multi-2level /Library/Perl/5.8.6 /Library/Perl /Network/Library/Perl/5.8.6/darwin-thread-multi-2level /Network/Library/Perl/5.8.6 /Network/Library/Perl /System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level /System/Library/Perl/Extras/5.8.6 /Library/Perl/5.8.1 .) at /opt/local/bin/git-svn line 24. asterisk:~ tim$
I can solve this by editing the hashbang of /opt/local/bin/git-svn and changing it to: #! /opt/local/bin/perl
Should be a patch?
New description: After building git-core with +svn, I tried to start git-svn and get the following message: {{{ asterisk:~ tim$ git-svn Can't locate SVN/Core.pm in @INC (@INC contains: /opt/local/lib/perl5/site_perl/5.8.8 /System/Library/Perl/5.8.6/darwin- thread-multi-2level /System/Library/Perl/5.8.6 /Library/Perl/5.8.6/darwin- thread-multi-2level /Library/Perl/5.8.6 /Library/Perl /Network/Library/Perl/5.8.6/darwin-thread-multi-2level /Network/Library/Perl/5.8.6 /Network/Library/Perl /System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level /System/Library/Perl/Extras/5.8.6 /Library/Perl/5.8.1 .) at /opt/local/bin /git-svn line 24. asterisk:~ tim$ }}} I can solve this by editing the hashbang of /opt/local/bin/git-svn and changing it to: #! /opt/local/bin/perl Should be a patch? Comment: Please read WikiFormatting for proper markup of terminal output (also this is a port bug, not a MacPorts one, so I'm adapting the milestone accordingly). -jmpp -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13401#comment:1> MacPorts </projects/macports> Ports system for Mac OS
#13401: git-core with +svn produces a git-svn that uses the wrong perl binary ----------------------------------+----------------------------------------- Reporter: tim.stoop@gmail.com | Owner: boeyms@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.5.2 Resolution: | Keywords: git-svn git-core perl ----------------------------------+----------------------------------------- Changes (by boeyms@macports.org): * cc: boeyms@macports.org, bryan@larsen.st (added) * owner: macports-tickets@lists.macosforge.org => boeyms@macports.org Comment: Cc-ing to port maintainer; I would reassign this ticket to the maintainer, but he doesn't currently appear in the list of assignees, so I'm assigning this to myself instead. I don't get this problem on my system; for me, `SVN/Core.pm` is installed in `/opt/local/lib/perl5/vendor_perl/5.8.8/darwin-2level/SVN/Core.pm` and provided by the `subversion-perlbindings` port, which `git-core +svn` depends on via `p5-svn-simple`. It seems from your output from `git-svn` that, somehow, your system isn't running the MacPorts' perl in a normal way when using `#!/usr/bin/env perl` (since @INC doesn't include `/opt/local/lib/perl5/vendor_perl`). It therefore doesn't look to me at the moment like a problem with the port per se. As a starting point, could you please report for us: 1. which version of MacPorts, Xcode and Mac OS X you are running (I assume that you are indeed running MacPorts 1.5.2, but I'd just like to make sure); 2. what your output from `echo ${PATH}` is; and 3. what your output from `which perl` is. Thanks! -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13401#comment:2> MacPorts </projects/macports> Ports system for Mac OS
#13401: git-core with +svn produces a git-svn that uses the wrong perl binary ----------------------------------+----------------------------------------- Reporter: tim.stoop@gmail.com | Owner: boeyms@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.5.2 Resolution: | Keywords: git-svn git-core perl ----------------------------------+----------------------------------------- Comment (by tim.stoop@gmail.com): Replying to [comment:2 boeyms@macports.org]:
1. which version of MacPorts, Xcode and Mac OS X you are running (I assume that you are indeed running MacPorts 1.5.2, but I'd just like to make sure);
I was at the time. Recently did a port selfupdate.
2. what your output from `echo ${PATH}` is; and
{{{ asterisk:~ tim$ echo $PATH /bin:/sbin:/usr/bin:/usr/sbin:/opt/local/bin:/opt/local/sbin:/Users/tim/bin asterisk:~ tim$ }}}
3. what your output from `which perl` is.
{{{ asterisk:~ tim$ which perl /usr/bin/perl asterisk:~ tim$ }}} I noticed this while doing a complete reinstall of the system. Well, of the ports at least. My commands were as follows: {{{ sudo port -f uninstall installed; sudo port clean all; sudo port install git-core +svn }}} Not sure if you can do it any more clean than that. I've got it working, but a hint to keep it working after an update would be appreciated :) -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13401#comment:3> MacPorts </projects/macports> Ports system for Mac OS
participants (1)
-
MacPorts