From 1621c3b8701f9480464f4c635af0decee527deab Mon Sep 17 00:00:00 2001 From: Peter Waller
Date: Sat, 30 Nov 2024 12:53:58 +0000 Subject: [PATCH] rsync: skip runtime ipv6 configure check Rsync's configure phase does a runtime check for ipv6 availability unless explicitly enabled/disabled, leading to a diverged build between machines if one machine has `ipv6.disable=1` kernel commandline on linux. Skip the check by always enabling it. Ref: RsyncProject/rsync#675 Fix: #360152 Signed-off-by: Peter Waller
--- pkgs/applications/networking/sync/rsync/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/applications/networking/sync/rsync/default.nix b/pkgs/applications/networking/sync/rsync/default.nix index 32236f36a9b9..4c38daf0d779 100644 --- a/pkgs/applications/networking/sync/rsync/default.nix +++ b/pkgs/applications/networking/sync/rsync/default.nix @@ -48,6 +48,9 @@ stdenv.mkDerivation rec { (lib.enableFeature enableOpenSSL "openssl") (lib.enableFeature enableXXHash "xxhash") (lib.enableFeature enableZstd "zstd") + # Feature detection does a runtime check which varies according to ipv6 + # availability, so force it on to make reproducible, see #360152. + (lib.enableFeature true "ipv6") "--with-nobody-group=nogroup" # disable the included zlib explicitly as it otherwise still compiles and