mirror of
https://git.yoctoproject.org/git/opkg-utils
synced 2026-07-08 07:32:01 +02:00
opkg-build: Add support for explicit pigz
oe-core has stopped[1] installing pigz as gzip. This means that in order to persuade opkg-build to use pigz it must be specified explicitly. Let's teach opkg-build to deal with being passed pigz as a compressor. We can't combine the check for whether -T is required because opkg-build calls both $compressor and gzip explicitly. Signed-off-by: Mike Crowe <mac@mcrowe.com> Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
This commit is contained in:
committed by
Alejandro del Castillo
parent
306d704d55
commit
a1ff6a8488
@@ -170,7 +170,7 @@ fi
|
||||
|
||||
compressor_ext() {
|
||||
case $1 in
|
||||
gzip)
|
||||
gzip|pigz)
|
||||
echo gz
|
||||
;;
|
||||
bzip2)
|
||||
@@ -230,6 +230,10 @@ if gzip --help 2>&1 | grep -- "-T" > /dev/null; then
|
||||
fi
|
||||
if [ $compressor = "gzip" ] ; then
|
||||
compressorargs=$zipargs
|
||||
elif [ $compressor = "pigz" ] ; then
|
||||
if $compressor --help 2>&1 | grep -- "-T" > /dev/null; then
|
||||
compressorargs="-9nT"
|
||||
fi
|
||||
fi
|
||||
|
||||
tsortargs=
|
||||
@@ -337,7 +341,7 @@ Stop with an error if any files ending with B<~> are found. The default behaviou
|
||||
|
||||
=item B<-Z> I<compressor>
|
||||
|
||||
Specify which compression type to use when building a package. Allowed values are B<gzip>, B<bzip2> and B<xz> (default is B<gzip>).
|
||||
Specify which compression type to use when building a package. Allowed values are B<gzip>, B<pigz>, B<bzip2> and B<xz> (default is B<gzip>).
|
||||
|
||||
=item B<-O>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user