Skip to content

Commit

Permalink
rsync: fix missing ipv6 support (again)
Browse files Browse the repository at this point in the history
The patch was removed in 21604e8 despite not being included
in rsync v3.3.0, which broke IPv6 on at least darwin again.
  • Loading branch information
bobrik committed Jun 23, 2024
1 parent 2096642 commit df5bf2f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff -rup rsync-3.2.7/configure.sh rsync-3.2.7-fixed/configure.sh
--- rsync-3.2.7/configure.sh 2022-10-20 17:57:22
+++ rsync-3.2.7-fixed/configure.sh 2024-01-01 19:51:58
@@ -7706,7 +7706,7 @@ else $as_nop
#include <stdlib.h>
#include <sys/types.h>
#include <sys/socket.h>
-main()
+int main()
{
if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
exit(1);
5 changes: 5 additions & 0 deletions pkgs/applications/networking/sync/rsync/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ stdenv.mkDerivation rec {

nativeBuildInputs = [ updateAutotoolsGnuConfigScriptsHook perl ];

patches = [
# https://github.com/WayneD/rsync/pull/558
./configure.ac-fix-failing-IPv6-check.patch
];

buildInputs = [ libiconv zlib popt ]
++ lib.optional enableACLs acl
++ lib.optional enableZstd zstd
Expand Down

0 comments on commit df5bf2f

Please sign in to comment.