* [opkg-utils PATCH] opkg-build: Add support for explicit pigz
@ 2018-10-04 16:53 Mike Crowe
2018-10-05 20:31 ` [opkg-devel] " Alejandro Del Castillo
0 siblings, 1 reply; 2+ messages in thread
From: Mike Crowe @ 2018-10-04 16:53 UTC (permalink / raw)
To: opkg-devel, yocto; +Cc: Mike Crowe, Mike Crowe
From: Mike Crowe <mcrowe@brightsign.biz>
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>
---
opkg-build | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/opkg-build b/opkg-build
index 0050c2b..d5f5b8f 100755
--- a/opkg-build
+++ b/opkg-build
@@ -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=
--
2.11.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [opkg-devel] [opkg-utils PATCH] opkg-build: Add support for explicit pigz
2018-10-04 16:53 [opkg-utils PATCH] opkg-build: Add support for explicit pigz Mike Crowe
@ 2018-10-05 20:31 ` Alejandro Del Castillo
0 siblings, 0 replies; 2+ messages in thread
From: Alejandro Del Castillo @ 2018-10-05 20:31 UTC (permalink / raw)
To: opkg-devel, Mike Crowe, yocto; +Cc: Mike Crowe
Hi Mike,
Thanks for the patch! Just merged it into master (I updated the man page
to reflect the new option)
On 10/4/18 11:53 AM, Mike Crowe wrote:
> From: Mike Crowe <mcrowe@brightsign.biz>
>
> 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>
> ---
> opkg-build | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/opkg-build b/opkg-build
> index 0050c2b..d5f5b8f 100755
> --- a/opkg-build
> +++ b/opkg-build
> @@ -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=
>
--
Cheers,
Alejandro
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-10-05 21:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-04 16:53 [opkg-utils PATCH] opkg-build: Add support for explicit pigz Mike Crowe
2018-10-05 20:31 ` [opkg-devel] " Alejandro Del Castillo
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.