cluster-resource-agents: fix uclibc build
authorRoman I Khimov <khimov@altell.ru>
Fri, 23 Apr 2010 09:21:58 +0000 (13:21 +0400)
committerRoman I Khimov <khimov@altell.ru>
Fri, 23 Apr 2010 18:49:06 +0000 (22:49 +0400)
Software stack protection is not available.

Signed-off-by: Roman I Khimov <khimov@altell.ru>
recipes/linux-ha/cluster-resource-agents/kill-stack-protector.patch [new file with mode: 0644]
recipes/linux-ha/cluster-resource-agents_1.0.2.bb

diff --git a/recipes/linux-ha/cluster-resource-agents/kill-stack-protector.patch b/recipes/linux-ha/cluster-resource-agents/kill-stack-protector.patch
new file mode 100644 (file)
index 0000000..d6b0253
--- /dev/null
@@ -0,0 +1,12 @@
+Index: Cluster-Resource-Agents-agents-1.0.2/configure.in
+===================================================================
+--- Cluster-Resource-Agents-agents-1.0.2.orig/configure.in     2010-04-23 12:38:41.000000000 +0400
++++ Cluster-Resource-Agents-agents-1.0.2/configure.in  2010-04-23 12:38:49.000000000 +0400
+@@ -642,7 +642,6 @@
+       # Also remove -Waggregate-return because we use one libnet
+       # call which returns a struct
+         EXTRA_FLAGS="-fgnu89-inline
+-              -fstack-protector-all
+               -Wall
+               -Wbad-function-cast 
+               -Wcast-qual 
index d90ae0f..1871eee 100644 (file)
@@ -2,13 +2,14 @@ DESCRIPTION = "OCF resource agents for use by compatible cluster managers"
 LICENSE = "GPL"
 DEPENDS = "cluster-glue"
 
-PR = "r2"
+PR = "r3"
 
 SRC_URI = " \
        http://hg.linux-ha.org/agents/archive/agents-${PV}.tar.bz2;name=tar \
        file://fix-header-defs-lookup.patch;patch=1 \
        file://disable-doc-build.patch;patch=1 \
        "
+SRC_URI_append_libc-uclibc = " file://kill-stack-protector.patch;patch=1"
 SRC_URI[tar.md5sum] = "b536dea1b1f642bdc3607cb85ea0b89d"
 SRC_URI[tar.sha256sum] = "c5a1ea9a83c578672cd475ab4af5c2e40736669bae0eb70bb9bb6124074e5e5e"