diff mbox series

[meta-cgl] resource-agents: Fix build error with autoconf-2.73.

Message ID 20230829034347.152985-1-leimaohui@fujitsu.com
State New
Headers show
Series [meta-cgl] resource-agents: Fix build error with autoconf-2.73. | expand

Commit Message

Maohui Lei (Fujitsu) Aug. 29, 2023, 3:43 a.m. UTC
From: Lei Maohui <leimaohui@fujitsu.com>

resource-agents is built failed after poky upgraded autoconf to 2.73.

Signed-off-by: Lei Maohui <leimaohui@fujitsu.com>
---
 .../resource-agents/autoconf-2.73.patch       | 30 +++++++++++++++++++
 .../resource-agents_4.5.0.bb                  |  1 +
 2 files changed, 31 insertions(+)
 create mode 100644 meta-cgl-common/recipes-cgl/cluster-resource-agents/resource-agents/autoconf-2.73.patch
diff mbox series

Patch

diff --git a/meta-cgl-common/recipes-cgl/cluster-resource-agents/resource-agents/autoconf-2.73.patch b/meta-cgl-common/recipes-cgl/cluster-resource-agents/resource-agents/autoconf-2.73.patch
new file mode 100644
index 0000000..af188d2
--- /dev/null
+++ b/meta-cgl-common/recipes-cgl/cluster-resource-agents/resource-agents/autoconf-2.73.patch
@@ -0,0 +1,30 @@ 
+From 749d10d4c61a84d8ba506f178daededac8062c3f Mon Sep 17 00:00:00 2001
+From: Lei Maohui <leimaohui@fujitsu.com>
+Date: Wed, 16 Aug 2023 02:43:08 +0000
+Subject: [PATCH] autoconf-2.7:
+
+To fix build error with autoconf-2.7:
+
+| configure: error: in '/home/aarch64-test/tmp/work/aarch64-ubinux-linux/resource-agents/4.5.0-r0/build':
+| configure: error: C preprocessor "aarch64-ubinux-linux-gcc -E --sysroot=/home/aarch64-test/tmp/work/aarch64-ubinux-linux/resource-agents/4.5.0-r0/recipe-sysroot   -fstack-protector-strong  -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security" fails sanity check
+
+Upstream-Status: Inappropriate
+Signed-off-by: Lei Maohui <leimaohui@fujitsu.com>
+---
+ configure.ac | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index d682ad780..84444a525 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -883,7 +883,6 @@ else
+		-Wno-strict-aliasing
+		-Wpointer-arith
+		-Wstrict-prototypes
+-		-Wunsigned-char
+		-Wwrite-strings"
+
+ # Additional warnings it might be nice to enable one day
+--
+2.34.1
diff --git a/meta-cgl-common/recipes-cgl/cluster-resource-agents/resource-agents_4.5.0.bb b/meta-cgl-common/recipes-cgl/cluster-resource-agents/resource-agents_4.5.0.bb
index 764a1d2..357669a 100644
--- a/meta-cgl-common/recipes-cgl/cluster-resource-agents/resource-agents_4.5.0.bb
+++ b/meta-cgl-common/recipes-cgl/cluster-resource-agents/resource-agents_4.5.0.bb
@@ -21,6 +21,7 @@  SRC_URI = "git://github.com/ClusterLabs/resource-agents;branch=main;protocol=htt
            file://fix-install-sh-not-found.patch \
            file://0001-ldirectord.service.in-use-run-instead-of-var-run.patch \
            file://0001-ldirectord.service.in-set-correct-path-of-rm-command.patch \
+           file://autoconf-2.73.patch \
           "
 
 SRCREV = "fee181320547365d7f8c88cca2b32801412b933d"