SOURCES: mysql-maria-libs.patch (NEW) - based on mysql-libs.patch

glen glen at pld-linux.org
Mon Mar 3 21:51:53 CET 2008


Author: glen                         Date: Mon Mar  3 20:51:53 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- based on mysql-libs.patch

---- Files affected:
SOURCES:
   mysql-maria-libs.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/mysql-maria-libs.patch
diff -u /dev/null SOURCES/mysql-maria-libs.patch:1.1
--- /dev/null	Mon Mar  3 21:51:53 2008
+++ SOURCES/mysql-maria-libs.patch	Mon Mar  3 21:51:48 2008
@@ -0,0 +1,50 @@
+--- mysql-5.1.23a-maria-alpha/configure.in~	2008-03-03 22:43:19.000000000 +0200
++++ mysql-5.1.23a-maria-alpha/configure.in	2008-03-03 22:43:54.847337579 +0200
+@@ -787,9 +787,9 @@
+ 
+ AC_CHECK_LIB(m, floor, [], AC_CHECK_LIB(m, __infinity))
+ 
+-AC_CHECK_LIB(nsl_r, gethostbyname_r, [],
+-  AC_CHECK_LIB(nsl, gethostbyname_r))
+-AC_CHECK_FUNC(gethostbyname_r)
++AC_CHECK_FUNC(gethostbyname_r, [],
++  [AC_CHECK_LIB(nsl_r, gethostbyname_r, [],
++    [AC_CHECK_LIB(nsl, gethostbyname_r)])])
+ 
+ AC_CHECK_FUNC(setsockopt, , AC_CHECK_LIB(socket, setsockopt))
+ AC_CHECK_FUNC(yp_get_default_domain, ,
+@@ -836,7 +836,11 @@
+ # This may get things to compile even if bind-8 is installed
+ AC_CHECK_FUNC(bind, , AC_CHECK_LIB(bind, bind))
+ # Check if crypt() exists in libc or libcrypt, sets LIBS if needed
+-AC_SEARCH_LIBS(crypt, crypt, AC_DEFINE(HAVE_CRYPT, 1, [crypt]))
++save_LIBS="$LIBS"
++AC_CHECK_LIB(crypt, crypt, [LIBS="-lcrypt $LIBS"; LIBCRYPT="-lcrypt"])
++AC_SUBST(LIBCRYPT)
++AC_CHECK_FUNC(crypt, AC_DEFINE([HAVE_CRYPT], [1], [crypt]))
++LIBS="$save_LIBS"
+ # See if we need a library for address lookup.
+ AC_SEARCH_LIBS(inet_aton, [socket nsl resolv])
+ 
+--- mysql-5.0.21/libmysql_r/Makefile.am~	2006-05-02 16:55:15.179229923 +0300
++++ mysql-5.0.21/libmysql_r/Makefile.am	2006-05-02 16:56:08.080408785 +0300
+@@ -30,7 +30,7 @@
+ include $(top_srcdir)/libmysql/Makefile.shared
+ 
+ nodist_libmysqlclient_r_la_SOURCES = $(target_sources)
+-libmysqlclient_r_la_LIBADD = $(target_libadd) $(yassl_las)
++libmysqlclient_r_la_LIBADD = $(target_libadd) $(yassl_las) -lpthread
+ libmysqlclient_r_la_LDFLAGS = $(target_ldflags)
+ 
+ link_sources:
+--- mysql-5.1.21-beta/sql/Makefile.am~	2007-08-29 18:58:33.000000000 +0300
++++ mysql-5.1.21-beta/sql/Makefile.am	2007-08-29 19:01:33.000000000 +0300
+@@ -43,7 +43,7 @@
+ 			@pstack_libs@ \
+ 			@mysql_plugin_libs@ \
+ 			$(LDADD)  $(CXXLDFLAGS) $(WRAPLIBS) @LIBDL@ \
+-			$(yassl_libs) $(openssl_libs) @MYSQLD_EXTRA_LIBS@
++			$(yassl_libs) $(openssl_libs) @LIBCRYPT@ @MYSQLD_EXTRA_LIBS@
+ 
+ noinst_HEADERS =	item.h item_func.h item_sum.h item_cmpfunc.h \
+ 			item_strfunc.h item_timefunc.h \
================================================================


More information about the pld-cvs-commit mailing list