From b2dccf1c1929d6f7eea3bce62ac2ad29f59fb697 Mon Sep 17 00:00:00 2001 From: mnag Date: Wed, 27 Sep 2006 14:23:28 +0000 Subject: - Apply fix to ulong problem. http://bugs.mysql.com/bug.php?id=22227 - Bump -client PORTREVISION - portlint Approved by: maintainer (ale) --- databases/mysql50-client/Makefile | 1 + databases/mysql50-server/Makefile | 2 +- .../mysql50-server/files/patch-include__mysql_com.h | 21 +++++++++++++++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 databases/mysql50-server/files/patch-include__mysql_com.h diff --git a/databases/mysql50-client/Makefile b/databases/mysql50-client/Makefile index 302a1133672f..5d093767548b 100644 --- a/databases/mysql50-client/Makefile +++ b/databases/mysql50-client/Makefile @@ -6,6 +6,7 @@ # PORTNAME= mysql +PORTREVISION= 1 PKGNAMESUFFIX= -client COMMENT= Multithreaded SQL database (client) diff --git a/databases/mysql50-server/Makefile b/databases/mysql50-server/Makefile index 0493e316ba96..7e647956d946 100644 --- a/databases/mysql50-server/Makefile +++ b/databases/mysql50-server/Makefile @@ -188,7 +188,7 @@ CONFIGURE_ARGS+=--without-server .if ${OSVERSION} < 500000 PLIST_SUB+= ZLIB="" .else -PLIST_SUB+= ZLIB="@comment " +PLIST_SUB+= ZLIB="@comment " .endif post-patch: diff --git a/databases/mysql50-server/files/patch-include__mysql_com.h b/databases/mysql50-server/files/patch-include__mysql_com.h new file mode 100644 index 000000000000..7ecc1d7e45ee --- /dev/null +++ b/databases/mysql50-server/files/patch-include__mysql_com.h @@ -0,0 +1,21 @@ +# +# Apply fix for MySQL bug http://bugs.mysql.com/bug.php?id=22227 +# +--- include/mysql_com.h.orig Fri Aug 25 18:11:46 2006 ++++ include/mysql_com.h Wed Sep 27 10:02:44 2006 +@@ -134,11 +134,11 @@ + #define CLIENT_TRANSACTIONS 8192 /* Client knows about transactions */ + #define CLIENT_RESERVED 16384 /* Old flag for 4.1 protocol */ + #define CLIENT_SECURE_CONNECTION 32768 /* New 4.1 authentication */ +-#define CLIENT_MULTI_STATEMENTS (((ulong) 1) << 16) /* Enable/disable multi-stmt support */ +-#define CLIENT_MULTI_RESULTS (((ulong) 1) << 17) /* Enable/disable multi-results */ ++#define CLIENT_MULTI_STATEMENTS (1UL << 16) /* Enable/disable multi-stmt support */ ++#define CLIENT_MULTI_RESULTS (1UL << 17) /* Enable/disable multi-results */ + +-#define CLIENT_SSL_VERIFY_SERVER_CERT (((ulong) 1) << 30) +-#define CLIENT_REMEMBER_OPTIONS (((ulong) 1) << 31) ++#define CLIENT_SSL_VERIFY_SERVER_CERT (1UL << 30) ++#define CLIENT_REMEMBER_OPTIONS (1UL << 31) + + #define SERVER_STATUS_IN_TRANS 1 /* Transaction has started */ + #define SERVER_STATUS_AUTOCOMMIT 2 /* Server in auto_commit mode */ -- cgit