From ccabfb6bc5433705a596273ce8102a2d734107e7 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Thu, 21 Aug 2025 06:35:23 +0100 Subject: [PATCH] libarchive: unconditionally disable bsdcpio_test patrs on all linux targets Without the change the tests started failing on filesystems with 64-bit inode values (like `btrfs` with long age which saw 4B file creations/reletions) as: cpio/test/test_basic.c:65: Contents don't match Description: Expected: bsdcpio: file: large inode number truncated: Numerical result out of range bsdcpio: linkfile: large inode number truncated: Numerical result out of range bsdcpio: symlink: large inode number truncated: Numerical result out of range bsdcpio: file2: large inode number truncated: Numerical result out of range bsdcpio: dir: large inode number truncated: Numerical result out of range (cherry picked from commit 96c07856e25db8be0c68933c0660a26370554611) --- pkgs/by-name/li/libarchive/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/li/libarchive/package.nix b/pkgs/by-name/li/libarchive/package.nix index 8ca5d1e49a5b..032391a2442a 100644 --- a/pkgs/by-name/li/libarchive/package.nix +++ b/pkgs/by-name/li/libarchive/package.nix @@ -59,9 +59,9 @@ stdenv.mkDerivation (finalAttrs: { # access-time-related tests flakey on some systems "cpio/test/test_option_a.c" "cpio/test/test_option_t.c" - ] - ++ lib.optionals (stdenv.hostPlatform.isAarch64 && stdenv.hostPlatform.isLinux) [ - # only on some aarch64-linux systems? + # fails tests on filesystems with 64-bit inode values: + # FAIL: bsdcpio_test + # bsdcpio: linkfile: large inode number truncated: Numerical result out of range "cpio/test/test_basic.c" "cpio/test/test_format_newc.c" ];