mirror of
https://git.yoctoproject.org/poky
synced 2026-04-18 12:32:12 +02:00
opkg-utils: Add support for pigz
Support explicit use of pigz when compressing the package contents by setting: OPKGBUILDCMD = "opkg-build -Z pigz" (From OE-Core rev: 631e7bb7d02ca9cb9cb66e6b8395b197525cda55) Signed-off-by: Mike Crowe <mac@mcrowe.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
ba6e02c195
commit
dabb074748
51
meta/recipes-devtools/opkg-utils/opkg-utils/pigz.patch
Normal file
51
meta/recipes-devtools/opkg-utils/opkg-utils/pigz.patch
Normal file
@@ -0,0 +1,51 @@
|
||||
From ab1436927b47badcd219a5f075dfc848020e061d Mon Sep 17 00:00:00 2001
|
||||
From: Mike Crowe <mac@mcrowe.com>
|
||||
Date: Thu, 4 Oct 2018 17:54:19 +0100
|
||||
Subject: [opkg-utils PATCH] opkg-build: Add support for explicit use of pigz
|
||||
To: opkg-devel@googlegroups.com,
|
||||
yocto@yoctoproject.org
|
||||
|
||||
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 with the one for
|
||||
gzip because opkg-build needs to call $compressor and gzip separately
|
||||
to construct the package.
|
||||
|
||||
[1] http://lists.openembedded.org/pipermail/openembedded-commits/2018-February/218767.html
|
||||
|
||||
Upstream-Status: Submitted [opkg-devel@googlegroups.com https://groups.google.com/forum/#!topic/opkg-devel/E0WVOhjK61w]
|
||||
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 93a7956..f8403ea 100755
|
||||
--- a/opkg-build
|
||||
+++ b/opkg-build
|
||||
@@ -170,7 +170,7 @@ fi
|
||||
|
||||
compressor_ext() {
|
||||
case $1 in
|
||||
- gzip)
|
||||
+ gzip|pigz)
|
||||
echo gz
|
||||
;;
|
||||
bzip2)
|
||||
@@ -232,6 +232,10 @@ if [ $compressor = "gzip" ] ; then
|
||||
compressorargs=$zipargs
|
||||
elif [ $compressor = "xz" ] ; then
|
||||
compressorargs="--threads 0"
|
||||
+elif [ $compressor = "pigz" ] ; then
|
||||
+ if $compressor --help 2>&1 | grep -- "-T" > /dev/null; then
|
||||
+ compressorargs="-9nT"
|
||||
+ fi
|
||||
fi
|
||||
|
||||
tsortargs=
|
||||
--
|
||||
2.11.0
|
||||
|
||||
@@ -12,6 +12,7 @@ SRC_URI = "http://git.yoctoproject.org/cgit/cgit.cgi/${BPN}/snapshot/${BPN}-${PV
|
||||
file://0001-Only-use-sort-name-on-versions-of-tar-which-support-.patch \
|
||||
file://0002-opkg-build-Use-local-time-for-build_date-since-opkg-.patch \
|
||||
file://threaded-xz.patch \
|
||||
file://pigz.patch \
|
||||
"
|
||||
SRC_URI_append_class-native = " file://tar_ignore_error.patch"
|
||||
UPSTREAM_CHECK_URI = "http://git.yoctoproject.org/cgit/cgit.cgi/opkg-utils/refs/"
|
||||
|
||||
Reference in New Issue
Block a user