libarchive: 3.7.8 -> 3.8.0 (#409300)

This commit is contained in:
Vladimír Čunát 2025-05-28 11:55:51 +02:00
commit e5439382d7
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA
2 changed files with 13 additions and 33 deletions

View File

@ -1,18 +0,0 @@
diff --git a/configure.ac b/configure.ac
index 0fdfaf06a5..d08611848c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -453,13 +453,8 @@
AC_CHECK_HEADERS([iconv.h],[],[],[#include <stdlib.h>])
if test "x$am_cv_func_iconv" = "xyes"; then
AC_CHECK_HEADERS([localcharset.h])
- am_save_LIBS="$LIBS"
LIBS="${LIBS} ${LIBICONV}"
- if test -n "$LIBICONV"; then
- LIBSREQUIRED="$LIBSREQUIRED${LIBSREQUIRED:+ }iconv"
- fi
AC_CHECK_FUNCS([locale_charset])
- LIBS="${am_save_LIBS}"
if test "x$ac_cv_func_locale_charset" != "xyes"; then
# If locale_charset() is not in libiconv, we have to find libcharset.
AC_CHECK_LIB(charset,locale_charset)

View File

@ -2,6 +2,7 @@
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
acl,
attr,
autoreconfHook,
@ -11,7 +12,6 @@
lzo,
openssl,
pkg-config,
sharutils,
xz,
zlib,
zstd,
@ -33,29 +33,28 @@
assert xarSupport -> libxml2 != null;
stdenv.mkDerivation (finalAttrs: {
pname = "libarchive";
version = "3.7.8";
version = "3.8.0";
src = fetchFromGitHub {
owner = "libarchive";
repo = "libarchive";
rev = "v${finalAttrs.version}";
hash = "sha256-fjE3b9rDHf1Xubpm9guvX6I8a2loYsGHj3epLceueUw=";
hash = "sha256-nL2p2h+U25fhQQjbj16yhxhU8xEEuhNynIx7SNzl6Mo=";
};
patches = [
# The `.pc` file lists `iconv` in `Requires.private` when `-liconv`
# is required, even though common platforms in that situation like
# Darwin dont ship a `.pc` file for their `libiconv`. This isnt
# upstreamed as there are a handful of closed or regressed PRs
# trying to fix it already and it seems upstream added this to deal
# with some nonportable MSYS2 thing or something.
# Remove in next release
#
# See:
# Fixes macOS metadata file handling when reading certain tarballs
# (e.g, bsdtar-produced tar containing a file with xattrs whose name is exactly 99 bytes long)
# <https://github.com/libarchive/libarchive/pull/2636>
#
# * <https://github.com/libarchive/libarchive/issues/1766>
# * <https://github.com/libarchive/libarchive/issues/1819>
# * <https://github.com/Homebrew/homebrew-core/blob/f8e9e8d4f30979dc99146b5877fce76be6d35124/Formula/lib/libarchive.rb#L48-L52>
./fix-pkg-config-iconv.patch
# This also fixes test_copy in the test suite.
(fetchpatch {
name = "reset-header-state-after-mac-metadata.patch";
url = "https://github.com/libarchive/libarchive/commit/5bb36db5e19aecabccec8f351ec22f8c3a8695f0.patch";
hash = "sha256-eNGSunYZ5b0TrkBUtOO7MYGXc+SEn1Sxm8MYyI+4JsQ=";
})
];
outputs = [
@ -109,7 +108,6 @@ stdenv.mkDerivation (finalAttrs: {
zlib
zstd
]
++ lib.optional stdenv.hostPlatform.isUnix sharutils
++ lib.optionals stdenv.hostPlatform.isLinux [
acl
attr