summaryrefslogtreecommitdiffstats
path: root/archive-libs
diff options
context:
space:
mode:
authorFlorian Franzmann2022-12-10 22:00:59 +0100
committerFlorian Franzmann2022-12-10 22:03:19 +0100
commitaad30e86315e0b94ae1ecf68f909682aad3ea071 (patch)
tree335440f3c06a8c32f57aaebdc0a0880bce3e445e /archive-libs
parentb6fb7d982d1e14f005e69b0427a589d266f84aef (diff)
Revert "archive-libs/libarchive: version 3.6.2"
This reverts commit 5672c0e11cfb684faae15842e6e74e437c9b55bc. .pc file generation seems to be broken, doesn't model iconv properly.
Diffstat (limited to 'archive-libs')
-rwxr-xr-xarchive-libs/libarchive/DETAILS4
-rw-r--r--archive-libs/libarchive/HISTORY4
-rw-r--r--archive-libs/libarchive/patches/0001-libarchive-Do-not-include-sys-mount.h.patch41
3 files changed, 43 insertions, 6 deletions
diff --git a/archive-libs/libarchive/DETAILS b/archive-libs/libarchive/DETAILS
index 9d600fb0a1..53e8df26bc 100755
--- a/archive-libs/libarchive/DETAILS
+++ b/archive-libs/libarchive/DETAILS
@@ -1,11 +1,11 @@
SPELL=libarchive
- VERSION=3.6.2
+ VERSION=3.6.1
SECURITY_PATCH=10
SOURCE=$SPELL-$VERSION.tar.gz
SOURCE_DIRECTORY=$BUILD_DIRECTORY/$SPELL-$VERSION
WEB_SITE=http://www.libarchive.org
SOURCE_URL[0]=https://github.com/libarchive/libarchive/releases/download/v${VERSION}/${SOURCE}
- SOURCE_HASH=sha512:24e476465054a29a2d48adf3c197a171b5361fa5038729a1f14d578c6701424de4e5dd6a2b20a6b697969ab43bdd8afc1585f8de0465c266f455d7eaa19e5048
+ SOURCE_HASH=sha512:58f7ac0c52116f73326a07dec10ff232be33b318862078785dc39f1fb2f8773b5194eabfa14764bb51ce6a5a1aa8820526e7f4c76087a6f4fcbe7789a22275b4
ENTERED=20080629
LICENSE[0]=BSD
KEYWORDS="archive"
diff --git a/archive-libs/libarchive/HISTORY b/archive-libs/libarchive/HISTORY
index df37d17cb7..db90fef40c 100644
--- a/archive-libs/libarchive/HISTORY
+++ b/archive-libs/libarchive/HISTORY
@@ -1,7 +1,3 @@
-2022-12-10 Florian Franzmann <bwlf@bandrate.org>
- * DETAILS: version 3.6.2
- * patches/0001-libarchive-Do-not-include-sys-mount.h.patch: removed
-
2022-08-31 Pavel Vinogradov <public@sourcemage.org>
* PRE_BUILD, patches/0001-libarchive-Do-not-include-sys-mount.h.patch:
added fix to build with glibc 2.36
diff --git a/archive-libs/libarchive/patches/0001-libarchive-Do-not-include-sys-mount.h.patch b/archive-libs/libarchive/patches/0001-libarchive-Do-not-include-sys-mount.h.patch
new file mode 100644
index 0000000000..7c88ca1b1c
--- /dev/null
+++ b/archive-libs/libarchive/patches/0001-libarchive-Do-not-include-sys-mount.h.patch
@@ -0,0 +1,41 @@
+From a2f68263a1da5ad227bcb9cd8fa91b93c8b6c99f Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+Date: Mon, 25 Jul 2022 10:56:53 -0700
+Subject: [PATCH] libarchive: Do not include sys/mount.h when linux/fs.h is
+ present
+
+These headers are in conflict and only one is needed by
+archive_read_disk_posix.c therefore include linux/fs.h if it exists
+otherwise include sys/mount.h
+
+It also helps compiling with glibc 2.36
+where sys/mount.h conflicts with linux/mount.h see [1]
+
+[1] https://sourceware.org/glibc/wiki/Release/2.36
+---
+ libarchive/archive_read_disk_posix.c | 5 ++---
+ 1 file changed, 2 insertions(+), 3 deletions(-)
+
+diff --git a/libarchive/archive_read_disk_posix.c b/libarchive/archive_read_disk_posix.c
+index 2b39e672b..a96008db7 100644
+--- a/libarchive/archive_read_disk_posix.c
++++ b/libarchive/archive_read_disk_posix.c
+@@ -34,9 +34,6 @@ __FBSDID("$FreeBSD$");
+ #ifdef HAVE_SYS_PARAM_H
+ #include <sys/param.h>
+ #endif
+-#ifdef HAVE_SYS_MOUNT_H
+-#include <sys/mount.h>
+-#endif
+ #ifdef HAVE_SYS_STAT_H
+ #include <sys/stat.h>
+ #endif
+@@ -54,6 +51,8 @@ __FBSDID("$FreeBSD$");
+ #endif
+ #ifdef HAVE_LINUX_FS_H
+ #include <linux/fs.h>
++#elif HAVE_SYS_MOUNT_H
++#include <sys/mount.h>
+ #endif
+ /*
+ * Some Linux distributions have both linux/ext2_fs.h and ext2fs/ext2_fs.h.