X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=cirros-testvm%2Fsrc-cirros%2Fbuildroot-2015.05%2Fpackage%2Fnfs-utils%2F0006-Let-the-configure-script-find-getrpcbynumber-in-libt.patch;fp=cirros-testvm%2Fsrc-cirros%2Fbuildroot-2015.05%2Fpackage%2Fnfs-utils%2F0006-Let-the-configure-script-find-getrpcbynumber-in-libt.patch;h=1ca17b77e973f72f4745aabfb4a647cd6ccdd52a;hb=b0a0f15dfaa205161a7fcb20cf1b8cd4948c2ef3;hp=0000000000000000000000000000000000000000;hpb=c6ac3cd55ee2da956195eee393b0882105dfad4e;p=packages%2Ftrusty%2Fcirros-testvm.git diff --git a/cirros-testvm/src-cirros/buildroot-2015.05/package/nfs-utils/0006-Let-the-configure-script-find-getrpcbynumber-in-libt.patch b/cirros-testvm/src-cirros/buildroot-2015.05/package/nfs-utils/0006-Let-the-configure-script-find-getrpcbynumber-in-libt.patch new file mode 100644 index 0000000..1ca17b7 --- /dev/null +++ b/cirros-testvm/src-cirros/buildroot-2015.05/package/nfs-utils/0006-Let-the-configure-script-find-getrpcbynumber-in-libt.patch @@ -0,0 +1,38 @@ +From 7ea7814a8b87a0faa50fb9f4a486bfd7a376f3fc Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni +Date: Sat, 10 Nov 2012 18:53:03 +0100 +Subject: [PATCH] Let the configure script find getrpcbynumber in libtirpc + +The getrpcbynumber() function may not be available in the C library, +but only in the libtirpc library. Take this into account when checking +for the existence of getrpcbynumber() and getrpcbynumber_r(). + +Signed-off-by: Thomas Petazzoni +--- + configure.ac | 10 +++++++++- + 1 file changed, 9 insertions(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index 41216c9..1bbecfa 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -390,7 +390,15 @@ AC_CHECK_FUNCS([alarm atexit dup2 fdatasync ftruncate getcwd \ + getnameinfo getrpcbyname getifaddrs \ + gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \ + realpath rmdir select socket strcasecmp strchr strdup \ +- strerror strrchr strtol strtoul sigprocmask getrpcbynumber getrpcbynumber_r]) ++ strerror strrchr strtol strtoul sigprocmask]) ++ ++save_CFLAGS=$CFLAGS ++save_LIBS=$LIBS ++CFLAGS="$CFLAGS $AM_CPPFLAGS" ++LIBS="$LIBS $LIBTIRPC" ++AC_CHECK_FUNCS([getrpcbynumber getrpcbynumber_r]) ++CFLAGS=$save_CFLAGS ++LIBS=$save_LIBS + + if test "$ac_cv_func_getrpcbynumber_r" != "yes" -a "$ac_cv_func_getrpcbynumber" != "yes"; then + AC_MSG_ERROR([Neither getrpcbynumber_r nor getrpcbynumber are available]) +-- +1.7.9.5 +