pkgsi686Linux.libarchive: pull upstream fix for 32-bit systems

Without the change `pkgsi686Linux.libarchive` tests fail as described in
https://github.com/libarchive/libarchive/issues/1968
This commit is contained in:
Sergei Trofimovich 2023-09-24 13:00:40 +01:00
parent 312efd0e9c
commit 81e8caab85

View File

@ -1,6 +1,7 @@
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, acl
, attr
, autoreconfHook
@ -36,6 +37,15 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-p2JgJ/rvqaQ6yyXSh+ehScUH565ud5bQncl+lOnsWfc=";
};
patches = [
# Pull fix for test failure on 32-bit systems:
(fetchpatch {
name = "32-bit-tests-fix.patch";
url = "https://github.com/libarchive/libarchive/commit/3bd918d92f8c34ba12de9c6604d96f9e262a59fc.patch";
hash = "sha256-RM3xFM6S2DkM5DJ0kAba8eLzEXuY5/7AaU06maHJ6rM=";
})
];
outputs = [ "out" "lib" "dev" ];
postPatch = let