summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/opkg/opkg
diff options
context:
space:
mode:
authorAlejandro del Castillo <alejandro.delcastillo@ni.com>2019-12-18 14:00:28 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-12-28 23:25:41 +0000
commit8834fb44cf4331046b6efaead41135a451907b44 (patch)
treea94ec9d739f533af15c0ce4212f83a3cd2b5523b /meta/recipes-devtools/opkg/opkg
parentad46015ef9e687950bfe21a06b98358cd2d15821 (diff)
downloadpoky-8834fb44cf4331046b6efaead41135a451907b44.tar.gz
opkg: upgrade to version 0.4.2
- Drop open_inner.patch - Drop opkg_archive.patch - Remove "remove_test_binaries" function (From OE-Core rev: e795ba18613a3f45a81617207abc68f93039cbe5) Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/opkg/opkg')
-rw-r--r--meta/recipes-devtools/opkg/opkg/open_inner.patch46
-rw-r--r--meta/recipes-devtools/opkg/opkg/opkg_archive.patch54
2 files changed, 0 insertions, 100 deletions
diff --git a/meta/recipes-devtools/opkg/opkg/open_inner.patch b/meta/recipes-devtools/opkg/opkg/open_inner.patch
deleted file mode 100644
index 278e099e3a..0000000000
--- a/meta/recipes-devtools/opkg/opkg/open_inner.patch
+++ /dev/null
@@ -1,46 +0,0 @@
1From alejandro.delcastillo@ni.com Wed Nov 20 22:35:02 2019
2From: Alejandro del Castillo <alejandro.delcastillo@ni.com>
3To: <opkg-devel@googlegroups.com>, <richard.purdie@linuxfoundation.org>
4CC: Alejandro del Castillo <alejandro.delcastillo@ni.com>
5Subject: [opkg][PATCH 2/2] open_inner: add support for empty payloads
6Date: Wed, 20 Nov 2019 16:34:48 -0600
7Message-ID: <20191120223448.26522-3-alejandro.delcastillo@ni.com>
8X-Mailer: git-send-email 2.22.0
9In-Reply-To: <20191120223448.26522-1-alejandro.delcastillo@ni.com>
10References: <20191120223448.26522-1-alejandro.delcastillo@ni.com>
11MIME-Version: 1.0
12Content-Type: text/plain
13Content-Transfer-Encoding: 8bit
14
15Support for empty compressed payloads need to be explicitly enabled on
16libarchive.
17
18Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
19
20Upstream-Status: Backport
21---
22 libopkg/opkg_archive.c | 7 +++++++
23 1 file changed, 7 insertions(+)
24
25diff --git a/libopkg/opkg_archive.c b/libopkg/opkg_archive.c
26index 0e9ccea..f19cece 100644
27--- a/libopkg/opkg_archive.c
28+++ b/libopkg/opkg_archive.c
29@@ -618,6 +618,13 @@ static struct archive *open_inner(struct archive *outer)
30 goto err_cleanup;
31 }
32
33+ r = archive_read_support_format_empty(inner);
34+ if (r != ARCHIVE_OK) {
35+ opkg_msg(ERROR, "Empty format not supported: %s\n",
36+ archive_error_string(inner));
37+ goto err_cleanup;
38+ }
39+
40 r = archive_read_open(inner, data, NULL, inner_read, inner_close);
41 if (r != ARCHIVE_OK) {
42 opkg_msg(ERROR, "Failed to open inner archive: %s\n",
43--
442.22.0
45
46
diff --git a/meta/recipes-devtools/opkg/opkg/opkg_archive.patch b/meta/recipes-devtools/opkg/opkg/opkg_archive.patch
deleted file mode 100644
index 3e1ebae953..0000000000
--- a/meta/recipes-devtools/opkg/opkg/opkg_archive.patch
+++ /dev/null
@@ -1,54 +0,0 @@
1From alejandro.delcastillo@ni.com Wed Nov 20 22:35:01 2019
2Return-Path: <richard.purdie+caf_=rpurdie=rpsys.net@linuxfoundation.org>
3From: Alejandro del Castillo <alejandro.delcastillo@ni.com>
4To: <opkg-devel@googlegroups.com>, <richard.purdie@linuxfoundation.org>
5CC: Alejandro del Castillo <alejandro.delcastillo@ni.com>
6Subject: [opkg][PATCH 1/2] opkg_archive.c: avoid double free on uncompress
7 error
8Date: Wed, 20 Nov 2019 16:34:47 -0600
9Message-ID: <20191120223448.26522-2-alejandro.delcastillo@ni.com>
10X-Mailer: git-send-email 2.22.0
11In-Reply-To: <20191120223448.26522-1-alejandro.delcastillo@ni.com>
12References: <20191120223448.26522-1-alejandro.delcastillo@ni.com>
13MIME-Version: 1.0
14Content-Type: text/plain
15Content-Transfer-Encoding: 8bit
16
17The open-inner function calls archive_read_open. On error,
18archive_read_open calls inner_close, which also closes the outter
19archive. On error, return NULL directly to avoid double free.
20
21
22Upstream-Status: Backport
23
24Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
25---
26 libopkg/opkg_archive.c | 4 ++--
27 1 file changed, 2 insertions(+), 2 deletions(-)
28
29diff --git a/libopkg/opkg_archive.c b/libopkg/opkg_archive.c
30index 3d87db1..0e9ccea 100644
31--- a/libopkg/opkg_archive.c
32+++ b/libopkg/opkg_archive.c
33@@ -622,7 +622,7 @@ static struct archive *open_inner(struct archive *outer)
34 if (r != ARCHIVE_OK) {
35 opkg_msg(ERROR, "Failed to open inner archive: %s\n",
36 archive_error_string(inner));
37- goto err_cleanup;
38+ return NULL;
39 }
40
41 return inner;
42@@ -683,7 +683,7 @@ static struct archive *extract_outer(const char *filename, const char *arname)
43
44 inner = open_inner(outer);
45 if (!inner)
46- goto err_cleanup;
47+ return NULL;
48
49 return inner;
50
51--
522.22.0
53
54