From owner-svn-ports-all@freebsd.org Sun Nov 5 12:55:04 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A9FFAE6B2B5; Sun, 5 Nov 2017 12:55:04 +0000 (UTC) (envelope-from brnrd@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 862807EABE; Sun, 5 Nov 2017 12:55:04 +0000 (UTC) (envelope-from brnrd@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vA5Ct3Ym065329; Sun, 5 Nov 2017 12:55:03 GMT (envelope-from brnrd@FreeBSD.org) Received: (from brnrd@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vA5Ct3gY065327; Sun, 5 Nov 2017 12:55:03 GMT (envelope-from brnrd@FreeBSD.org) Message-Id: <201711051255.vA5Ct3gY065327@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: brnrd set sender to brnrd@FreeBSD.org using -f From: Bernard Spil Date: Sun, 5 Nov 2017 12:55:03 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r453544 - in head/www/mod_auth_mysql_another: . files X-SVN-Group: ports-head X-SVN-Commit-Author: brnrd X-SVN-Commit-Paths: in head/www/mod_auth_mysql_another: . files X-SVN-Commit-Revision: 453544 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Nov 2017 12:55:04 -0000 Author: brnrd Date: Sun Nov 5 12:55:03 2017 New Revision: 453544 URL: https://svnweb.freebsd.org/changeset/ports/453544 Log: www/mod_auth_mysql_another: Fix runtime error with ZTS php - Linking regular libmysqlclient will segfault apache mod_php [1] - Fix building with MariaDB 10.2 PR: 219445 [1] Submitted by: amistry@am-productions.biz [1] With hat: apache Modified: head/www/mod_auth_mysql_another/Makefile head/www/mod_auth_mysql_another/files/patch-mod__auth__mysql.c Modified: head/www/mod_auth_mysql_another/Makefile ============================================================================== --- head/www/mod_auth_mysql_another/Makefile Sun Nov 5 12:36:16 2017 (r453543) +++ head/www/mod_auth_mysql_another/Makefile Sun Nov 5 12:55:03 2017 (r453544) @@ -21,7 +21,7 @@ AP_FAST_BUILD= yes AP_GENPLIST= yes AP_INC= ${LOCALBASE}/include/mysql AP_LIB= ${LOCALBASE}/lib/mysql -AP_EXTRAS= -lmysqlclient -lz -lm +AP_EXTRAS= -lmysqlclient_r -lz -lm PORTDOCS= CONFIGURE CHANGES Modified: head/www/mod_auth_mysql_another/files/patch-mod__auth__mysql.c ============================================================================== --- head/www/mod_auth_mysql_another/files/patch-mod__auth__mysql.c Sun Nov 5 12:36:16 2017 (r453543) +++ head/www/mod_auth_mysql_another/files/patch-mod__auth__mysql.c Sun Nov 5 12:55:03 2017 (r453544) @@ -1,6 +1,28 @@ --- mod_auth_mysql.c.orig 2005-06-22 16:17:45 UTC +++ mod_auth_mysql.c -@@ -206,7 +206,7 @@ +@@ -98,6 +98,10 @@ + #define _PORT STRING(PORT) + #endif + #else ++ /* MariaDB as of 10.2 does not declare MYSQL_PORT for the client */ ++ #ifndef MYSQL_PORT ++ #define MYSQL_PORT 3306 ++ #endif + #ifdef APACHE2 + #define _PORT MYSQL_PORT /* Use the one from MySQL */ + #else +@@ -108,6 +112,10 @@ + #ifdef SOCKET /* UNIX socket */ + #define _SOCKET STRING(SOCKET) + #else ++ /* MariaDB as of 10.2 does not declare MYSQL_UNIX_ADDR for the client */ ++ #ifndef MYSQL_UNIX_ADDR ++ #define MYSQL_UNIX_ADDR STRING(/tmp/mysql.sock) ++ #endif + #define _SOCKET MYSQL_UNIX_ADDR + #endif + +@@ -206,7 +214,7 @@ #define SNPRINTF apr_snprintf #define PSTRDUP apr_pstrdup #define PSTRNDUP apr_pstrndup @@ -9,7 +31,7 @@ #define POOL apr_pool_t #include "http_request.h" /* for ap_hook_(check_user_id | auth_checker)*/ #include "ap_compat.h" -@@ -237,7 +237,7 @@ +@@ -237,7 +245,7 @@ #define SNPRINTF ap_snprintf #define PSTRDUP ap_pstrdup #define PSTRNDUP ap_pstrndup @@ -18,7 +40,7 @@ #define POOL pool #include #include "ap_sha1.h" -@@ -589,87 +589,87 @@ static void * create_mysql_auth_dir_conf +@@ -589,87 +597,87 @@ static void * create_mysql_auth_dir_conf static command_rec mysql_auth_cmds[] = { AP_INIT_TAKE1("AuthMySQLHost", ap_set_string_slot, @@ -127,7 +149,7 @@ OR_AUTHCFG, "mysql character set to be used"), { NULL } -@@ -905,7 +905,16 @@ static char * format_remote_host(request +@@ -905,7 +913,16 @@ static char * format_remote_host(request } static char * format_remote_ip(request_rec * r, char ** parm) { @@ -145,7 +167,7 @@ } static char * format_filename(request_rec * r, char ** parm) { -@@ -1270,7 +1279,7 @@ static int mysql_check_auth(request_rec +@@ -1270,7 +1287,7 @@ static int mysql_check_auth(request_rec int method = r->method_number; #ifdef APACHE2