diff options
| author | Alexander Kanavin <alex.kanavin@gmail.com> | 2022-12-28 08:37:18 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-12-28 23:59:56 +0000 |
| commit | c4e7162d81c71ee033b370dfba1c1437a66cfe59 (patch) | |
| tree | 7858a669273f5e1836396895d1f3f44dd6590e74 | |
| parent | 153ec41cdccb049416cabb358e047a088e27584a (diff) | |
| download | poky-c4e7162d81c71ee033b370dfba1c1437a66cfe59.tar.gz | |
libarchive: upgrade 3.6.1 -> 3.6.2
Use --without-iconv as otherwise autotools write a bogus iconv
dependency into .pc file.
(From OE-Core rev: edce1bce81fe2f47fb2c5e2b94ebda73f95cbaea)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-extended/libarchive/libarchive/0001-libarchive-Do-not-include-sys-mount.h-when-linux-fs..patch | 47 | ||||
| -rw-r--r-- | meta/recipes-extended/libarchive/libarchive/cve-2022-36227.patch | 48 | ||||
| -rw-r--r-- | meta/recipes-extended/libarchive/libarchive_3.6.2.bb (renamed from meta/recipes-extended/libarchive/libarchive_3.6.1.bb) | 9 |
3 files changed, 3 insertions, 101 deletions
diff --git a/meta/recipes-extended/libarchive/libarchive/0001-libarchive-Do-not-include-sys-mount.h-when-linux-fs..patch b/meta/recipes-extended/libarchive/libarchive/0001-libarchive-Do-not-include-sys-mount.h-when-linux-fs..patch deleted file mode 100644 index 0d21799682..0000000000 --- a/meta/recipes-extended/libarchive/libarchive/0001-libarchive-Do-not-include-sys-mount.h-when-linux-fs..patch +++ /dev/null | |||
| @@ -1,47 +0,0 @@ | |||
| 1 | From a2f68263a1da5ad227bcb9cd8fa91b93c8b6c99f Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Mon, 25 Jul 2022 10:56:53 -0700 | ||
| 4 | Subject: [PATCH] libarchive: Do not include sys/mount.h when linux/fs.h is | ||
| 5 | present | ||
| 6 | |||
| 7 | These headers are in conflict and only one is needed by | ||
| 8 | archive_read_disk_posix.c therefore include linux/fs.h if it exists | ||
| 9 | otherwise include sys/mount.h | ||
| 10 | |||
| 11 | It also helps compiling with glibc 2.36 | ||
| 12 | where sys/mount.h conflicts with linux/mount.h see [1] | ||
| 13 | |||
| 14 | [1] https://sourceware.org/glibc/wiki/Release/2.36 | ||
| 15 | |||
| 16 | Upstream-Status: Submitted [https://github.com/libarchive/libarchive/pull/1761] | ||
| 17 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 18 | --- | ||
| 19 | libarchive/archive_read_disk_posix.c | 5 ++--- | ||
| 20 | 1 file changed, 2 insertions(+), 3 deletions(-) | ||
| 21 | |||
| 22 | diff --git a/libarchive/archive_read_disk_posix.c b/libarchive/archive_read_disk_posix.c | ||
| 23 | index 2b39e672..a96008db 100644 | ||
| 24 | --- a/libarchive/archive_read_disk_posix.c | ||
| 25 | +++ b/libarchive/archive_read_disk_posix.c | ||
| 26 | @@ -34,9 +34,6 @@ __FBSDID("$FreeBSD$"); | ||
| 27 | #ifdef HAVE_SYS_PARAM_H | ||
| 28 | #include <sys/param.h> | ||
| 29 | #endif | ||
| 30 | -#ifdef HAVE_SYS_MOUNT_H | ||
| 31 | -#include <sys/mount.h> | ||
| 32 | -#endif | ||
| 33 | #ifdef HAVE_SYS_STAT_H | ||
| 34 | #include <sys/stat.h> | ||
| 35 | #endif | ||
| 36 | @@ -54,6 +51,8 @@ __FBSDID("$FreeBSD$"); | ||
| 37 | #endif | ||
| 38 | #ifdef HAVE_LINUX_FS_H | ||
| 39 | #include <linux/fs.h> | ||
| 40 | +#elif HAVE_SYS_MOUNT_H | ||
| 41 | +#include <sys/mount.h> | ||
| 42 | #endif | ||
| 43 | /* | ||
| 44 | * Some Linux distributions have both linux/ext2_fs.h and ext2fs/ext2_fs.h. | ||
| 45 | -- | ||
| 46 | 2.25.1 | ||
| 47 | |||
diff --git a/meta/recipes-extended/libarchive/libarchive/cve-2022-36227.patch b/meta/recipes-extended/libarchive/libarchive/cve-2022-36227.patch deleted file mode 100644 index 4d13bf6492..0000000000 --- a/meta/recipes-extended/libarchive/libarchive/cve-2022-36227.patch +++ /dev/null | |||
| @@ -1,48 +0,0 @@ | |||
| 1 | From bff38efe8c110469c5080d387bec62a6ca15b1a5 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: obiwac <obiwac@gmail.com> | ||
| 3 | Date: Fri, 22 Jul 2022 22:41:10 +0200 | ||
| 4 | Subject: [PATCH] libarchive: Handle a `calloc` returning NULL (fixes #1754) | ||
| 5 | |||
| 6 | --- | ||
| 7 | libarchive/archive_write.c | 8 ++++++++ | ||
| 8 | 1 file changed, 8 insertions(+) | ||
| 9 | |||
| 10 | --- | ||
| 11 | CVE: CVE-2022-36227 | ||
| 12 | |||
| 13 | Source-Repo: https://github.com/libarchive/libarchive.git | ||
| 14 | |||
| 15 | Upstream-Status: Backport [bff38efe8c... unmodified] | ||
| 16 | |||
| 17 | Signed-off-by: Joe Slater <joe.slater@windriver.com> | ||
| 18 | |||
| 19 | --- | ||
| 20 | diff --git a/libarchive/archive_write.c b/libarchive/archive_write.c | ||
| 21 | index 66592e82..27626b54 100644 | ||
| 22 | --- a/libarchive/archive_write.c | ||
| 23 | +++ b/libarchive/archive_write.c | ||
| 24 | @@ -201,6 +201,10 @@ __archive_write_allocate_filter(struct archive *_a) | ||
| 25 | struct archive_write_filter *f; | ||
| 26 | |||
| 27 | f = calloc(1, sizeof(*f)); | ||
| 28 | + | ||
| 29 | + if (f == NULL) | ||
| 30 | + return (NULL); | ||
| 31 | + | ||
| 32 | f->archive = _a; | ||
| 33 | f->state = ARCHIVE_WRITE_FILTER_STATE_NEW; | ||
| 34 | if (a->filter_first == NULL) | ||
| 35 | @@ -548,6 +552,10 @@ archive_write_open2(struct archive *_a, void *client_data, | ||
| 36 | a->client_data = client_data; | ||
| 37 | |||
| 38 | client_filter = __archive_write_allocate_filter(_a); | ||
| 39 | + | ||
| 40 | + if (client_filter == NULL) | ||
| 41 | + return (ARCHIVE_FATAL); | ||
| 42 | + | ||
| 43 | client_filter->open = archive_write_client_open; | ||
| 44 | client_filter->write = archive_write_client_write; | ||
| 45 | client_filter->close = archive_write_client_close; | ||
| 46 | -- | ||
| 47 | 2.38.1 | ||
| 48 | |||
diff --git a/meta/recipes-extended/libarchive/libarchive_3.6.1.bb b/meta/recipes-extended/libarchive/libarchive_3.6.2.bb index c812038352..f447035b67 100644 --- a/meta/recipes-extended/libarchive/libarchive_3.6.1.bb +++ b/meta/recipes-extended/libarchive/libarchive_3.6.2.bb | |||
| @@ -30,15 +30,12 @@ PACKAGECONFIG[lz4] = "--with-lz4,--without-lz4,lz4," | |||
| 30 | PACKAGECONFIG[mbedtls] = "--with-mbedtls,--without-mbedtls,mbedtls," | 30 | PACKAGECONFIG[mbedtls] = "--with-mbedtls,--without-mbedtls,mbedtls," |
| 31 | PACKAGECONFIG[zstd] = "--with-zstd,--without-zstd,zstd," | 31 | PACKAGECONFIG[zstd] = "--with-zstd,--without-zstd,zstd," |
| 32 | 32 | ||
| 33 | EXTRA_OECONF += "--enable-largefile" | 33 | EXTRA_OECONF += "--enable-largefile --without-iconv" |
| 34 | 34 | ||
| 35 | SRC_URI = "http://libarchive.org/downloads/libarchive-${PV}.tar.gz \ | 35 | SRC_URI = "http://libarchive.org/downloads/libarchive-${PV}.tar.gz" |
| 36 | file://0001-libarchive-Do-not-include-sys-mount.h-when-linux-fs..patch \ | ||
| 37 | file://cve-2022-36227.patch \ | ||
| 38 | " | ||
| 39 | UPSTREAM_CHECK_URI = "http://libarchive.org/" | 36 | UPSTREAM_CHECK_URI = "http://libarchive.org/" |
| 40 | 37 | ||
| 41 | SRC_URI[sha256sum] = "c676146577d989189940f1959d9e3980d28513d74eedfbc6b7f15ea45fe54ee2" | 38 | SRC_URI[sha256sum] = "ba6d02f15ba04aba9c23fd5f236bb234eab9d5209e95d1c4df85c44d5f19b9b3" |
| 42 | 39 | ||
| 43 | inherit autotools update-alternatives pkgconfig | 40 | inherit autotools update-alternatives pkgconfig |
| 44 | 41 | ||
