rsync: fix pkgsStatic itemize test failure (#537498)

This commit is contained in:
Ryan Burns 2026-07-03 19:04:56 +00:00 committed by GitHub
commit a263060fea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -85,6 +85,14 @@ stdenv.mkDerivation (finalAttrs: {
++ lib.optionals (stdenv.hostPlatform.isMusl && stdenv.hostPlatform.isx86_64) [
# fix `multiversioning needs 'ifunc' which is not supported on this target` error
"--disable-roll-simd"
]
# Linux can hard-link symlinks; configure defaults this check to "no" when
# cross-compiling (e.g. pkgsStatic) because it cannot run the probe.
# That leaves hardlink_symlinks false while itemize still reports identical
# --copy-dest/--link-dest symlinks with blank attribute flags, so
# testsuite/itemize.test fails (https://github.com/NixOS/nixpkgs/issues/537437).
++ lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform != stdenv.buildPlatform) [
"rsync_cv_can_hardlink_symlink=yes"
];
enableParallelBuilding = true;