- Update mariadb to 5.3.8

- Add MAXKEY option to change default max key length
  from 1000 to 4000
- Convert to new options framework

PR:		ports/171227
Submitted by:	Geoffroy Desvernay <dgeo@centrale-marseille.fr> (maintainer)
This commit is contained in:
Bryan Drewery 2012-09-13 12:31:47 +00:00
parent 3d50f7053c
commit ffb7583e48
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=304203
5 changed files with 73 additions and 52 deletions

View file

@ -16,7 +16,9 @@ MARIADB_CLIENT_SLAVE= yes
CONFIGURE_ARGS= --without-server --with-libevent=no CONFIGURE_ARGS= --without-server --with-libevent=no
OPTIONS= THREADSAFE "Build thread-safe client" On OPTIONS_DEFINE= THREADSAFE
OPTIONS_DEFAULT= THREADSAFE
THREADSAFE_DESC= Build thread-safe client
CONFLICTS= mysql-client-[0-9]* CONFLICTS= mysql-client-[0-9]*

View file

@ -5,8 +5,7 @@
# $FreeBSD$ # $FreeBSD$
PORTNAME= mariadb PORTNAME= mariadb
PORTVERSION= 5.3.7 PORTVERSION= 5.3.8
PORTREVISION?= 0
CATEGORIES= databases ipv6 CATEGORIES= databases ipv6
MASTER_SITES= http://ftp.osuosl.org/pub/mariadb/${PORTNAME}-${PORTVERSION}/kvm-tarbake-jaunty-x86/ \ MASTER_SITES= http://ftp.osuosl.org/pub/mariadb/${PORTNAME}-${PORTVERSION}/kvm-tarbake-jaunty-x86/ \
http://mirrors.supportex.net/mariadb/${PORTNAME}-${PORTVERSION}/kvm-tarbake-jaunty-x86/ \ http://mirrors.supportex.net/mariadb/${PORTNAME}-${PORTVERSION}/kvm-tarbake-jaunty-x86/ \
@ -44,15 +43,17 @@ USE_LDCONFIG= ${PREFIX}/lib/mysql
USERS= mysql USERS= mysql
GROUPS= mysql GROUPS= mysql
OPTIONS+= STATIC "Build statically linked (not on 9.x)" Off \ OPTIONS_DEFINE+= STATIC SSL OPENSSL
SSL "Activate SSL support (yassl)" On \ OPTIONS_DEFAULT+= SSL
OPENSSL "Use OpenSSL instead of bundled yassl" Off STATIC_DESC= Build statically linked executables (not on 9.x)
SSL_DESC= Activate SSL support
OPENSSL_DESC= Use OpenSSL instead of bundled yassl
MAKE_JOBS_SAFE= yes MAKE_JOBS_SAFE= yes
.if !defined(MARIADB_CLIENT_SLAVE) .if !defined(MARIADB_CLIENT_SLAVE)
CONFIGURE_ARGS+= --with-libevent=${LOCALBASE} CONFIGURE_ARGS+= --with-libevent=${LOCALBASE}
LIB_DEPENDS+= event-1.4:${PORTSDIR}/devel/libevent LIB_DEPENDS+= event-1:${PORTSDIR}/devel/libevent
MAN1= innochecksum.1 my_print_defaults.1 myisam_ftdump.1 myisamchk.1 \ MAN1= innochecksum.1 my_print_defaults.1 myisam_ftdump.1 myisamchk.1 \
myisamlog.1 myisampack.1 mysql.server.1 mysql_client_test_embedded.1 \ myisamlog.1 myisampack.1 mysql.server.1 mysql_client_test_embedded.1 \
@ -65,25 +66,31 @@ INFO= mysql
CONFIGURE_ARGS+= --with-embedded-server --enable-local-infile CONFIGURE_ARGS+= --with-embedded-server --enable-local-infile
USE_RC_SUBR= mysql-server USE_RC_SUBR= mysql-server
OPTIONS+= ARIADB "Aria storage engine" On \ OPTIONS_DEFINE+= ARIADB ARCHIVE BLACKHOLE SPHINX FEDX FEDERATED XTRADB INNODB \
ARCHIVE "Archive storage plugin" On \ OQGRAPH PBXT PARTITION HANDLERSOCKET EXAMPLES MAXKEY
BLACKHOLE "Blackhole storage engine" On \
SPHINX "SE client for Sphinx search daemon" On \ ARIADB_DESC= Aria storage engine
FEDX "FederatedX storage engine (Federated replacement)" On \ ARCHIVE_DESC= Archive storage plugin
FEDERATED "Federated (old) storage engine" Off \ BLACKHOLE_DESC= Blackhole storage engine
XTRADB "XtraDB (InnoDB replacement) engine" On \ SPHINX_DESC= SE client for Sphinx search daemon
INNODB "InnoDB (old) engine" Off \ FEDX_DESC= FederatedX (new) storage engine
OQGRAPH "Open Query Graph Computation engine" Off \ FEDERATED_DESC= Federated (old) storage engine
PBXT "MVCC-based transactional engine" Off \ XTRADB_DESC= XtraDB (InnoDB replacement) engine
PARTITION "Partitioning support" Off \ INNODB_DESC= InnoDB (old) engine
HANDLERSOCKET "HandlerSocket support" On \ OQGRAPH_DESC= Open Query Graph Computation engine
NDB "Enable NDB support (implies PARTITION)" Off \ PBXT_DESC= MVCC-based transactional engine
EXAMPLES "Example engine,daemon and ftsearch plugins" Off PARTITION_DESC= Partitioning support
HANDLERSOCKET_DESC= HandlerSocket support
NDB_DESC= Enable NDB support (implies PARTITION)
EXAMPLES_DESC= Example engine,daemon and ftsearch plugins
MAXKEY_DESC= Change max key length from 1000 to 4000
OPTIONS_DEFAULT+= ARIADB ARCHIVE BLACKHOLE SPHINX FEDX XTRADB HANDLERSOCKET
.endif # .if !defined(MARIADB_CLIENT_SLAVE) .endif # .if !defined(MARIADB_CLIENT_SLAVE)
.include <bsd.port.options.mk> .include <bsd.port.options.mk>
.if ${OSVERSION} > 900000 && defined(WITH_STATIC) .if ${OSVERSION} > 900000 && ${PORT_OPTIONS:MSTATIC}
BROKEN= WITH_STATIC is not functional on 9-current BROKEN= WITH_STATIC is not functional on 9-current
.endif .endif
@ -93,8 +100,8 @@ CONFIGURE_ARGS+= --enable-assembler
.if ${ARCH} == "i386" .if ${ARCH} == "i386"
CONFIGURE_ARGS+= --with-big-tables CONFIGURE_ARGS+= --with-big-tables
.endif .endif
.if defined(WITH_SSL) .if ${PORT_OPTIONS:MSSL}
.if defined(WITH_OPENSSL) .if ${PORT_OPTIONS:MOPENSSL}
USE_OPENSSL= yes USE_OPENSSL= yes
CONFIGURE_ARGS+= --with-ssl=${OPENSSLBASE} CONFIGURE_ARGS+= --with-ssl=${OPENSSLBASE}
.else .else
@ -104,15 +111,15 @@ MDB_EXTRA_SUBDIRS= extra
.else .else
CONFIGURE_ARGS+= --without-ssl CONFIGURE_ARGS+= --without-ssl
.endif .endif
.if defined(WITH_STATIC) .if ${PORT_OPTIONS:MSTATIC}
CONFIGURE_ARGS+= --with-client-ldflags="-static -all-static" CONFIGURE_ARGS+= --with-client-ldflags="-static -all-static"
.endif .endif
.if defined(WITH_THREADSAFE) .if ${PORT_OPTIONS:MTHREADSAFE}
CONFIGURE_ARGS+= --enable-thread-safe-client CONFIGURE_ARGS+= --enable-thread-safe-client
.endif .endif
.if !defined(MARIADB_CLIENT_SLAVE) .if !defined(MARIADB_CLIENT_SLAVE)
.if defined(WITH_ARIADB) .if ${PORT_OPTIONS:MARIADB}
PLIST_SUB+= ARIADB="" PLIST_SUB+= ARIADB=""
CONFIGURE_ARGS+= --with-plugin-aria --with-aria-tmp-tables CONFIGURE_ARGS+= --with-plugin-aria --with-aria-tmp-tables
PLUGINS+= aria PLUGINS+= aria
@ -120,72 +127,72 @@ PLUGINS+= aria
CONFIGURE_ARGS+= --without-plugin-aria CONFIGURE_ARGS+= --without-plugin-aria
PLIST_SUB+= ARIADB="@comment " PLIST_SUB+= ARIADB="@comment "
.endif .endif
.if defined(WITH_SPHINX) .if ${PORT_OPTIONS:MSPHINX}
PLIST_SUB+= SPHINX="" PLIST_SUB+= SPHINX=""
PLUGINS+= sphinx PLUGINS+= sphinx
.else .else
CONFIGURE_ARGS+= --without-plugin-sphinx CONFIGURE_ARGS+= --without-plugin-sphinx
PLIST_SUB+= SPHINX="@comment " PLIST_SUB+= SPHINX="@comment "
.endif .endif
.if defined(WITH_ARCHIVE) .if ${PORT_OPTIONS:MARCHIVE}
PLIST_SUB+= ARCHIVE="" PLIST_SUB+= ARCHIVE=""
PLUGINS+= archive PLUGINS+= archive
.else .else
CONFIGURE_ARGS+= --without-plugin-archive CONFIGURE_ARGS+= --without-plugin-archive
PLIST_SUB+= ARCHIVE="@comment " PLIST_SUB+= ARCHIVE="@comment "
.endif .endif
.if defined(WITH_BLACKHOLE) .if ${PORT_OPTIONS:MBLACKHOLE}
PLIST_SUB+= BLACKHOLE="" PLIST_SUB+= BLACKHOLE=""
PLUGINS+= blackhole PLUGINS+= blackhole
.else .else
CONFIGURE_ARGS+= --without-plugin-blackhole CONFIGURE_ARGS+= --without-plugin-blackhole
PLIST_SUB+= BLACKHOLE="@comment " PLIST_SUB+= BLACKHOLE="@comment "
.endif .endif
.if defined(WITH_FEDERATED) .if ${PORT_OPTIONS:MFEDERATED}
PLIST_SUB+= FEDERATED="" PLIST_SUB+= FEDERATED=""
PLUGINS+= federated PLUGINS+= federated
.else .else
CONFIGURE_ARGS+= --without-plugin-federated CONFIGURE_ARGS+= --without-plugin-federated
PLIST_SUB+= FEDERATED="@comment " PLIST_SUB+= FEDERATED="@comment "
.endif .endif
.if defined(WITH_FEDX) .if ${PORT_OPTIONS:MFEDX}
PLIST_SUB+= FEDERATEDX="" PLIST_SUB+= FEDERATEDX=""
PLUGINS+= federatedx PLUGINS+= federatedx
.else .else
CONFIGURE_ARGS+= --without-plugin-federatedx CONFIGURE_ARGS+= --without-plugin-federatedx
PLIST_SUB+= FEDERATEDX="@comment " PLIST_SUB+= FEDERATEDX="@comment "
.endif .endif
.if defined(WITH_INNODB) .if ${PORT_OPTIONS:MINNODB}
PLIST_SUB+= INNODB="" PLIST_SUB+= INNODB=""
PLUGINS+= innodb_plugin PLUGINS+= innodb_plugin
.else .else
CONFIGURE_ARGS+= --without-plugin-innodb_plugin CONFIGURE_ARGS+= --without-plugin-innodb_plugin
PLIST_SUB+= INNODB="@comment " PLIST_SUB+= INNODB="@comment "
.endif .endif
.if defined(WITH_XTRADB) .if ${PORT_OPTIONS:MXTRADB}
PLIST_SUB+= XTRADB="" PLIST_SUB+= XTRADB=""
PLUGINS+= xtradb PLUGINS+= xtradb
.else .else
CONFIGURE_ARGS+= --without-plugin-xtradb CONFIGURE_ARGS+= --without-plugin-xtradb
PLIST_SUB+= XTRADB="@comment " PLIST_SUB+= XTRADB="@comment "
.endif .endif
.if defined(WITH_HANDLERSOCKET) .if ${PORT_OPTIONS:MHANDLERSOCKET}
PLIST_SUB+= HANDLERSOCKET="" PLIST_SUB+= HANDLERSOCKET=""
PLUGINS+= handlersocket PLUGINS+= handlersocket
.else .else
CONFIGURE_ARGS+= --without-plugin-handlersocket CONFIGURE_ARGS+= --without-plugin-handlersocket
PLIST_SUB+= HANDLERSOCKET="@comment " PLIST_SUB+= HANDLERSOCKET="@comment "
.endif .endif
.if defined(WITH_OQGRAPH) .if ${PORT_OPTIONS:MOQGRAPH}
CONFIGURE_ARGS+= --with-plugin-oqgraph CONFIGURE_ARGS+= --with-plugin-oqgraph
PLIST_SUB+= OQGRAPH="" PLIST_SUB+= OQGRAPH=""
LIB_DEPENDS+= boost_system.4:${PORTSDIR}/devel/boost-libs LIB_DEPENDS+= boost_system:${PORTSDIR}/devel/boost-libs
PLUGINS+= oqgraph PLUGINS+= oqgraph
.else .else
CONFIGURE_ARGS+= --without-plugin-oqgraph CONFIGURE_ARGS+= --without-plugin-oqgraph
PLIST_SUB+= OQGRAPH="@comment " PLIST_SUB+= OQGRAPH="@comment "
.endif .endif
.if defined(WITH_PBXT) .if ${PORT_OPTIONS:MPBXT}
CONFIGURE_ARGS+= --with-plugin-pbxt CONFIGURE_ARGS+= --with-plugin-pbxt
PLIST_SUB+= PBXT="" PLIST_SUB+= PBXT=""
PLUGINS+= pbxt PLUGINS+= pbxt
@ -193,13 +200,13 @@ PLUGINS+= pbxt
CONFIGURE_ARGS+= --without-plugin-pbxt CONFIGURE_ARGS+= --without-plugin-pbxt
PLIST_SUB+= PBXT="@comment " PLIST_SUB+= PBXT="@comment "
.endif .endif
.if defined(WITH_EXAMPLES) .if ${PORT_OPTIONS:MEXAMPLES}
PLIST_SUB+= EXAMPLES="" PLIST_SUB+= EXAMPLES=""
.else .else
CONFIGURE_ARGS+= --without-plugin-example --without-plugin-daemon_example --without-plugin-ftexample CONFIGURE_ARGS+= --without-plugin-example --without-plugin-daemon_example --without-plugin-ftexample
PLIST_SUB+= EXAMPLES="@comment " PLIST_SUB+= EXAMPLES="@comment "
.endif .endif
.if defined(WITH_NDB) .if ${PORT_OPTIONS:MNDB}
CONFIGURE_ARGS+= --with-plugin-ndbcluster CONFIGURE_ARGS+= --with-plugin-ndbcluster
WITH_PARTITION=yes WITH_PARTITION=yes
PLIST_SUB+= NDB="" PLIST_SUB+= NDB=""
@ -208,18 +215,21 @@ PLUGINS+= ndbcluster
CONFIGURE_ARGS+= --without-plugin-ndbcluster CONFIGURE_ARGS+= --without-plugin-ndbcluster
PLIST_SUB+= NDB="@comment " PLIST_SUB+= NDB="@comment "
.endif .endif
.if defined(WITH_PARTITION) .if ${PORT_OPTIONS:MPARTITION}
CONFIGURE_ARGS+= --with-plugin-partition CONFIGURE_ARGS+= --with-plugin-partition
PLUGINS+= partition PLUGINS+= partition
.else .else
CONFIGURE_ARGS+= --without-plugin-partition CONFIGURE_ARGS+= --without-plugin-partition
.endif .endif
.if defined(WITH_STATIC) .if ${PORT_OPTIONS:MSTATIC}
CONFIGURE_ARGS+= --with-mysqld-ldflags="-static -all-static" --with-plugins="${PLUGINS}" CONFIGURE_ARGS+= --with-mysqld-ldflags="-static -all-static" --with-plugins="${PLUGINS}"
PLIST_SUB+= STATIC="@comment " PLIST_SUB+= STATIC="@comment "
.else .else
PLIST_SUB+= STATIC="" PLIST_SUB+= STATIC=""
.endif .endif
.if ${PORT_OPTIONS:MMAXKEY}
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-include__my_handler.h
.endif
.endif # .if !defined(MARIADB_CLIENT_SLAVE) .endif # .if !defined(MARIADB_CLIENT_SLAVE)
.if defined(WITH_CHARSET) && ${WITH_CHARSET} != "" .if defined(WITH_CHARSET) && ${WITH_CHARSET} != ""
@ -234,16 +244,16 @@ CONFIGURE_ARGS+= --with-extra-charsets=complex
CONFIGURE_ARGS+= --with-collation=${WITH_COLLATION} CONFIGURE_ARGS+= --with-collation=${WITH_COLLATION}
.endif .endif
.if defined(WITH_STATIC) && ( defined(WITH_OPENSSL) || defined(WITH_NDB) ) .if ${PORT_OPTIONS:MSTATIC} && ( ${PORT_OPTIONS:MOPENSSL} || ${PORT_OPTIONS:MNDB} )
pre-extract: pre-extract:
@${ECHO} '' @${ECHO} ''
@${ECHO} "WITH_STATIC is not compatible with WITH_OPENSSL or WITH_NDB" @${ECHO} "STATIC is not compatible with OPENSSL or NDB"
@${ECHO} '' @${ECHO} ''
@${FALSE} @${FALSE}
.endif .endif
.if !defined(MARIADB_CLIENT_SLAVE) .if !defined(MARIADB_CLIENT_SLAVE)
.if !defined(WITH_STATIC) .if empty(PORT_OPTIONS:MSTATIC)
SUB_FILES= pkg-message SUB_FILES= pkg-message
.endif .endif
@ -259,7 +269,7 @@ pre-fetch:
@${ECHO} " Other built-in charsets (default: complex, selected: ${WITH_XCHARSET})." @${ECHO} " Other built-in charsets (default: complex, selected: ${WITH_XCHARSET})."
@${ECHO} '' @${ECHO} ''
EXTRA_PATCHES= ${FILESDIR}/scripts__Makefile.in EXTRA_PATCHES+= ${FILESDIR}/scripts__Makefile.in
MDB_SERVER_SUBDIRS= include @docs_dirs@ sql-common libservices mysys strings dbug ${MDB_EXTRA_SUBDIRS} unittest cmd-line-utils libmysql scripts @sql_server_dirs@ @sql_server@ @man_dirs@ @libmysqld_dirs@ support-files MDB_SERVER_SUBDIRS= include @docs_dirs@ sql-common libservices mysys strings dbug ${MDB_EXTRA_SUBDIRS} unittest cmd-line-utils libmysql scripts @sql_server_dirs@ @sql_server@ @man_dirs@ @libmysqld_dirs@ support-files
post-patch: post-patch:
@ -271,7 +281,7 @@ post-patch:
@${REINPLACE_CMD} -e "s|^\(install-data-am:\) install-pkgincludeHEADERS|\1|g" ${WRKSRC}/extra/Makefile.in ${WRKSRC}/include/Makefile.in @${REINPLACE_CMD} -e "s|^\(install-data-am:\) install-pkgincludeHEADERS|\1|g" ${WRKSRC}/extra/Makefile.in ${WRKSRC}/include/Makefile.in
@${REINPLACE_CMD} -e "s|^\(install-exec-am:\) install-pkglibLTLIBRARIES|\1|g" ${WRKSRC}/libmysql/Makefile.in @${REINPLACE_CMD} -e "s|^\(install-exec-am:\) install-pkglibLTLIBRARIES|\1|g" ${WRKSRC}/libmysql/Makefile.in
.if !defined(WITH_STATIC) .if empty(PORT_OPTIONS:MSTATIC)
post-install: post-install:
@${CAT} ${PKGMESSAGE} @${CAT} ${PKGMESSAGE}
.endif .endif

View file

@ -1,2 +1,2 @@
SIZE (mariadb-5.3.7.tar.gz) = 26741196 SHA256 (mariadb-5.3.8.tar.gz) = ba175431eb8e5d21f0a3cfac11fe4296ccb92ab4fd920ff4e907a45b7fb342ed
SHA256 (mariadb-5.3.7.tar.gz) = 463386ca84128a162e63137c8f6666859b94e2abf490b6ab2306f846a13fe9bc SIZE (mariadb-5.3.8.tar.gz) = 26798886

View file

@ -0,0 +1,11 @@
--- include/my_handler.h.orig 2012-08-30 21:44:42.000000000 +0200
+++ include/my_handler.h 2012-08-30 21:45:23.000000000 +0200
@@ -34,7 +34,7 @@
But beware the dependency of HA_MAX_POSSIBLE_KEY_BUFF and HA_MAX_KEY_LENGTH.
*/
-#define HA_MAX_KEY_LENGTH 1000 /* Max length in bytes */
+#define HA_MAX_KEY_LENGTH 4000 /* Max length in bytes */
#define HA_MAX_KEY_SEG 32 /* Max segments for key */
#define HA_MAX_POSSIBLE_KEY_BUFF (HA_MAX_KEY_LENGTH + 24+ 6+6)

