From f9e4e1f8177b534f675fc089c31a9bd4bef2e554 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sat, 13 Sep 2025 15:43:10 +0200 Subject: [PATCH] rsync: fix compilation against gcc15 Tested with: rsync.override { stdenv = gcc15Stdenv; } --- pkgs/applications/networking/sync/rsync/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/applications/networking/sync/rsync/default.nix b/pkgs/applications/networking/sync/rsync/default.nix index c87d1015ef4f..99718696cbec 100644 --- a/pkgs/applications/networking/sync/rsync/default.nix +++ b/pkgs/applications/networking/sync/rsync/default.nix @@ -1,6 +1,7 @@ { lib, stdenv, + fetchpatch, fetchurl, updateAutotoolsGnuConfigScriptsHook, perl, @@ -34,6 +35,11 @@ stdenv.mkDerivation rec { patches = [ # See: ./fix-tests-in-darwin-sandbox.patch + # fix compilation with gcc15 + (fetchpatch { + url = "https://github.com/RsyncProject/rsync/commit/a4b926dcdce96b0f2cc0dc7744e95747b233500a.patch"; + hash = "sha256-UiEQJ+p2gtIDYNJqnxx4qKgItKIZzCpkHnvsgoxBmSE="; + }) ]; nativeBuildInputs = [