[packages/php/mysqlnd-link] mysqlnd link fix

glen glen at pld-linux.org
Wed Oct 8 19:23:37 CEST 2014


commit 882aa90071ec5d35ffdc94b7442da9406b904136
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed Oct 8 20:23:21 2014 +0300

    mysqlnd link fix

 mysqlnd-ssl.patch | 24 ++++++++++++++++++++++++
 php.spec          |  2 ++
 2 files changed, 26 insertions(+)
---
diff --git a/php.spec b/php.spec
index 3bbc153..0387c4e 100644
--- a/php.spec
+++ b/php.spec
@@ -216,6 +216,7 @@ Patch65:	system-libzip.patch
 Patch66:	php-db.patch
 Patch67:	mysql-lib-ver-mismatch.patch
 Patch69:	fpm-conf-split.patch
+Patch70:	mysqlnd-ssl.patch
 URL:		http://www.php.net/
 %{?with_interbase:%{!?with_interbase_inst:BuildRequires:	Firebird-devel >= 1.0.2.908-2}}
 %{?with_pspell:BuildRequires:	aspell-devel >= 2:0.50.0}
@@ -2054,6 +2055,7 @@ cp -p php.ini-production php.ini
 %patch66 -p1
 %patch67 -p1
 %patch69 -p1
+%patch70 -p1
 
 sed -i -e '/PHP_ADD_LIBRARY_WITH_PATH/s#xmlrpc,#xmlrpc-epi,#' ext/xmlrpc/config.m4
 
diff --git a/mysqlnd-ssl.patch b/mysqlnd-ssl.patch
new file mode 100644
index 0000000..3157280
--- /dev/null
+++ b/mysqlnd-ssl.patch
@@ -0,0 +1,24 @@
+link mysqlnd.so with openssl if enabled
+
+--- php-5.6.1/ext/mysqlnd/config9.m4~	2014-10-01 12:17:38.000000000 +0300
++++ php-5.6.1/ext/mysqlnd/config9.m4	2014-10-07 20:19:44.653070295 +0300
+@@ -34,10 +34,17 @@
+   test -z "$PHP_OPENSSL" && PHP_OPENSSL=no
+ 
+   if test "$PHP_OPENSSL" != "no" || test "$PHP_OPENSSL_DIR" != "no"; then
+-    AC_CHECK_LIB(ssl, DSA_get_default_method, AC_DEFINE(HAVE_DSA_DEFAULT_METHOD, 1, [OpenSSL 0.9.7 or later]))
+-    AC_CHECK_LIB(crypto, X509_free, AC_DEFINE(HAVE_DSA_DEFAULT_METHOD, 1, [OpenSSL 0.9.7 or later]))
++    AC_CHECK_LIB(ssl, DSA_get_default_method, [
++      AC_DEFINE(HAVE_DSA_DEFAULT_METHOD, 1, [OpenSSL 0.9.7 or later])
++      PHP_ADD_EXTENSION_DEP(mysqlnd, ssl)
++    ])
++    AC_CHECK_LIB(crypto, X509_free, [
++      AC_DEFINE(HAVE_DSA_DEFAULT_METHOD, 1, [OpenSSL 0.9.7 or later])
++      PHP_ADD_EXTENSION_DEP(mysqlnd, crypto)
++    ])
+ 
+     PHP_SETUP_OPENSSL(MYSQLND_SHARED_LIBADD, [AC_DEFINE(MYSQLND_HAVE_SSL,1,[Enable mysqlnd code that uses OpenSSL directly])])
++
+   fi
+ 
+   mysqlnd_sources="$mysqlnd_base_sources $mysqlnd_ps_sources"
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php.git/commitdiff/882aa90071ec5d35ffdc94b7442da9406b904136



More information about the pld-cvs-commit mailing list