summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/pigz
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2015-01-28 09:20:38 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-02-03 14:53:53 +0000
commit93842f0ec96b6e0f7863441f6ae02febe8a24a62 (patch)
treef1b6242a82b05a8225ba4ba46535553ead64a1ca /meta/recipes-extended/pigz
parent57647c9cbb56c7f115ebd5eeaee3f6e90a80ed8b (diff)
downloadpoky-93842f0ec96b6e0f7863441f6ae02febe8a24a62.tar.gz
pigz: Upgrade to 2.3.3
Fix build issues due to libz being required but is specified before use. Change-Id: I1f26c8e656b330a4b5f1eeffee7ac13500fa98d0 (From OE-Core rev: c939b9cc5bd046261981dcaae6cae9d358ed7671) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/pigz')
-rw-r--r--meta/recipes-extended/pigz/pigz.inc24
-rw-r--r--meta/recipes-extended/pigz/pigz/link-order.patch38
-rw-r--r--meta/recipes-extended/pigz/pigz_2.3.3.bb (renamed from meta/recipes-extended/pigz/pigz_2.3.1.bb)6
3 files changed, 54 insertions, 14 deletions
diff --git a/meta/recipes-extended/pigz/pigz.inc b/meta/recipes-extended/pigz/pigz.inc
index d313f2f6f8..b5caa95184 100644
--- a/meta/recipes-extended/pigz/pigz.inc
+++ b/meta/recipes-extended/pigz/pigz.inc
@@ -7,23 +7,23 @@ HOMEPAGE = "http://zlib.net/pigz/"
7SECTION = "console/utils" 7SECTION = "console/utils"
8LICENSE = "Zlib & Apache-2.0" 8LICENSE = "Zlib & Apache-2.0"
9 9
10SRC_URI = "http://zlib.net/pigz/pigz-${PV}.tar.gz" 10SRC_URI = "http://zlib.net/${BPN}/${BP}.tar.gz"
11 11
12PROVIDES_class-native += "gzip-native" 12PROVIDES_class-native += "gzip-native"
13 13
14DEPENDS = "zlib" 14DEPENDS = "zlib"
15 15
16do_install () { 16do_install_class-target() {
17 if [ "${CLASSOVERRIDE}" = "class-target" ] ; then 17 # Install files into /bin (FHS), which is typical place for gzip
18 # Install files into /bin (FHS), which is typical place for gzip 18 install -d ${D}${base_bindir}
19 install -d ${D}${base_bindir} 19 install ${B}/pigz ${D}${base_bindir}/gzip
20 install ${B}/pigz ${D}${base_bindir}/gzip 20 install ${B}/unpigz ${D}${base_bindir}/gunzip
21 install ${B}/unpigz ${D}${base_bindir}/gunzip 21}
22 else 22
23 install -d ${D}${bindir} 23do_install() {
24 install ${B}/pigz ${D}${bindir}/gzip 24 install -d ${D}${bindir}
25 install ${B}/unpigz ${D}${bindir}/gunzip 25 install ${B}/pigz ${D}${bindir}/gzip
26 fi 26 install ${B}/unpigz ${D}${bindir}/gunzip
27} 27}
28 28
29ALTERNATIVE_${PN} = "gzip gunzip" 29ALTERNATIVE_${PN} = "gzip gunzip"
diff --git a/meta/recipes-extended/pigz/pigz/link-order.patch b/meta/recipes-extended/pigz/pigz/link-order.patch
new file mode 100644
index 0000000000..4becc0e3fe
--- /dev/null
+++ b/meta/recipes-extended/pigz/pigz/link-order.patch
@@ -0,0 +1,38 @@
1This patch avoids underlinking issues since we pass -lz via LDFLAGS but it appears
2before pigz.o which needs symbols from libz however due to order linker happily discards libz
3
4Upstream-Status: Pending
5
6Signed-off-by: Khem Raj <raj.khem@gmail.com>
7
8Index: pigz-2.3.3/Makefile
9===================================================================
10--- pigz-2.3.3.orig/Makefile 2015-01-19 20:12:31.000000000 -0800
11+++ pigz-2.3.3/Makefile 2015-01-28 09:11:50.266669184 -0800
12@@ -5,7 +5,7 @@
13 # use gcc and gmake on Solaris
14
15 pigz: pigz.o yarn.o try.o ${ZOPFLI}deflate.o ${ZOPFLI}blocksplitter.o ${ZOPFLI}tree.o ${ZOPFLI}lz77.o ${ZOPFLI}cache.o ${ZOPFLI}hash.o ${ZOPFLI}util.o ${ZOPFLI}squeeze.o ${ZOPFLI}katajainen.o
16- $(CC) $(LDFLAGS) -o pigz $^ -lpthread -lm
17+ $(CC) -o pigz $^ $(LDFLAGS) -lz -lpthread -lm
18 ln -f pigz unpigz
19
20 pigz.o: pigz.c yarn.h try.h ${ZOPFLI}deflate.h ${ZOPFLI}util.h
21@@ -35,7 +35,7 @@
22 dev: pigz pigzt pigzn
23
24 pigzt: pigzt.o yarnt.o try.o ${ZOPFLI}deflate.o ${ZOPFLI}blocksplitter.o ${ZOPFLI}tree.o ${ZOPFLI}lz77.o ${ZOPFLI}cache.o ${ZOPFLI}hash.o ${ZOPFLI}util.o ${ZOPFLI}squeeze.o ${ZOPFLI}katajainen.o
25- $(CC) $(LDFLAGS) -o pigzt $^ -lpthread -lm
26+ $(CC) -o pigzt $^ $(LDFLAGS) -lz -lpthread -lm
27
28 pigzt.o: pigz.c yarn.h try.h
29 $(CC) $(CFLAGS) -DDEBUG -g -c -o pigzt.o pigz.c
30@@ -44,7 +44,7 @@
31 $(CC) $(CFLAGS) -DDEBUG -g -c -o yarnt.o yarn.c
32
33 pigzn: pigzn.o tryn.o ${ZOPFLI}deflate.o ${ZOPFLI}blocksplitter.o ${ZOPFLI}tree.o ${ZOPFLI}lz77.o ${ZOPFLI}cache.o ${ZOPFLI}hash.o ${ZOPFLI}util.o ${ZOPFLI}squeeze.o ${ZOPFLI}katajainen.o
34- $(CC) $(LDFLAGS) -o pigzn $^ -lm
35+ $(CC) -o pigzn $^ $(LDFLAGS) -lz -lm
36
37 pigzn.o: pigz.c try.h
38 $(CC) $(CFLAGS) -DDEBUG -DNOTHREAD -g -c -o pigzn.o pigz.c
diff --git a/meta/recipes-extended/pigz/pigz_2.3.1.bb b/meta/recipes-extended/pigz/pigz_2.3.3.bb
index cd5508d63e..080be2bbc9 100644
--- a/meta/recipes-extended/pigz/pigz_2.3.1.bb
+++ b/meta/recipes-extended/pigz/pigz_2.3.3.bb
@@ -1,8 +1,10 @@
1require pigz.inc 1require pigz.inc
2LIC_FILES_CHKSUM = "file://pigz.c;beginline=7;endline=21;md5=a21d4075cb00ab4ca17fce5e7534ca95" 2LIC_FILES_CHKSUM = "file://pigz.c;beginline=7;endline=21;md5=a21d4075cb00ab4ca17fce5e7534ca95"
3 3
4SRC_URI[md5sum] = "e803f8bc0770c7a5e96dccb1d2dd2aab" 4SRC_URI += "file://link-order.patch"
5SRC_URI[sha256sum] = "629b0ce5422a3978f31742bf8275d0be2f84987140d18f390f1e3b4e46e0af54" 5
6SRC_URI[md5sum] = "01d7a16cce77929cc1a78aa1bdfb68cb"
7SRC_URI[sha256sum] = "4e8b67b432ce7907575a549f3e1cac4709781ba0f6b48afea9f59369846b509c"
6 8
7NATIVE_PACKAGE_PATH_SUFFIX = "/${PN}" 9NATIVE_PACKAGE_PATH_SUFFIX = "/${PN}"
8 10