Skip to contentSkip to conversation

resource-agents: Fix build error with autoconf-2.73.

PATCH Maohui Lei (Fujitsu) 1 participant 1 message Sep 11, 2023 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

ping

Quoted 94 lines

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of leimaohui
Sent: Tuesday, August 29, 2023 11:44 AM
To: [email protected]
Cc: Lei, Maohui <[email protected]>
Subject: [yocto] [meta-cgl][PATCH] resource-agents: Fix build error with autoconf-2.73.

From: Lei Maohui <[email protected]>

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

---
 .../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/autoco nf-2.73.patch

diff --git a/meta-cgl-common/recipes-cgl/cluster-resource-agents/resource-agents/autoc onf-2.73.patch b/meta-cgl-common/recipes-cgl/cluster-resource-agents/resource-agents/autoc onf-2.73.patch
new file mode 100644
index 0000000..af188d2

meta-cgl-common/recipes-cgl/cluster-resource-agents/resource-agent new file +2 -0
+++ s/autoconf-2.73.patch
@@ -0,0 +1,30 @@
+From 749d10d4c61a84d8ba506f178daededac8062c3f Mon Sep 17 00:00:00

2001

meta-cgl-common/recipes-cgl/cluster-resource-agents/resource-agent new file +7 -0
+From: Lei Maohui <[email protected]>
+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

meta-cgl-common/recipes-cgl/cluster-resource-agents/resource-agent new file +21 -0
+
+Upstream-Status: Inappropriate
+Signed-off-by: Lei Maohui <[email protected]>
+---
+ 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-agent +++ s_4.5.0.bb

meta-cgl-common/recipes-cgl/cluster-resource-agents/resource-agent new file +0 -0
@@ -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"
--
2.25.1