View file

@ -189,15 +189,12 @@ bin/resolveip
%%STATIC%%%%BLACKHOLE%%lib/mysql/plugin/ha_blackhole.la %%STATIC%%%%BLACKHOLE%%lib/mysql/plugin/ha_blackhole.la
%%STATIC%%%%BLACKHOLE%%lib/mysql/plugin/ha_blackhole.so %%STATIC%%%%BLACKHOLE%%lib/mysql/plugin/ha_blackhole.so
%%STATIC%%%%BLACKHOLE%%lib/mysql/plugin/ha_blackhole.so.0 %%STATIC%%%%BLACKHOLE%%lib/mysql/plugin/ha_blackhole.so.0
%%STATIC%%%%EXAMPLES%%lib/mysql/plugin/ha_example.a
%%STATIC%%%%EXAMPLES%%lib/mysql/plugin/ha_example.la %%STATIC%%%%EXAMPLES%%lib/mysql/plugin/ha_example.la
%%STATIC%%%%EXAMPLES%%lib/mysql/plugin/ha_example.so %%STATIC%%%%EXAMPLES%%lib/mysql/plugin/ha_example.so
%%STATIC%%%%EXAMPLES%%lib/mysql/plugin/ha_example.so.0 %%STATIC%%%%EXAMPLES%%lib/mysql/plugin/ha_example.so.0
%%STATIC%%%%EXAMPLES%%lib/mysql/plugin/libdaemon_example.a
%%STATIC%%%%EXAMPLES%%lib/mysql/plugin/libdaemon_example.la %%STATIC%%%%EXAMPLES%%lib/mysql/plugin/libdaemon_example.la
%%STATIC%%%%EXAMPLES%%lib/mysql/plugin/libdaemon_example.so %%STATIC%%%%EXAMPLES%%lib/mysql/plugin/libdaemon_example.so
%%STATIC%%%%EXAMPLES%%lib/mysql/plugin/libdaemon_example.so.0 %%STATIC%%%%EXAMPLES%%lib/mysql/plugin/libdaemon_example.so.0
%%STATIC%%%%EXAMPLES%%lib/mysql/plugin/mypluglib.a
%%STATIC%%%%EXAMPLES%%lib/mysql/plugin/mypluglib.la %%STATIC%%%%EXAMPLES%%lib/mysql/plugin/mypluglib.la
%%STATIC%%%%EXAMPLES%%lib/mysql/plugin/mypluglib.so %%STATIC%%%%EXAMPLES%%lib/mysql/plugin/mypluglib.so
%%STATIC%%%%EXAMPLES%%lib/mysql/plugin/mypluglib.so.0 %%STATIC%%%%EXAMPLES%%lib/mysql/plugin/mypluglib.so.0
@ -269,6 +266,7 @@ include/mysql/private/log.h
include/mysql/private/log_event.h include/mysql/private/log_event.h
include/mysql/private/log_event_old.h include/mysql/private/log_event_old.h
include/mysql/private/log_slow.h include/mysql/private/log_slow.h
include/mysql/private/mem_root_array.h
include/mysql/private/multi_range_read.h include/mysql/private/multi_range_read.h
include/mysql/private/my_decimal.h include/mysql/private/my_decimal.h
include/mysql/private/mysql_priv.h include/mysql/private/mysql_priv.h