[autofs/f20] - fix configure failing due to missing function (bz1038356).

Ian Kent iankent at fedoraproject.org
Thu Dec 5 08:33:11 UTC 2013


commit d118498e4086fef5ad398ee57747a341ec5e4a4d
Author: Ian Kent <raven at themaw.net>
Date:   Thu Dec 5 16:32:37 2013 +0800

    - fix configure failing due to missing function (bz1038356).

 autofs-5.0.7-fix-portmap-lookup.patch |   80 +++++++++++++++++++++++++++++++-
 autofs.spec                           |    5 ++-
 2 files changed, 81 insertions(+), 4 deletions(-)
---
diff --git a/autofs-5.0.7-fix-portmap-lookup.patch b/autofs-5.0.7-fix-portmap-lookup.patch
index 1156218..931f236 100644
--- a/autofs-5.0.7-fix-portmap-lookup.patch
+++ b/autofs-5.0.7-fix-portmap-lookup.patch
@@ -17,10 +17,10 @@ This incompatibility only shows up when using IPv6 only.
 ---
  CHANGELOG           |    1 
  aclocal.m4          |    2 +
- configure           |   13 +++++++
+ configure           |   80 +++++++++++++++++++++++++++++++++++++++++++++
  include/config.h.in |    6 +++
  lib/rpc_subs.c      |   92 ++++++++++++++++++++++++++++++++++++++++++++++++----
- 5 files changed, 108 insertions(+), 6 deletions(-)
+ 5 files changed, 175 insertions(+), 6 deletions(-)
 
 --- autofs-5.0.7.orig/CHANGELOG
 +++ autofs-5.0.7/CHANGELOG
@@ -45,7 +45,81 @@ This incompatibility only shows up when using IPv6 only.
  LDFLAGS="$af_check_libtirpc_save_ldflags"
 --- autofs-5.0.7.orig/configure
 +++ autofs-5.0.7/configure
-@@ -3161,6 +3161,19 @@ $as_echo "#define TIRPC_WORKAROUND 1" >>
+@@ -1559,6 +1559,73 @@ fi
+ 
+ } # ac_fn_c_try_link
+ 
++# ac_fn_c_check_func LINENO FUNC VAR
++# ----------------------------------
++# Tests whether FUNC exists, setting the cache variable VAR accordingly
++ac_fn_c_check_func ()
++{
++  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
++  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
++$as_echo_n "checking for $2... " >&6; }
++if eval \${$3+:} false; then :
++  $as_echo_n "(cached) " >&6
++else
++  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h.  */
++/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
++#define $2 innocuous_$2
++
++/* System header to define __stub macros and hopefully few prototypes,
++    which can conflict with char $2 (); below.
++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
++    <limits.h> exists even on freestanding compilers.  */
++
++#ifdef __STDC__
++# include <limits.h>
++#else
++# include <assert.h>
++#endif
++
++#undef $2
++
++/* Override any GCC internal prototype to avoid an error.
++   Use char because int might match the return type of a GCC
++   builtin and then its argument prototype would still apply.  */
++#ifdef __cplusplus
++extern "C"
++#endif
++char $2 ();
++/* The GNU C library defines this for functions which it implements
++    to always fail with ENOSYS.  Some functions are actually named
++    something starting with __ and the normal name is an alias.  */
++#if defined __stub_$2 || defined __stub___$2
++choke me
++#endif
++
++int
++main ()
++{
++return $2 ();
++  ;
++  return 0;
++}
++_ACEOF
++if ac_fn_c_try_link "$LINENO"; then :
++  eval "$3=yes"
++else
++  eval "$3=no"
++fi
++rm -f core conftest.err conftest.$ac_objext \
++    conftest$ac_exeext conftest.$ac_ext
++fi
++eval ac_res=\$$3
++	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
++$as_echo "$ac_res" >&6; }
++  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
++
++} # ac_fn_c_check_func
++
+ # ac_fn_c_try_cpp LINENO
+ # ----------------------
+ # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
+@@ -3161,6 +3228,19 @@ $as_echo "#define TIRPC_WORKAROUND 1" >>
      TIRPCLIB="-ltirpc"
  fi
  
diff --git a/autofs.spec b/autofs.spec
index e3568b8..7f121c5 100644
--- a/autofs.spec
+++ b/autofs.spec
@@ -8,7 +8,7 @@
 Summary: A tool for automatically mounting and unmounting filesystems
 Name: autofs
 Version: 5.0.7
-Release: 35%{?dist}
+Release: 37%{?dist}
 Epoch: 1
 License: GPLv2+
 Group: System Environment/Daemons
@@ -343,6 +343,9 @@ fi
 %dir /etc/auto.master.d
 
 %changelog
+* Thu Dec 5 2013 Ian Kent <ikent at redhat.com> - 1:5.0.7-37
+- fix configure failing due to missing function (bz1038356).
+
 * Tue Nov 19 2013 Ian Kent <ikent at redhat.com> - 1:5.0.7-35
 - add fixes for RHEL-7 bug related to use of UDP during NFSv4 mount
   and internal hosts map not working.


More information about the scm-commits mailing list