[pacman-dev] [PATCH] makepkg: allow specifying compression options
Florian Pritz
bluewind at xinu.at
Sat Feb 11 05:15:06 EST 2012
On 11.02.2012 11:14, Allan McRae wrote:
> On 11/02/12 19:56, Florian Pritz wrote:
>> On 11.02.2012 10:56, Allan McRae wrote:
>>> From: Christian Hesse <mail at earthworm.de>
>>>
>>> Adds the ability to override the commands used to compressing
>>> compiled and source packages. This is useful for those wanting
>>> to use alternative implementations of the compression tools or
>>> non-default compression options.
>>
>> There is really no need to do that as gzip already has the GZIP
>> environment variable, xz has XZ_DEFAULTS and XZ_OPT, bzip2 has BZIP2 and
>> BZIP. compress doesn't have something like that afaict.
>>
>> These variables can contain command line options which will be parsed
>> before the real command line options. (Refer to the gzip, bzip2, xz
>> manpages for more info)
>>
>> You can test this by adding 'export XZ_OPT=-h"' to package() and xz will
>> then output the help msg to the package file. (bsdtar will also print an
>> error, but that's expected)
>>
>
> And how do you specify using pgzip that way?
Valid point I guess.
--
Florian Pritz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.archlinux.org/pipermail/pacman-dev/attachments/20120211/914e4427/attachment.asc>
More information about the pacman-dev
mailing list