From ce20ef1ea9b30e9fa19ed8b019953a677d5a8add Mon Sep 17 00:00:00 2001 From: zowoq <59103226+zowoq@users.noreply.github.com> Date: Sun, 28 Sep 2025 12:04:39 +1000 Subject: [PATCH] zfs_2_3: fix building with llvm 21 --- pkgs/os-specific/linux/zfs/2_3.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/os-specific/linux/zfs/2_3.nix b/pkgs/os-specific/linux/zfs/2_3.nix index 7c175ba48a46..224070a720d1 100644 --- a/pkgs/os-specific/linux/zfs/2_3.nix +++ b/pkgs/os-specific/linux/zfs/2_3.nix @@ -3,6 +3,7 @@ lib, nixosTests, stdenv, + fetchpatch, ... }@args: @@ -17,6 +18,14 @@ callPackage ./generic.nix args { # this package should point to the latest release. version = "2.3.4"; + extraPatches = [ + (fetchpatch { + name = "fix_llvm-21_-wuninitialized-const-pointer_warning.patch"; + url = "https://github.com/openzfs/zfs/commit/9acedbaceec362d08a33ebfe7c4c7efcee81d094.patch"; + hash = "sha256-bjMRuT8gsMuwCnrS5PfG9vYthRvcFaWCCfQbCTVZdpw="; + }) + ]; + tests = { inherit (nixosTests.zfs) series_2_3; }