MacPort issue when using patch…
After spending a little while banging my head against the wall over this one….
root@snicko [ ~ ]
# port install git-core +svn +bash_completion
—> Applying patches to perl5.8
Error: Target org.macports.patch returned: shell command ” cd “/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_perl5.8/work/perl-5.8.8″ && patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/perl5.8/files/patch-makedepend.SH'" returned error 2
Command output: Get file makedepend.SH from Perforce with lock? [y]
Perforce client error:
Connect to server failed; check $P4PORT.
TCP connect to perforce failed.
perforce: host unknown.
patch: **** Can't get file makedepend.SH from Perforce
Error: The following dependencies failed to build: p5-error perl5.8 p5-libwww-perl p5-compress-zlib p5-compress-raw-zlib p5-io-compress-base p5-scalar-list-utils p5-io-compress-zlib p5-html-parser p5-html-tagset p5-uri p5-svn-simple subversion-perlbindings apr apr-util db44 sqlite3 gawk gmake readline neon subversion bash-completion p5-term-readkey rsync popt
Error: Status 1 encountered during processing.
I finally found Jack Palevich’s post talking about exporting the POSIXLY_CORRECT environment variable as follows.
POSIXLY_CORRECT=1 port install git-core +svn +bash_completion
Of course now I’ve run into an issue with tcl…. *sigh*, but I’ve seen the patch issue above crop up a few times, and this certainly seems to be fixing it.
It’s bad enough that MacPorts and Fink can’t depend upon Apple to provide sane libraries and headers in OS X, and thus you end up with most of another whole freaking operating system in /opt/local or /sw, but I simply refuse to have both installed, no matter how frustrating it is that I can’t get all the software I need working via just one of them.
April 15th, 2008 at 11:11 am
Hey, thanks, this helped me. To fix the tcl issue, I then just didn’t use the POSIXLY_CORRECT variable, and it finished correctly.
April 15th, 2008 at 2:06 pm
yeah, I should have updated this with me working out the same thing. :)
Glad you found it useful!