diff options
author | Mike Crowe <mac@mcrowe.com> | 2018-10-05 16:27:25 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-10-09 19:04:02 +0100 |
commit | dabb0747482f4085d925cd5af7ba700d06a8615b (patch) | |
tree | c9b872039abd805ac71439c37abc17a5fbe056ca /meta/recipes-devtools/opkg-utils | |
parent | ba6e02c195c0edead1ed3a20f4b58bd49c4395bb (diff) | |
download | poky-dabb0747482f4085d925cd5af7ba700d06a8615b.tar.gz |
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>
Diffstat (limited to 'meta/recipes-devtools/opkg-utils')
-rw-r--r-- | meta/recipes-devtools/opkg-utils/opkg-utils/pigz.patch | 51 | ||||
-rw-r--r-- | meta/recipes-devtools/opkg-utils/opkg-utils_0.3.6.bb | 1 |
2 files changed, 52 insertions, 0 deletions
diff --git a/meta/recipes-devtools/opkg-utils/opkg-utils/pigz.patch b/meta/recipes-devtools/opkg-utils/opkg-utils/pigz.patch new file mode 100644 index 0000000000..dd433e8eb9 --- /dev/null +++ b/meta/recipes-devtools/opkg-utils/opkg-utils/pigz.patch | |||
@@ -0,0 +1,51 @@ | |||
1 | From ab1436927b47badcd219a5f075dfc848020e061d Mon Sep 17 00:00:00 2001 | ||
2 | From: Mike Crowe <mac@mcrowe.com> | ||
3 | Date: Thu, 4 Oct 2018 17:54:19 +0100 | ||
4 | Subject: [opkg-utils PATCH] opkg-build: Add support for explicit use of pigz | ||
5 | To: opkg-devel@googlegroups.com, | ||
6 | yocto@yoctoproject.org | ||
7 | |||
8 | oe-core has stopped[1] installing pigz as gzip. This means that in | ||
9 | order to persuade opkg-build to use pigz it must be specified | ||
10 | explicitly. Let's teach opkg-build to deal with being passed pigz as a | ||
11 | compressor. | ||
12 | |||
13 | We can't combine the check for whether -T is required with the one for | ||
14 | gzip because opkg-build needs to call $compressor and gzip separately | ||
15 | to construct the package. | ||
16 | |||
17 | [1] http://lists.openembedded.org/pipermail/openembedded-commits/2018-February/218767.html | ||
18 | |||
19 | Upstream-Status: Submitted [opkg-devel@googlegroups.com https://groups.google.com/forum/#!topic/opkg-devel/E0WVOhjK61w] | ||
20 | Signed-off-by: Mike Crowe <mac@mcrowe.com> | ||
21 | --- | ||
22 | opkg-build | 6 +++++- | ||
23 | 1 file changed, 5 insertions(+), 1 deletion(-) | ||
24 | |||
25 | diff --git a/opkg-build b/opkg-build | ||
26 | index 93a7956..f8403ea 100755 | ||
27 | --- a/opkg-build | ||
28 | +++ b/opkg-build | ||
29 | @@ -170,7 +170,7 @@ fi | ||
30 | |||
31 | compressor_ext() { | ||
32 | case $1 in | ||
33 | - gzip) | ||
34 | + gzip|pigz) | ||
35 | echo gz | ||
36 | ;; | ||
37 | bzip2) | ||
38 | @@ -232,6 +232,10 @@ if [ $compressor = "gzip" ] ; then | ||
39 | compressorargs=$zipargs | ||
40 | elif [ $compressor = "xz" ] ; then | ||
41 | compressorargs="--threads 0" | ||
42 | +elif [ $compressor = "pigz" ] ; then | ||
43 | + if $compressor --help 2>&1 | grep -- "-T" > /dev/null; then | ||
44 | + compressorargs="-9nT" | ||
45 | + fi | ||
46 | fi | ||
47 | |||
48 | tsortargs= | ||
49 | -- | ||
50 | 2.11.0 | ||
51 | |||
diff --git a/meta/recipes-devtools/opkg-utils/opkg-utils_0.3.6.bb b/meta/recipes-devtools/opkg-utils/opkg-utils_0.3.6.bb index 0487c5f305..cb3775d9c9 100644 --- a/meta/recipes-devtools/opkg-utils/opkg-utils_0.3.6.bb +++ b/meta/recipes-devtools/opkg-utils/opkg-utils_0.3.6.bb | |||
@@ -12,6 +12,7 @@ SRC_URI = "http://git.yoctoproject.org/cgit/cgit.cgi/${BPN}/snapshot/${BPN}-${PV | |||
12 | file://0001-Only-use-sort-name-on-versions-of-tar-which-support-.patch \ | 12 | file://0001-Only-use-sort-name-on-versions-of-tar-which-support-.patch \ |
13 | file://0002-opkg-build-Use-local-time-for-build_date-since-opkg-.patch \ | 13 | file://0002-opkg-build-Use-local-time-for-build_date-since-opkg-.patch \ |
14 | file://threaded-xz.patch \ | 14 | file://threaded-xz.patch \ |
15 | file://pigz.patch \ | ||
15 | " | 16 | " |
16 | SRC_URI_append_class-native = " file://tar_ignore_error.patch" | 17 | SRC_URI_append_class-native = " file://tar_ignore_error.patch" |
17 | UPSTREAM_CHECK_URI = "http://git.yoctoproject.org/cgit/cgit.cgi/opkg-utils/refs/" | 18 | UPSTREAM_CHECK_URI = "http://git.yoctoproject.org/cgit/cgit.cgi/opkg-utils/refs/" |