From a2b133d6a751ffa198689b8f1bcd3e52099ae39a Mon Sep 17 00:00:00 2001 From: Marek 'marx' Grac Date: Mon, 17 Feb 2014 17:10:29 +0100 Subject: [PATCH] Rebuild ./configure from autoconf --- 0002-autoconf_rebuild.patch | 441 ++++++++++++++++++++++++++++++++++++ fence-agents.spec | 2 + 2 files changed, 443 insertions(+) create mode 100644 0002-autoconf_rebuild.patch diff --git a/0002-autoconf_rebuild.patch b/0002-autoconf_rebuild.patch new file mode 100644 index 0000000..7994a60 --- /dev/null +++ b/0002-autoconf_rebuild.patch @@ -0,0 +1,441 @@ +diff -urN fence-agents-4.0.7.orig/configure fence-agents-4.0.7/configure +--- fence-agents-4.0.7.orig/configure 2014-02-17 16:25:34.000000000 +0100 ++++ fence-agents-4.0.7/configure 2014-02-17 17:03:10.000000000 +0100 +@@ -1,6 +1,6 @@ + #! /bin/sh + # Guess values for system-dependent variables and create Makefiles. +-# Generated by GNU Autoconf 2.68 for fence-agents 4.0.7. ++# Generated by GNU Autoconf 2.68 for fence-agents 4.0.7.1. + # + # Report bugs to . + # +@@ -570,8 +570,8 @@ + # Identity of this package. + PACKAGE_NAME='fence-agents' + PACKAGE_TARNAME='fence-agents' +-PACKAGE_VERSION='4.0.7' +-PACKAGE_STRING='fence-agents 4.0.7' ++PACKAGE_VERSION='4.0.7.1' ++PACKAGE_STRING='fence-agents 4.0.7.1' + PACKAGE_BUGREPORT='linux-cluster@redhat.com' + PACKAGE_URL='' + +@@ -629,13 +629,6 @@ + AMTTOOL_PATH + IPMITOOL_PATH + LIBOBJS +-nspr_LIBS +-nspr_CFLAGS +-nss_LIBS +-nss_CFLAGS +-PKG_CONFIG_LIBDIR +-PKG_CONFIG_PATH +-PKG_CONFIG + CXXCPP + am__fastdepCXX_FALSE + am__fastdepCXX_TRUE +@@ -781,14 +774,7 @@ + CXX + CXXFLAGS + CCC +-CXXCPP +-PKG_CONFIG +-PKG_CONFIG_PATH +-PKG_CONFIG_LIBDIR +-nss_CFLAGS +-nss_LIBS +-nspr_CFLAGS +-nspr_LIBS' ++CXXCPP' + + + # Initialize some variables set by options. +@@ -1331,7 +1317,7 @@ + # Omit some internal or obsolete options to make the list less imposing. + # This message is too long to be a string in the A/UX 3.1 sh. + cat <<_ACEOF +-\`configure' configures fence-agents 4.0.7 to adapt to many kinds of systems. ++\`configure' configures fence-agents 4.0.7.1 to adapt to many kinds of systems. + + Usage: $0 [OPTION]... [VAR=VALUE]... + +@@ -1401,7 +1387,7 @@ + + if test -n "$ac_init_help"; then + case $ac_init_help in +- short | recursive ) echo "Configuration of fence-agents 4.0.7:";; ++ short | recursive ) echo "Configuration of fence-agents 4.0.7.1:";; + esac + cat <<\_ACEOF + +@@ -1449,15 +1435,6 @@ + CXX C++ compiler command + CXXFLAGS C++ compiler flags + CXXCPP C++ preprocessor +- PKG_CONFIG path to pkg-config utility +- PKG_CONFIG_PATH +- directories to add to pkg-config's search path +- PKG_CONFIG_LIBDIR +- path overriding pkg-config's built-in search path +- nss_CFLAGS C compiler flags for nss, overriding pkg-config +- nss_LIBS linker flags for nss, overriding pkg-config +- nspr_CFLAGS C compiler flags for nspr, overriding pkg-config +- nspr_LIBS linker flags for nspr, overriding pkg-config + + Use these variables to override the choices made by `configure' or to help + it to find libraries and programs with nonstandard names/locations. +@@ -1525,7 +1502,7 @@ + test -n "$ac_init_help" && exit $ac_status + if $ac_init_version; then + cat <<\_ACEOF +-fence-agents configure 4.0.7 ++fence-agents configure 4.0.7.1 + generated by GNU Autoconf 2.68 + + Copyright (C) 2010 Free Software Foundation, Inc. +@@ -2122,7 +2099,7 @@ + This file contains any messages produced by compilers while + running configure, to aid debugging if configure makes a mistake. + +-It was created by fence-agents $as_me 4.0.7, which was ++It was created by fence-agents $as_me 4.0.7.1, which was + generated by GNU Autoconf 2.68. Invocation command line was + + $ $0 $@ +@@ -2938,7 +2915,7 @@ + + # Define the identity of the package. + PACKAGE='fence-agents' +- VERSION='4.0.7' ++ VERSION='4.0.7.1' + + + cat >>confdefs.h <<_ACEOF +@@ -16182,309 +16159,6 @@ + LIBS=$ac_check_lib_save_LIBS + } + +-# external libs +- +- +- +- +- +- +-if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then +- if test -n "$ac_tool_prefix"; then +- # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. +-set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_path_PKG_CONFIG+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- case $PKG_CONFIG in +- [\\/]* | ?:[\\/]*) +- ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. +- ;; +- *) +- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then +- ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +- ;; +-esac +-fi +-PKG_CONFIG=$ac_cv_path_PKG_CONFIG +-if test -n "$PKG_CONFIG"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 +-$as_echo "$PKG_CONFIG" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- +-fi +-if test -z "$ac_cv_path_PKG_CONFIG"; then +- ac_pt_PKG_CONFIG=$PKG_CONFIG +- # Extract the first word of "pkg-config", so it can be a program name with args. +-set dummy pkg-config; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- case $ac_pt_PKG_CONFIG in +- [\\/]* | ?:[\\/]*) +- ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. +- ;; +- *) +- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then +- ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +- ;; +-esac +-fi +-ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG +-if test -n "$ac_pt_PKG_CONFIG"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 +-$as_echo "$ac_pt_PKG_CONFIG" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- if test "x$ac_pt_PKG_CONFIG" = x; then +- PKG_CONFIG="" +- else +- case $cross_compiling:$ac_tool_warned in +-yes:) +-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +-ac_tool_warned=yes ;; +-esac +- PKG_CONFIG=$ac_pt_PKG_CONFIG +- fi +-else +- PKG_CONFIG="$ac_cv_path_PKG_CONFIG" +-fi +- +-fi +-if test -n "$PKG_CONFIG"; then +- _pkg_min_version=0.9.0 +- { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 +-$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } +- if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +-$as_echo "yes" >&6; } +- else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +- PKG_CONFIG="" +- fi +-fi +- +-pkg_failed=no +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss" >&5 +-$as_echo_n "checking for nss... " >&6; } +- +-if test -n "$nss_CFLAGS"; then +- pkg_cv_nss_CFLAGS="$nss_CFLAGS" +- elif test -n "$PKG_CONFIG"; then +- if test -n "$PKG_CONFIG" && \ +- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5 +- ($PKG_CONFIG --exists --print-errors "nss") 2>&5 +- ac_status=$? +- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +- test $ac_status = 0; }; then +- pkg_cv_nss_CFLAGS=`$PKG_CONFIG --cflags "nss" 2>/dev/null` +-else +- pkg_failed=yes +-fi +- else +- pkg_failed=untried +-fi +-if test -n "$nss_LIBS"; then +- pkg_cv_nss_LIBS="$nss_LIBS" +- elif test -n "$PKG_CONFIG"; then +- if test -n "$PKG_CONFIG" && \ +- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5 +- ($PKG_CONFIG --exists --print-errors "nss") 2>&5 +- ac_status=$? +- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +- test $ac_status = 0; }; then +- pkg_cv_nss_LIBS=`$PKG_CONFIG --libs "nss" 2>/dev/null` +-else +- pkg_failed=yes +-fi +- else +- pkg_failed=untried +-fi +- +- +- +-if test $pkg_failed = yes; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +- +-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then +- _pkg_short_errors_supported=yes +-else +- _pkg_short_errors_supported=no +-fi +- if test $_pkg_short_errors_supported = yes; then +- nss_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "nss" 2>&1` +- else +- nss_PKG_ERRORS=`$PKG_CONFIG --print-errors "nss" 2>&1` +- fi +- # Put the nasty error message in config.log where it belongs +- echo "$nss_PKG_ERRORS" >&5 +- +- as_fn_error $? "Package requirements (nss) were not met: +- +-$nss_PKG_ERRORS +- +-Consider adjusting the PKG_CONFIG_PATH environment variable if you +-installed software in a non-standard prefix. +- +-Alternatively, you may set the environment variables nss_CFLAGS +-and nss_LIBS to avoid the need to call pkg-config. +-See the pkg-config man page for more details." "$LINENO" 5 +- +-elif test $pkg_failed = untried; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +-as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +-is in your PATH or set the PKG_CONFIG environment variable to the full +-path to pkg-config. +- +-Alternatively, you may set the environment variables nss_CFLAGS +-and nss_LIBS to avoid the need to call pkg-config. +-See the pkg-config man page for more details. +- +-To get pkg-config, see . +-See \`config.log' for more details" "$LINENO" 5; } +- +-else +- nss_CFLAGS=$pkg_cv_nss_CFLAGS +- nss_LIBS=$pkg_cv_nss_LIBS +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +-$as_echo "yes" >&6; } +- +-fi +- +-pkg_failed=no +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nspr" >&5 +-$as_echo_n "checking for nspr... " >&6; } +- +-if test -n "$nspr_CFLAGS"; then +- pkg_cv_nspr_CFLAGS="$nspr_CFLAGS" +- elif test -n "$PKG_CONFIG"; then +- if test -n "$PKG_CONFIG" && \ +- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nspr\""; } >&5 +- ($PKG_CONFIG --exists --print-errors "nspr") 2>&5 +- ac_status=$? +- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +- test $ac_status = 0; }; then +- pkg_cv_nspr_CFLAGS=`$PKG_CONFIG --cflags "nspr" 2>/dev/null` +-else +- pkg_failed=yes +-fi +- else +- pkg_failed=untried +-fi +-if test -n "$nspr_LIBS"; then +- pkg_cv_nspr_LIBS="$nspr_LIBS" +- elif test -n "$PKG_CONFIG"; then +- if test -n "$PKG_CONFIG" && \ +- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nspr\""; } >&5 +- ($PKG_CONFIG --exists --print-errors "nspr") 2>&5 +- ac_status=$? +- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +- test $ac_status = 0; }; then +- pkg_cv_nspr_LIBS=`$PKG_CONFIG --libs "nspr" 2>/dev/null` +-else +- pkg_failed=yes +-fi +- else +- pkg_failed=untried +-fi +- +- +- +-if test $pkg_failed = yes; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +- +-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then +- _pkg_short_errors_supported=yes +-else +- _pkg_short_errors_supported=no +-fi +- if test $_pkg_short_errors_supported = yes; then +- nspr_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "nspr" 2>&1` +- else +- nspr_PKG_ERRORS=`$PKG_CONFIG --print-errors "nspr" 2>&1` +- fi +- # Put the nasty error message in config.log where it belongs +- echo "$nspr_PKG_ERRORS" >&5 +- +- as_fn_error $? "Package requirements (nspr) were not met: +- +-$nspr_PKG_ERRORS +- +-Consider adjusting the PKG_CONFIG_PATH environment variable if you +-installed software in a non-standard prefix. +- +-Alternatively, you may set the environment variables nspr_CFLAGS +-and nspr_LIBS to avoid the need to call pkg-config. +-See the pkg-config man page for more details." "$LINENO" 5 +- +-elif test $pkg_failed = untried; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +-as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +-is in your PATH or set the PKG_CONFIG environment variable to the full +-path to pkg-config. +- +-Alternatively, you may set the environment variables nspr_CFLAGS +-and nspr_LIBS to avoid the need to call pkg-config. +-See the pkg-config man page for more details. +- +-To get pkg-config, see . +-See \`config.log' for more details" "$LINENO" 5; } +- +-else +- nspr_CFLAGS=$pkg_cv_nspr_CFLAGS +- nspr_LIBS=$pkg_cv_nspr_LIBS +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +-$as_echo "yes" >&6; } +- +-fi +- + # Checks for header files. + for ac_header in arpa/inet.h fcntl.h libintl.h limits.h netdb.h stddef.h sys/socket.h sys/time.h syslog.h + do : +@@ -17743,7 +17417,7 @@ + # report actual input values of CONFIG_FILES etc. instead of their + # values after options handling. + ac_log=" +-This file was extended by fence-agents $as_me 4.0.7, which was ++This file was extended by fence-agents $as_me 4.0.7.1, which was + generated by GNU Autoconf 2.68. Invocation command line was + + CONFIG_FILES = $CONFIG_FILES +@@ -17809,7 +17483,7 @@ + cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" + ac_cs_version="\\ +-fence-agents config.status 4.0.7 ++fence-agents config.status 4.0.7.1 + configured by $0, generated by GNU Autoconf 2.68, + with options \\"\$ac_cs_config\\" + diff --git a/fence-agents.spec b/fence-agents.spec index 0bc4eec..bc135c1 100644 --- a/fence-agents.spec +++ b/fence-agents.spec @@ -22,6 +22,7 @@ Group: System Environment/Base URL: http://sourceware.org/cluster/wiki/ Source0: https://fedorahosted.org/releases/f/e/fence-agents/%{name}-%{version}.tar.xz Patch0: 0001-build-Remove-nss-nspr-checks-from-autoconf.patch +Patch1: 0002-autoconf_rebuild.patch %if 0%{?fedora} %global supportedagents alom amt apc apc_snmp bladecenter brocade cisco_mds cisco_ucs drac5 eaton_snmp eps hpblade ibmblade ifmib ilo ilo_mp intelmodular ipdu ipmilan kdump ldom lpar netio ovh rhevm rsa rsb scsi vmware_soap wti @@ -53,6 +54,7 @@ BuildRequires: perl(Pod::MinimumVersion) %prep %setup -q -n %{name}-%{version} %patch0 -p1 -b .build1 +%patch1 -p1 -b .build2 %build %{configure} --with-agents='%{supportedagents} %{testagents}'