Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:11.4:Update
autofs
autofs-5.0.6-fix-ipv6-configure-check.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File autofs-5.0.6-fix-ipv6-configure-check.patch of Package autofs
commit 4ab414f80b9e82ff5043bff5ad79c0c720f64430 Author: Ian Kent <ikent@redhat.com> Date: Thu Dec 1 18:35:43 2011 +0800 autofs-5.0.6 - fix ipv6 configure check Since the functions clntudp6_bufcreate() and clnttcp6_create() of libtirpc were never actually included in the library our reference to clntudp6_bufcreate() in configure needs to be removed. Having redone the libtirpc interface (after realizing these functions were defined but not actually included in the library) checking for IPv6 support can't be done now and we need to rely on the transport independent nature of libtirpc to take care of this. So the INET6 checks have been replaced with WITH_LIBTIRPC checks instead. Index: autofs-5.0.5/CHANGELOG =================================================================== --- autofs-5.0.5.orig/CHANGELOG +++ autofs-5.0.5/CHANGELOG @@ -91,6 +91,7 @@ - fix fix map source check in file lookup. - fix ipv6 name lookup check. - fix ipv6 rpc calls. +- fix ipv6 configure check. 03/09/2009 autofs-5.0.5 ----------------------- Index: autofs-5.0.5/aclocal.m4 =================================================================== --- autofs-5.0.5.orig/aclocal.m4 +++ autofs-5.0.5/aclocal.m4 @@ -324,41 +324,6 @@ LIBS="$af_check_ldap_parse_page_control_ ]) dnl -------------------------------------------------------------------------- -dnl AF_CHECK_LIBTIRPC_IPV6 -dnl -dnl Use libtirpc for rpc transport -dnl -------------------------------------------------------------------------- -AC_DEFUN([AF_CHECK_LIBTIRPC_IPV6], -[AC_MSG_CHECKING(if libtirpc has IPv6 support) - -# save current flags -af_check_libtirpc_ipv6_save_cflags="$CFLAGS" -af_check_libtirpc_ipv6_save_ldflags="$LDFLAGS" -CFLAGS="$CFLAGS -I/usr/include/tirpc" -LDFLAGS="$LDFLAGS -ltirpc" - -AC_TRY_LINK( - [ #define INET6 - #include <rpc/rpc.h> ], - [ CLIENT *cl; - struct sockaddr_in6 addr; - int fd; - unsigned long ul; struct timeval t; unsigned int ui; - cl = clntudp6_bufcreate(&addr,ul,ul,t,&fd,ui,ui); ], - [ af_have_libtirpc_ipv6=yes - AC_MSG_RESULT(yes) ], - [ AC_MSG_RESULT(no) ]) - -if test "$af_have_libtirpc_ipv6" = "yes"; then - AC_DEFINE(INET6,1, [Use IPv6 with libtirpc]) -fi - -# restore flags -CFLAGS="$af_check_libtirpc_ipv6_save_cflags" -LDFLAGS="$af_check_libtirpc_ipv6_save_ldflags" -]) - -dnl -------------------------------------------------------------------------- dnl AF_CHECK_LIBTIRPC dnl dnl Use libtirpc for rpc transport @@ -399,7 +364,6 @@ AC_ARG_WITH(libtirpc, [ --with-libtirpc use libtirpc if available], [if test "$withval" = yes; then AF_CHECK_LIBTIRPC() - AF_CHECK_LIBTIRPC_IPV6() else AC_MSG_RESULT(no) fi], [AC_MSG_RESULT(no)]) Index: autofs-5.0.5/configure =================================================================== --- autofs-5.0.5.orig/configure +++ autofs-5.0.5/configure @@ -3085,52 +3085,6 @@ fi CFLAGS="$af_check_libtirpc_save_cflags" LDFLAGS="$af_check_libtirpc_save_ldflags" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtirpc has IPv6 support" >&5 -$as_echo_n "checking if libtirpc has IPv6 support... " >&6; } - -# save current flags -af_check_libtirpc_ipv6_save_cflags="$CFLAGS" -af_check_libtirpc_ipv6_save_ldflags="$LDFLAGS" -CFLAGS="$CFLAGS -I/usr/include/tirpc" -LDFLAGS="$LDFLAGS -ltirpc" - -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - #define INET6 - #include <rpc/rpc.h> -int -main () -{ - CLIENT *cl; - struct sockaddr_in6 addr; - int fd; - unsigned long ul; struct timeval t; unsigned int ui; - cl = clntudp6_bufcreate(&addr,ul,ul,t,&fd,ui,ui); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - af_have_libtirpc_ipv6=yes - { $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; } -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - -if test "$af_have_libtirpc_ipv6" = "yes"; then - -$as_echo "#define INET6 1" >>confdefs.h - -fi - -# restore flags -CFLAGS="$af_check_libtirpc_ipv6_save_cflags" -LDFLAGS="$af_check_libtirpc_ipv6_save_ldflags" - else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } Index: autofs-5.0.5/include/config.h.in =================================================================== --- autofs-5.0.5.orig/include/config.h.in +++ autofs-5.0.5/include/config.h.in @@ -69,9 +69,6 @@ /* Define to 1 if you have the <unistd.h> header file. */ #undef HAVE_UNISTD_H -/* Use IPv6 with libtirpc */ -#undef INET6 - /* Use libxml2 tsd usage workaround */ #undef LIBXML2_WORKAROUND Index: autofs-5.0.5/modules/replicated.c =================================================================== --- autofs-5.0.5.orig/modules/replicated.c +++ autofs-5.0.5/modules/replicated.c @@ -180,7 +180,7 @@ static unsigned int get_proximity(struct break; case AF_INET6: -#ifndef INET6 +#ifndef WITH_LIBTIRPC return PROXIMITY_UNSUPPORTED; #else addr6 = (struct sockaddr_in6 *) host_addr; @@ -229,7 +229,9 @@ static unsigned int get_proximity(struct break; case AF_INET6: -#ifdef INET6 +#ifndef WITH_LIBTIRPC + return PROXIMITY_UNSUPPORTED; +#else if (host_addr->sa_family == AF_INET) break; @@ -309,7 +311,9 @@ static unsigned int get_proximity(struct break; case AF_INET6: -#ifdef INET6 +#ifndef WITH_LIBTIRPC + return PROXIMITY_UNSUPPORTED; +#else if (host_addr->sa_family == AF_INET) break;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor