diff options
author | Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com> | 2019-07-01 00:38:44 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-07-02 22:01:15 +0100 |
commit | 1c6b1f926c600a61dbccf9653591084357a2e740 (patch) | |
tree | c7608d7a2ebff8172a3e7c4c7f7b7d162fdeb06a /meta/recipes-extended/bzip2/bzip2-1.0.6 | |
parent | 4cbe4cbdc0e6f05ec572e2f8813b0551b3026b03 (diff) | |
download | poky-1c6b1f926c600a61dbccf9653591084357a2e740.tar.gz |
bzip2: update to 1.0.7
Removed patches were upstreamed.
(From OE-Core rev: 3f88fcac8b5d3067bd4079af336eaf823ba00c96)
Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/bzip2/bzip2-1.0.6')
5 files changed, 0 insertions, 159 deletions
diff --git a/meta/recipes-extended/bzip2/bzip2-1.0.6/CVE-2016-3189.patch b/meta/recipes-extended/bzip2/bzip2-1.0.6/CVE-2016-3189.patch deleted file mode 100644 index 1d0c3a6dd3..0000000000 --- a/meta/recipes-extended/bzip2/bzip2-1.0.6/CVE-2016-3189.patch +++ /dev/null | |||
@@ -1,18 +0,0 @@ | |||
1 | Upstream-Status: Backport | ||
2 | https://bugzilla.suse.com/attachment.cgi?id=681334 | ||
3 | |||
4 | CVE: CVE-2016-3189 | ||
5 | Signed-off-by: Armin Kuster <akuster@mvista.com> | ||
6 | |||
7 | Index: bzip2-1.0.6/bzip2recover.c | ||
8 | =================================================================== | ||
9 | --- bzip2-1.0.6.orig/bzip2recover.c | ||
10 | +++ bzip2-1.0.6/bzip2recover.c | ||
11 | @@ -457,6 +457,7 @@ Int32 main ( Int32 argc, Char** argv ) | ||
12 | bsPutUChar ( bsWr, 0x50 ); bsPutUChar ( bsWr, 0x90 ); | ||
13 | bsPutUInt32 ( bsWr, blockCRC ); | ||
14 | bsClose ( bsWr ); | ||
15 | + outFile = NULL; | ||
16 | } | ||
17 | if (wrBlock >= rbCtr) break; | ||
18 | wrBlock++; | ||
diff --git a/meta/recipes-extended/bzip2/bzip2-1.0.6/Makefile.am b/meta/recipes-extended/bzip2/bzip2-1.0.6/Makefile.am deleted file mode 100644 index dcf64584d9..0000000000 --- a/meta/recipes-extended/bzip2/bzip2-1.0.6/Makefile.am +++ /dev/null | |||
@@ -1,73 +0,0 @@ | |||
1 | |||
2 | lib_LTLIBRARIES = libbz2.la | ||
3 | libbz2_la_LDFLAGS = -version-info 1:6:0 | ||
4 | |||
5 | libbz2_la_SOURCES = blocksort.c \ | ||
6 | huffman.c \ | ||
7 | crctable.c \ | ||
8 | randtable.c \ | ||
9 | compress.c \ | ||
10 | decompress.c \ | ||
11 | bzlib.c | ||
12 | |||
13 | bin_PROGRAMS = bzip2 bzip2recover | ||
14 | |||
15 | bzip2_SOURCES = bzip2.c | ||
16 | bzip2_LDADD = libbz2.la | ||
17 | bzip2_DEPENDENCIES = libbz2.la | ||
18 | |||
19 | include_HEADERS = bzlib.h | ||
20 | |||
21 | bzip2recover_SOURCES = bzip2recover.c | ||
22 | bzip2recover_LDADD = libbz2.la | ||
23 | bzip2recover_DEPENDENCIES = libbz2.la | ||
24 | |||
25 | bin_SCRIPTS = bzgrep bzmore bzdiff | ||
26 | |||
27 | man_MANS = bzip2.1 bzgrep.1 bzmore.1 bzdiff.1 | ||
28 | EXTRA_DIST = $(man_MANS) | ||
29 | |||
30 | runtest: | ||
31 | ./bzip2 -1 < sample1.ref > sample1.rb2 | ||
32 | ./bzip2 -2 < sample2.ref > sample2.rb2 | ||
33 | ./bzip2 -3 < sample3.ref > sample3.rb2 | ||
34 | ./bzip2 -d < sample1.bz2 > sample1.tst | ||
35 | ./bzip2 -d < sample2.bz2 > sample2.tst | ||
36 | ./bzip2 -ds < sample3.bz2 > sample3.tst | ||
37 | @if cmp sample1.bz2 sample1.rb2; then echo "PASS: sample1 compress";\ | ||
38 | else echo "FAIL: sample1 compress"; fi | ||
39 | @if cmp sample2.bz2 sample2.rb2; then echo "PASS: sample2 compress";\ | ||
40 | else echo "FAIL: sample2 compress"; fi | ||
41 | @if cmp sample3.bz2 sample3.rb2; then echo "PASS: sample3 compress";\ | ||
42 | else echo "FAIL: sample3 compress"; fi | ||
43 | @if cmp sample1.tst sample1.ref; then echo "PASS: sample1 decompress";\ | ||
44 | else echo "FAIL: sample1 decompress"; fi | ||
45 | @if cmp sample2.tst sample2.ref; then echo "PASS: sample2 decompress";\ | ||
46 | else echo "FAIL: sample2 decompress"; fi | ||
47 | @if cmp sample3.tst sample3.ref; then echo "PASS: sample3 decompress";\ | ||
48 | else echo "FAIL: sample3 decompress"; fi | ||
49 | |||
50 | install-ptest: | ||
51 | sed -n '/^runtest:/,/^install-ptest:/{/^install-ptest:/!p}' \ | ||
52 | $(srcdir)/Makefile.am > $(DESTDIR)/Makefile | ||
53 | cp $(srcdir)/sample1.ref $(DESTDIR)/ | ||
54 | cp $(srcdir)/sample2.ref $(DESTDIR)/ | ||
55 | cp $(srcdir)/sample3.ref $(DESTDIR)/ | ||
56 | cp $(srcdir)/sample1.bz2 $(DESTDIR)/ | ||
57 | cp $(srcdir)/sample2.bz2 $(DESTDIR)/ | ||
58 | cp $(srcdir)/sample3.bz2 $(DESTDIR)/ | ||
59 | ln -s $(bindir)/bzip2 $(DESTDIR)/bzip2 | ||
60 | |||
61 | install-exec-hook: | ||
62 | ln -s $(bindir)/bzip2$(EXEEXT) $(DESTDIR)$(bindir)/bunzip2$(EXEEXT) | ||
63 | ln -s $(bindir)/bzip2$(EXEEXT) $(DESTDIR)$(bindir)/bzcat$(EXEEXT) | ||
64 | ln -s $(bindir)/bzgrep$(EXEEXT) $(DESTDIR)$(bindir)/bzegrep$(EXEEXT) | ||
65 | ln -s $(bindir)/bzgrep$(EXEEXT) $(DESTDIR)$(bindir)/bzfgrep$(EXEEXT) | ||
66 | ln -s $(bindir)/bzmore$(EXEEXT) $(DESTDIR)$(bindir)/bzless$(EXEEXT) | ||
67 | ln -s $(bindir)/bzdiff$(EXEEXT) $(DESTDIR)$(bindir)/bzcmp$(EXEEXT) | ||
68 | |||
69 | install-data-hook: | ||
70 | echo ".so man1/bzgrep.1" > $(DESTDIR)$(mandir)/man1/bzegrep.1 | ||
71 | echo ".so man1/bzgrep.1" > $(DESTDIR)$(mandir)/man1/bzfgrep.1 | ||
72 | echo ".so man1/bzmore.1" > $(DESTDIR)$(mandir)/man1/bzless.1 | ||
73 | echo ".so man1/bzdiff.1" > $(DESTDIR)$(mandir)/man1/bzcmp.1 | ||
diff --git a/meta/recipes-extended/bzip2/bzip2-1.0.6/configure.ac b/meta/recipes-extended/bzip2/bzip2-1.0.6/configure.ac deleted file mode 100644 index e2bf1bf110..0000000000 --- a/meta/recipes-extended/bzip2/bzip2-1.0.6/configure.ac +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | AC_PREREQ([2.57]) | ||
2 | |||
3 | AC_INIT(bzip2, 1.0.6) | ||
4 | AM_INIT_AUTOMAKE(foreign) | ||
5 | AM_MAINTAINER_MODE | ||
6 | |||
7 | AC_PROG_CC | ||
8 | AC_PROG_LIBTOOL | ||
9 | |||
10 | AC_OUTPUT([Makefile]) | ||
11 | |||
diff --git a/meta/recipes-extended/bzip2/bzip2-1.0.6/fix-bunzip2-qt-returns-0-for-corrupt-archives.patch b/meta/recipes-extended/bzip2/bzip2-1.0.6/fix-bunzip2-qt-returns-0-for-corrupt-archives.patch deleted file mode 100644 index ece90d94e6..0000000000 --- a/meta/recipes-extended/bzip2/bzip2-1.0.6/fix-bunzip2-qt-returns-0-for-corrupt-archives.patch +++ /dev/null | |||
@@ -1,55 +0,0 @@ | |||
1 | From 8068659388127e8e63f2d2297ba2348c72b20705 Mon Sep 17 00:00:00 2001 | ||
2 | From: Wenzong Fan <wenzong.fan@windriver.com> | ||
3 | Date: Mon, 12 Oct 2015 03:19:51 -0400 | ||
4 | Subject: [PATCH] bzip2: fix bunzip2 -qt returns 0 for corrupt archives | ||
5 | |||
6 | "bzip2 -t FILE" returns 2 if FILE exists, but is not a valid bzip2 file. | ||
7 | "bzip2 -qt FILE" returns 0 when this happens, although it does print out | ||
8 | an error message as is does so. | ||
9 | |||
10 | This has been fix by Debian, just port changes from Debian patch file | ||
11 | "20-legacy.patch". | ||
12 | |||
13 | Debian defect: | ||
14 | https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=279025 | ||
15 | |||
16 | Fix item from changelog: | ||
17 | http://archive.debian.net/changelogs/pool/main/b/bzip2/bzip2_1.0.2-7/changelog | ||
18 | |||
19 | * Fixed "bunzip2 -qt returns 0 for corrupt archives" (Closes: #279025). | ||
20 | |||
21 | Upstream-Status: Pending | ||
22 | |||
23 | Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> | ||
24 | --- | ||
25 | bzip2.c | 14 ++++++++------ | ||
26 | 1 file changed, 8 insertions(+), 6 deletions(-) | ||
27 | |||
28 | diff --git a/bzip2.c b/bzip2.c | ||
29 | index 6de9d1d..f2ce668 100644 | ||
30 | --- a/bzip2.c | ||
31 | +++ b/bzip2.c | ||
32 | @@ -2003,12 +2003,14 @@ IntNative main ( IntNative argc, Char *argv[] ) | ||
33 | testf ( aa->name ); | ||
34 | } | ||
35 | } | ||
36 | - if (testFailsExist && noisy) { | ||
37 | - fprintf ( stderr, | ||
38 | - "\n" | ||
39 | - "You can use the `bzip2recover' program to attempt to recover\n" | ||
40 | - "data from undamaged sections of corrupted files.\n\n" | ||
41 | - ); | ||
42 | + if (testFailsExist) { | ||
43 | + if (noisy) { | ||
44 | + fprintf ( stderr, | ||
45 | + "\n" | ||
46 | + "You can use the `bzip2recover' program to attempt to recover\n" | ||
47 | + "data from undamaged sections of corrupted files.\n\n" | ||
48 | + ); | ||
49 | + } | ||
50 | setExit(2); | ||
51 | exit(exitValue); | ||
52 | } | ||
53 | -- | ||
54 | 1.9.1 | ||
55 | |||
diff --git a/meta/recipes-extended/bzip2/bzip2-1.0.6/run-ptest b/meta/recipes-extended/bzip2/bzip2-1.0.6/run-ptest deleted file mode 100644 index 3b20fce1ee..0000000000 --- a/meta/recipes-extended/bzip2/bzip2-1.0.6/run-ptest +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | make -k runtest | ||