[77739] trunk/base/src/port1.0/portinstall.tcl
Anders F Björklund
afb at macports.org
Mon Apr 11 07:01:24 PDT 2011
Daniel J. Luke wrote:
>>> + set qflag ""
>>> + # should probably really check if this is supported by tar at configure time
>>> + if {([option os.major] >= 10 && [option os.platform] == "darwin") || [string match *bsd [option os.platform]]} {
>>> + set qflag "q"
>>> + }
>>
>> You could use the test from line 937 of aclocal.m4 to make a new test for this pretty easily. That's where the test for --no-same-owner support is.
>>
>> (Although I think we also check for TAR vs GNUTAR in configure already, so there might even be something simpler).
>
> sorry, missed r77750 (afb) when I wrote this ...
The best fix would be to make MacPorts use libarchive
for reading/writing tarballs, instead of forking/exec.
http://code.google.com/p/libarchive/
That way it would have the "fast read" -q everywhere,
and also be able to handle the compression internally.
Similar to using curl(1) vs. libcurl ?
--anders
More information about the macports-dev
mailing list