[packages/libarchive] - updated to 3.8.11
qboosh
qboosh at pld-linux.org
Fri Nov 13 20:48:59 CET 2026
commit f6795b2d8153596b40cde200533fdd71ae8b494b
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Fri Nov 13 20:48:54 2026 +0100
- updated to 3.8.11
libarchive-xar-seek-offset.patch | 49 ----------------------------------------
libarchive.spec | 42 ++++++++++++++++------------------
libxml2-config.patch | 29 ------------------------
3 files changed, 19 insertions(+), 101 deletions(-)
---
diff --git a/libarchive.spec b/libarchive.spec
index cc64193..91271d7 100644
--- a/libarchive.spec
+++ b/libarchive.spec
@@ -5,17 +5,15 @@
Summary: Multi-format archive and compression library
Summary(pl.UTF-8): Biblioteka do archiwizacji i kompresji w wielu formatach
Name: libarchive
-Version: 3.8.10
-Release: 2
+Version: 3.8.11
+Release: 1
License: BSD
Group: Libraries
# see main page, downloads index may be out of date
#Source0Download: http://www.libarchive.org/
Source0: https://www.libarchive.org/downloads/%{name}-%{version}.tar.xz
-# Source0-md5: 7ca38379cb296edf27fe950b9c092a6e
+# Source0-md5: 06cd808c8b79ec02fa580e305eede08f
Patch0: %{name}-man_progname.patch
-Patch1: libxml2-config.patch
-Patch2: %{name}-xar-seek-offset.patch
URL: http://www.libarchive.org/
BuildRequires: acl-devel
BuildRequires: attr-devel
@@ -25,7 +23,7 @@ BuildRequires: bzip2-devel
# for <ext2fs/ext2_fs.h>
BuildRequires: e2fsprogs-devel
BuildRequires: libb2-devel
-BuildRequires: libtool
+BuildRequires: libtool >= 2:2
BuildRequires: libxml2-devel >= 1:2.7.3
BuildRequires: lz4-devel >= r131
BuildRequires: lzo-devel >= 2
@@ -38,10 +36,10 @@ BuildRequires: xz
BuildRequires: xz-devel >= 1:5.2
BuildRequires: zlib-devel >= 1.2.1
BuildRequires: zstd-devel
-Requires: libxml2 >= 1:2.7.3
-Requires: lz4-libs >= r131
-Requires: xz-libs >= 1:5.2
-Requires: zlib >= 1.2.1
+Requires: libxml2%{?_isa} >= 1:2.7.3
+Requires: lz4-libs%{?_isa} >= r131
+Requires: xz-libs%{?_isa} >= 1:5.2
+Requires: zlib%{?_isa} >= 1.2.1
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -67,17 +65,17 @@ Summary: Header files for libarchive library
Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libarchive
Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release}
-Requires: acl-devel
-Requires: attr-devel
-Requires: bzip2-devel
-Requires: libb2-devel
-Requires: libxml2-devel >= 1:2.7.3
-Requires: lz4-devel >= r131
-Requires: nettle-devel
-Requires: richacl-devel
-Requires: xz-devel >= 1:5.2
-Requires: zlib-devel >= 1.2.1
-Requires: zstd-devel
+Requires: acl-devel%{?_isa}
+Requires: attr-devel%{?_isa}
+Requires: bzip2-devel%{?_isa}
+Requires: libb2-devel%{?_isa}
+Requires: libxml2-devel%{?_isa} >= 1:2.7.3
+Requires: lz4-devel%{?_isa} >= r131
+Requires: nettle-devel%{?_isa}
+Requires: richacl-devel%{?_isa}
+Requires: xz-devel%{?_isa} >= 1:5.2
+Requires: zlib-devel%{?_isa} >= 1.2.1
+Requires: zstd-devel%{?_isa}
%description devel
Header files for libarchive library.
@@ -148,8 +146,6 @@ bsdunzip - implementacja programu unzip(1), oparta na libarchive.
%prep
%setup -q
%patch -P0 -p1
-%patch -P1 -p1
-%patch -P2 -p1
%build
%{__libtoolize}
diff --git a/libarchive-xar-seek-offset.patch b/libarchive-xar-seek-offset.patch
deleted file mode 100644
index 9b3d27e..0000000
--- a/libarchive-xar-seek-offset.patch
+++ /dev/null
@@ -1,49 +0,0 @@
-xar: integer overflow in move_reading_point() lets a crafted offset seek back
-and re-read the TOC (GHSA-w3m6-5v92-c762, ASan-detected memory error).
-https://github.com/libarchive/libarchive/commit/b70c22f22c4030a65abd147433d5b027ed52d42e
-https://github.com/libarchive/libarchive/commit/efbe2f64a279d6d894bf62cffc466c84c05c1bb3
-
-diff --git a/libarchive/archive_read_support_format_xar.c b/libarchive/archive_read_support_format_xar.c
-index cd4923014f..3ccb01bd50 100644
---- a/libarchive/archive_read_support_format_xar.c
-+++ b/libarchive/archive_read_support_format_xar.c
-@@ -1001,7 +1001,15 @@ move_reading_point(struct archive_read *a, uint64_t offset)
- return ((int)step);
- xar->offset += step;
- } else {
-- int64_t pos = __archive_read_seek(a, xar->h_base + offset, SEEK_SET);
-+ if (archive_ckd_add_u64(&offset, offset, xar->h_base) ||
-+ (int64_t)offset < 0) {
-+ archive_set_error(&(a->archive),
-+ ARCHIVE_ERRNO_FILE_FORMAT,
-+ "Too many bytes to skip");
-+ return (ARCHIVE_FATAL);
-+ }
-+
-+ int64_t pos = __archive_read_seek(a, offset, SEEK_SET);
- if (pos == ARCHIVE_FAILED) {
- archive_set_error(&(a->archive),
- ARCHIVE_ERRNO_MISC,
-diff --git a/libarchive/archive_read_support_format_xar.c b/libarchive/archive_read_support_format_xar.c
-index 3ccb01bd50..bb43d1f42f 100644
---- a/libarchive/archive_read_support_format_xar.c
-+++ b/libarchive/archive_read_support_format_xar.c
-@@ -1009,14 +1009,14 @@ move_reading_point(struct archive_read *a, uint64_t offset)
- return (ARCHIVE_FATAL);
- }
-
-- int64_t pos = __archive_read_seek(a, offset, SEEK_SET);
-- if (pos == ARCHIVE_FAILED) {
-+ int64_t r = __archive_read_seek(a, offset, SEEK_SET);
-+ if (r < ARCHIVE_OK) {
- archive_set_error(&(a->archive),
- ARCHIVE_ERRNO_MISC,
- "Cannot seek");
-- return (ARCHIVE_FAILED);
-+ return ((int)r);
- }
-- xar->offset = pos;
-+ xar->offset = r;
- }
- }
- return (ARCHIVE_OK);
diff --git a/libxml2-config.patch b/libxml2-config.patch
deleted file mode 100644
index 4e88b02..0000000
--- a/libxml2-config.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-From 572494547b6ab34fc624f9efda0b3b28fcf4a4cd Mon Sep 17 00:00:00 2001
-From: datauwu <209150516+datauwu at users.noreply.github.com>
-Date: Wed, 14 Oct 2026 23:14:40 +0800
-Subject: [PATCH] autotools: fix libxml2 linking
-
-The custom AC_CHECK_LIB success action prevents HAVE_LIBXML2 from
-being defined, even when libxml2 is detected.
-
-Explicitly define HAVE_LIBXML2 on success to restore libxml2
-support and linking.
----
- configure.ac | 4 +++-
- 1 file changed, 3 insertions(+), 1 deletion(-)
-
-diff --git a/configure.ac b/configure.ac
-index 02ca370bcf..b00eed1367 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -585,7 +585,9 @@ if test "x$with_xml2" != "xno"; then
- PKG_CHECK_MODULES(LIBXML2_PC, [libxml-2.0 >= 2.7.3], [
- CPPFLAGS="${CPPFLAGS} ${LIBXML2_PC_CFLAGS}"
- LIBS="${LIBS} ${LIBXML2_PC_LIBS}"
-- AC_CHECK_LIB(xml2,xmlInitParser,[true],AC_MSG_FAILURE(Missing xml2 library))
-+ AC_CHECK_LIB(xml2,xmlInitParser,
-+ [AC_DEFINE([HAVE_LIBXML2], [1], [Define to 1 if you have the 'xml2' library.])],
-+ [AC_MSG_FAILURE([Missing xml2 library])])
- ], [
- AC_CHECK_LIB(xml2,xmlInitParser)
- ])
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libarchive.git/commitdiff/f6795b2d8153596b40cde200533fdd71ae8b494b
More information about the pld-cvs-commit
mailing list