unfs3: fix build on gcc-14 (#389081)

authored by Arne Keller and committed by GitHub d9234043 6b40448a

+27
+27
pkgs/by-name/un/unfs3/package.nix
··· 1 1 { 2 2 fetchFromGitHub, 3 + fetchpatch2, 3 4 lib, 4 5 stdenv, 5 6 flex, ··· 7 8 autoreconfHook, 8 9 pkg-config, 9 10 libtirpc, 11 + versionCheckHook, 12 + nix-update-script, 10 13 }: 11 14 12 15 stdenv.mkDerivation rec { ··· 20 23 hash = "sha256-5iAriIutBhwyZVS7AG2fnkrHOI7pNAKfYv062Cy0WXw="; 21 24 }; 22 25 26 + patches = [ 27 + # Fix implicit declaration warning with GCC 14 28 + (fetchpatch2 { 29 + url = "https://gitlab.alpinelinux.org/alpine/aports/-/raw/152dc14a65a89f253294cc5b4c96cf0d6658711a/main/unfs3/implicit.patch"; 30 + hash = "sha256-zrF87fJhc8mDgIs0vsMoqIHYQPtKWn2XMBSePvHOByA="; 31 + }) 32 + ]; 33 + 23 34 nativeBuildInputs = [ 24 35 flex 25 36 bison ··· 32 43 configureFlags = [ "--disable-shared" ]; 33 44 34 45 doCheck = false; # no test suite 46 + 47 + nativeInstallCheckInputs = [ 48 + versionCheckHook 49 + ]; 50 + versionCheckProgram = "${placeholder "out"}/bin/unfsd"; 51 + versionCheckProgramArg = [ "-h" ]; 52 + doInstallCheck = true; 53 + 54 + passthru = { 55 + updateScript = nix-update-script { 56 + extraArgs = [ 57 + "--version-regex" 58 + "${pname}-(.*)" 59 + ]; 60 + }; 61 + }; 35 62 36 63 meta = { 37 64 description = "User-space NFSv3 file system server";