Skip to content

Commit

Permalink
rsync: skip runtime ipv6 configure check
Browse files Browse the repository at this point in the history
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: NixOS#360152
Signed-off-by: Peter Waller <[email protected]>
  • Loading branch information
pwaller committed Nov 30, 2024
1 parent eba4fcf commit 1621c3b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkgs/applications/networking/sync/rsync/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1621c3b

Please sign in to comment.