ocf-resource-agents: fix build against autoconf-2.72

Without the change build fails in` master` as https://hydra.nixos.org/build/247269225:

    checking whether gcc supports "-Wunsigned-char"... checking how to run the C preprocessor... gcc -E
    configure: error: in '/build/source':
    configure: error: C preprocessor "gcc -E" fails sanity check
    See 'config.log' for more details
This commit is contained in:
Sergei Trofimovich 2024-02-07 19:36:22 +00:00
parent 7f90b56ea1
commit 7320119990

View File

@ -5,6 +5,7 @@
, runCommand
, lndir
, fetchFromGitHub
, fetchpatch
, autoreconfHook
, pkg-config
, python3
@ -32,6 +33,16 @@ let
sha256 = "0haryi3yrszdfpqnkfnppxj1yiy6ipah6m80snvayc7v0ss0wnir";
};
patches = [
# autoconf-2.72 upstream fix:
# https://github.com/ClusterLabs/resource-agents/pull/1908
(fetchpatch {
name = "autoconf-2.72.patch";
url = "https://github.com/ClusterLabs/resource-agents/commit/bac658711a61fd704e792e2a0a45a2137213c442.patch";
hash = "sha256-Xq7W8pMRmFZmkqb2430bY5zdmVTrUrob6GwGiN6/bKY=";
})
];
nativeBuildInputs = [
autoreconfHook
pkg-config