From feee8a05b22568f6fc5de8622af1779f9bdb9ba2 Mon Sep 17 00:00:00 2001 From: Oyvind Albrigtsen Date: Wed, 10 Jan 2024 15:00:25 +0100 Subject: [PATCH] - configure: fix "C preprocessor "gcc -E" fails sanity check" error with autoconf 2.72+ Resolves: rhbz#2256836 --- ...igure-fix-sanity-check-autoconf-2.72.patch | 22 +++++++++++++++++++ resource-agents.spec | 9 +++++++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 bz2256836-configure-fix-sanity-check-autoconf-2.72.patch diff --git a/bz2256836-configure-fix-sanity-check-autoconf-2.72.patch b/bz2256836-configure-fix-sanity-check-autoconf-2.72.patch new file mode 100644 index 0000000..b924184 --- /dev/null +++ b/bz2256836-configure-fix-sanity-check-autoconf-2.72.patch @@ -0,0 +1,22 @@ +From a97a00c37d8a15ee3a8d11ac00281626f55790b3 Mon Sep 17 00:00:00 2001 +From: Oyvind Albrigtsen +Date: Mon, 8 Jan 2024 15:07:19 +0100 +Subject: [PATCH] configure: fix "C preprocessor "gcc -E" fails sanity check" + error caused by autoconf 2.72 + +--- + configure.ac | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/configure.ac b/configure.ac +index 74766899b..67b9ddd35 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -81,6 +81,7 @@ fi + AC_PROG_CC dnl Can force other with environment variable "CC". + AM_PROG_CC_C_O + AC_PROG_CC_STDC ++AC_PROG_CPP + AC_PROG_AWK + AC_PROG_LN_S + AC_PROG_INSTALL diff --git a/resource-agents.spec b/resource-agents.spec index 19be43e..ca7aa3c 100644 --- a/resource-agents.spec +++ b/resource-agents.spec @@ -52,10 +52,11 @@ Name: resource-agents Summary: Open Source HA Reusable Cluster Resource Scripts Version: 4.13.0 -Release: 1%{?rcver:%{rcver}}%{?numcomm:.%{numcomm}}%{?alphatag:.%{alphatag}}%{?dirty:.%{dirty}}%{?dist} +Release: 2%{?rcver:%{rcver}}%{?numcomm:.%{numcomm}}%{?alphatag:.%{alphatag}}%{?dirty:.%{dirty}}%{?dist} License: GPL-2.0-or-later AND LGPL-2.1-or-later URL: https://github.com/ClusterLabs/resource-agents Source0: %{upstream_prefix}-%{upstream_version}.tar.gz +Patch0: bz2256836-configure-fix-sanity-check-autoconf-2.72.patch Obsoletes: heartbeat-resources <= %{version} Provides: heartbeat-resources = %{version} @@ -389,6 +390,12 @@ ccs_update_schema > /dev/null 2>&1 ||: %endif %changelog +* Wed Jan 10 2024 Oyvind Albrigtsen - 4.13.0-2 +- configure: fix "C preprocessor "gcc -E" fails sanity check" error + with autoconf 2.72+ + + Resolves: rhbz#2256836 + * Wed Oct 11 2023 Oyvind Albrigtsen - 4.13.0-1 - Rebase to resource-agents 4.13.0 upstream release.