git.iko.soy/typeable/nixpkgs
on master help sign in
rsync: Work around upstream cross-compilation issue

It should be fixed by the next release: * https://github.com/WayneD/rsync/commit/b7fab6f285ff0ff3816b109a8c3131b6ded0b484 Already a part of the updates for 3.2.4 * https://download.samba.org/pub/rsync/NEWS#3.2.4

commit49edde0905978bf3420498663c05ab4571da90a7 authorSamuel Dionne-Riel <samuel@dionne-riel.com> dateTue 20 Oct 2020, 14:27 (6 years ago) parent5265d49
1 file changed+9−1
pkgs/applications/networking/sync/rsync/default.nix+9−1
pkgs/applications/networking/sync/rsync/default.nix+9−1
@@ -35,7 +35,15 @@ stdenv.mkDerivation rec {
3535 ++ stdenv.lib.optional enableXXHash xxHash;
3636 nativeBuildInputs = [perl];
3737
38− configureFlags = ["--with-nobody-group=nogroup"];
38+ configureFlags = ["--with-nobody-group=nogroup"]
39+ # Work around issue with cross-compilation:
40+ # configure.sh: error: cannot run test program while cross compiling
41+ # Remove once 3.2.4 or more recent is released.
42+ # The following PR should fix the cross-compilation issue.
43+ # Test using `nix-build -A pkgsCross.aarch64-multiplatform.rsync`.
44+ # https://github.com/WayneD/rsync/commit/b7fab6f285ff0ff3816b109a8c3131b6ded0b484
45+ ++ stdenv.lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) "--enable-simd=no"
46+ ;
3947
4048 passthru.tests = { inherit (nixosTests) rsyncd; };
4149