From c4aa10367bbb99ec72fd9e61ab27e083a0e03f7c Mon Sep 17 00:00:00 2001 From: Roman I Khimov Date: Wed, 7 Apr 2010 12:39:37 +0400 Subject: cluster-resource-agents: fix headers define extraction Header define extraction routine tries to execute test binary which may or may not work depending on target architecture. Redo it using preprocessor only. Fixes wrong OCF_ROOT_DIR. Signed-off-by: Roman I Khimov --- .../cluster-resource-agents/fix-header-defs-lookup.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 recipes/linux-ha/cluster-resource-agents/fix-header-defs-lookup.patch (limited to 'recipes/linux-ha/cluster-resource-agents') diff --git a/recipes/linux-ha/cluster-resource-agents/fix-header-defs-lookup.patch b/recipes/linux-ha/cluster-resource-agents/fix-header-defs-lookup.patch new file mode 100644 index 0000000000..ebd13de973 --- /dev/null +++ b/recipes/linux-ha/cluster-resource-agents/fix-header-defs-lookup.patch @@ -0,0 +1,16 @@ +Index: Cluster-Resource-Agents-agents-1.0.2/configure.in +=================================================================== +--- Cluster-Resource-Agents-agents-1.0.2.orig/configure.in 2010-04-06 12:51:22.000000000 +0400 ++++ Cluster-Resource-Agents-agents-1.0.2/configure.in 2010-04-06 12:54:10.000000000 +0400 +@@ -91,9 +91,8 @@ + Cfile=/tmp/extract_define.$2.${$} + printf "#include \n" > ${Cfile}.c + printf "#include <%s>\n" $1 >> ${Cfile}.c +- printf "int main(int argc, char **argv) { printf(\"%%s\", %s); return 0; }\n" $2 >> ${Cfile}.c +- $CC $CFLAGS ${Cfile}.c -o ${Cfile} +- value=`${Cfile}` ++ printf "\"%s\":%s\n" $2 $2 >> ${Cfile}.c ++ value=`$CC $CFLAGS -E ${Cfile}.c | grep \"$2\" | cut -f 2 -d ':'` + AC_MSG_RESULT($value) + printf $value + rm -f ${Cfile}.c ${Cfile} -- cgit v1.2.3