multiple distfiles from multiple sources and with multiple compression types

Ryan Schmidt ryandesign at
Sat Mar 26 00:27:49 PDT 2016

On Mar 25, 2016, at 4:30 PM, René J.V. Bertin wrote:

> On Friday March 25 2016 20:59:47 Ian Rees wrote:
> Hi Ian,
>> for ccs, and a .tgz for spooles.  As far as I could figure out, the fetch
>> step can handle multiple files, but the extract step can not.    -Ian-
> That's what I figured would happen indeed.
> A related observation: you can only use one of the use_{zip,bz2,xz,etc} commands once; subsequent calls have no effect.

Don't think of them as commands. Think of them as radio buttons. You're indicating which of the available compression format all of the files will use. You can only pick one.

> Thus, if all but a handful of the tarballs of a software family use xz compression you cannot put a "use_xz" in the PortGroup and override it with, say, use_bz2 for the few exceptions.

Hmm, that could be considered a bug. I think you work around it by setting "use_xz no" as well.

There was some interest expressed at the MacPorts meeting in Slovenia to make MacPorts automatically detect compression formats during decompression and thus make the "use_xz" etc. options unnecessary. Notably, the tar command in OS X 10.9 (?) and later already supports automatic compression format detection (though we don't use that in MacPorts at this time: we decompress, then pipe the decompressed file to tar).

More information about the macports-dev mailing list