diff --git a/Don-t-build-with-ansi-by-default.patch b/Don-t-build-with-ansi-by-default.patch new file mode 100644 index 0000000000000000000000000000000000000000..baec450f3140fb8756c4a1084ed57c0ccfc74379 --- /dev/null +++ b/Don-t-build-with-ansi-by-default.patch @@ -0,0 +1,28 @@ +From 09560af2a5cb3db08fe428906c0af76bf09594f0 Mon Sep 17 00:00:00 2001 +From: Christine Caulfield +Date: Mon, 29 Jan 2024 08:41:23 +0000 +Subject: [PATCH] Don't build with -ansi by default + +-ansi restricts the code to C90 standard which can break some +included headers (specifically seen on freebsd-devel), so don't +make it the default. +--- + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index 67b9ddd3..e05de3a0 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -186,7 +186,7 @@ AC_SUBST(PKGNAME) + + AC_ARG_ENABLE([ansi], + [ --enable-ansi force GCC to compile to ANSI/ANSI standard for older compilers. +- [default=yes]]) ++ [default=no]]) + + AC_ARG_ENABLE([fatal-warnings], + [ --enable-fatal-warnings very pedantic and fatal warnings for gcc +-- +2.25.1 + diff --git a/resource-agents.spec b/resource-agents.spec index 4b0e05550d5ceb68a5588d5e522ee76f7cfc60c2..a1dbce2180cef1df2793438382d37ecc1d776595 100644 --- a/resource-agents.spec +++ b/resource-agents.spec @@ -1,7 +1,7 @@ Name: resource-agents Summary: Open Source HA Reusable Cluster Resource Scripts Version: 4.13.0 -Release: 6 +Release: 7 License: GPLv2+ and LGPLv2+ URL: https://github.com/ClusterLabs/resource-agents Source0: https://github.com/ClusterLabs/resource-agents/archive/v%{version}.tar.gz @@ -11,6 +11,7 @@ Patch0002: fix-loopback-handling.patch Patch0003: fix-handler-out-of-scope-leak.patch Patch0004: fix-uninitialized-value-covscan-error.patch Patch0005: Avoid-false-positive-for-VG-activation.patch +Patch0006: Don-t-build-with-ansi-by-default.patch Obsoletes: heartbeat-resources <= %{version} Provides: heartbeat-resources = %{version} BuildRequires: automake autoconf pkgconfig gcc perl-interpreter perl-generators python3-devel @@ -108,6 +109,9 @@ export CFLAGS="$(echo '%{optflags}')" %{_mandir}/man8/{ocf-tester.8*,ldirectord.8*} %changelog +* Fri Feb 23 2024 bixiaoyan - 4.13.0-7 +- Don't build with -ansi by default + * Fri Feb 23 2024 bixiaoyan - 4.13.0-6 - LVM-activate: Avoid false positive for VG activation