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 { 2 fetchFromGitHub, 3 lib, 4 stdenv, 5 flex, ··· 7 autoreconfHook, 8 pkg-config, 9 libtirpc, 10 }: 11 12 stdenv.mkDerivation rec { ··· 20 hash = "sha256-5iAriIutBhwyZVS7AG2fnkrHOI7pNAKfYv062Cy0WXw="; 21 }; 22 23 nativeBuildInputs = [ 24 flex 25 bison ··· 32 configureFlags = [ "--disable-shared" ]; 33 34 doCheck = false; # no test suite 35 36 meta = { 37 description = "User-space NFSv3 file system server";
··· 1 { 2 fetchFromGitHub, 3 + fetchpatch2, 4 lib, 5 stdenv, 6 flex, ··· 8 autoreconfHook, 9 pkg-config, 10 libtirpc, 11 + versionCheckHook, 12 + nix-update-script, 13 }: 14 15 stdenv.mkDerivation rec { ··· 23 hash = "sha256-5iAriIutBhwyZVS7AG2fnkrHOI7pNAKfYv062Cy0WXw="; 24 }; 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 + 34 nativeBuildInputs = [ 35 flex 36 bison ··· 43 configureFlags = [ "--disable-shared" ]; 44 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 + }; 62 63 meta = { 64 description = "User-space NFSv3 file system server";