Sophie

Sophie

distrib > Mageia > 5 > x86_64 > by-pkgid > 380afce561c36ae3b99722c7c6f91cfb > files > 17

bind-9.10.1.P2-2.mga5.src.rpm

diff -Naur bind-9.10.0-P1/config.h.in bind-9.10.0-P1.oden/config.h.in
--- bind-9.10.0-P1/config.h.in	2014-05-05 02:15:51.000000000 +0200
+++ bind-9.10.0-P1.oden/config.h.in	2014-05-09 08:45:35.000000000 +0200
@@ -489,7 +489,7 @@
 #undef PREFER_GOSTASN1
 
 /* The size of `void *', as computed by sizeof. */
-#undef SIZEOF_VOID_P
+/* #undef SIZEOF_VOID_P */
 
 /* Define to 1 if you have the ANSI C header files. */
 #undef STDC_HEADERS
diff -Naur bind-9.10.0-P1/configure.in bind-9.10.0-P1.oden/configure.in
--- bind-9.10.0-P1/configure.in	2014-05-09 08:45:22.000000000 +0200
+++ bind-9.10.0-P1.oden/configure.in	2014-05-09 08:45:35.000000000 +0200
@@ -2858,7 +2858,9 @@
 		size_t, char *, size_t, int);],
 [ return (0);],
 	[AC_MSG_RESULT(size_t for buflen; int for flags)
-	 AC_DEFINE(IRS_GETNAMEINFO_BUFLEN_T, size_t)
+	# Changed to solve multilib conflict on Fedora 
+	#AC_DEFINE(IRS_GETNAMEINFO_BUFLEN_T, size_t)
+	 AC_DEFINE(IRS_GETNAMEINFO_BUFLEN_T, socklen_t)
 	 AC_DEFINE(IRS_GETNAMEINFO_FLAGS_T, int)],
 [AC_MSG_RESULT(not match any subspecies; assume standard definition)
 AC_DEFINE(IRS_GETNAMEINFO_BUFLEN_T, socklen_t)
diff -Naur bind-9.10.0-P1/isc-config.sh.in bind-9.10.0-P1.oden/isc-config.sh.in
--- bind-9.10.0-P1/isc-config.sh.in	2014-05-05 02:15:51.000000000 +0200
+++ bind-9.10.0-P1.oden/isc-config.sh.in	2014-05-09 08:45:35.000000000 +0200
@@ -21,7 +21,18 @@
 exec_prefix=@exec_prefix@
 exec_prefix_set=
 includedir=@includedir@
-libdir=@libdir@
+arch=$(uname -m)
+
+case $arch in
+	x86_64 | amd64 | sparc64 | s390x | ppc64)
+		libdir=/usr/lib64
+		sec_libdir=/usr/lib
+		;;
+	* )
+		libdir=/usr/lib
+		sec_libdir=/usr/lib64
+		;;
+esac
 
 usage()
 {
@@ -133,6 +144,16 @@
 	if test x"${exec_prefix_set}" = x"true"; then
 		includes="-L${exec_prefix}/lib"
 	else
+		if [ ! -x $libdir/libisc.so ] ; then
+			if [ ! -x $sec_libdir/libisc.so ] ; then
+				echo "Error: ISC libs not found in $libdir"
+				if [ -d $sec_libdir ] ; then
+					echo "Error: ISC libs not found in $sec_libdir"
+				fi
+				exit 1
+			fi
+			libdir=$sec_libdir
+		fi
 		libs="-L${libdir}"
 	fi
 	if test x"$liblwres" = x"true" ; then