Commit 73201199 authored by Sergei Trofimovich's avatar Sergei Trofimovich
Browse files

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
parent 7f90b56e
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -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