d27ba66b0e
Functionality added or changed: * The time zone tables available at http://dev.mysql.com/downloads/timezones.html have been updated. These tables can be used on systems such as Windows or HP-UX that do not include zoneinfo files. (Bug#40230) Bugs fixed: * Security Fix: During evaluation of arguments to extreme-value functions (such as LEAST() and GREATEST()), type errors did not propagate properly, causing the server to crash. (Bug#55826, CVE-2010-3833) * Security Fix: The server could crash after materializing a derived table that required a temporary table for grouping. (Bug#55568, CVE-2010-3834) * Security Fix: A user-variable assignment expression that is evaluated in a logical expression context can be precalculated in a temporary table for GROUP BY. However, when the expression value is used after creation of the temporary table, it was re-evaluated, not read from the table and a server crash resulted. (Bug#55564, CVE-2010-3835) * Security Fix: Joins involving a table with a unique SET column could cause a server crash. (Bug#54575, CVE-2010-3677) * Security Fix: Pre-evaluation of LIKE predicates during view preparation could cause a server crash. (Bug#54568, CVE-2010-3836) * Security Fix: GROUP_CONCAT() and WITH ROLLUP together could cause a server crash. (Bug#54476, CVE-2010-3837) * Security Fix: Queries could cause a server crash if the GREATEST() or LEAST() function had a mixed list of numeric and LONGBLOB arguments, and the result of such a function was processed using an intermediate temporary table. (Bug#54461, CVE-2010-3838) * Security Fix: Using EXPLAIN with queries of the form SELECT ... UNION ... ORDER BY (SELECT ... WHERE ...) could cause a server crash. (Bug#52711, CVE-2010-3682) * InnoDB Storage Engine: Creating or dropping a table with 1023 transactions active caused an assertion failure. (Bug#49238) * The make_binary_distribution target to make could fail on some platforms because the lines generated were too long for the shell. (Bug#54590) * A client could supply data in chunks to a prepared statement parameter other than of type TEXT or BLOB using the mysql_stmt_send_long_data() C API function (or COM_STMT_SEND_LONG_DATA command). This led to a crash because other data types are not valid for long data. (Bug#54041) * Builds of the embedded mysqld would fail due to a missing element of the struct NET. (Bug#53908, Bug#53912) * The definition of the MY_INIT macro in my_sys.h included an extraneous semicolon, which could cause compilation failure. (Bug#53906) * If the remote server for a FEDERATED table could not be accessed, queries for the INFORMATION_SCHEMA.TABLES table failed. (Bug#35333) * mysqld could fail during execution when using SSL. (Bug#34236) * Threads that were calculating the estimated number of records for a range scan did not respond to the KILL statement. That is, if a range join type is possible (even if not selected by the optimizer as a join type of choice and thus not shown by EXPLAIN), the query in the statistics state (shown by the SHOW PROCESSLIST) did not respond to the KILL statement. (Bug#25421)
131 lines
3.7 KiB
Text
131 lines
3.7 KiB
Text
# $NetBSD: Makefile.common,v 1.41 2011/02/26 02:58:55 taca Exp $
|
|
#
|
|
# used by databases/mysql5-client/Makefile
|
|
# used by databases/mysql5-server/Makefile
|
|
#
|
|
|
|
DISTNAME= mysql-5.0.92
|
|
CATEGORIES= databases
|
|
MASTER_SITES= http://downloads.mysql.com/archives/mysql-5.0/ \
|
|
${MASTER_SITE_MYSQL:=MySQL-5.0/}
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://www.mysql.com/
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
USE_LIBTOOL= yes
|
|
GNU_CONFIGURE= yes
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
.include "options.mk"
|
|
|
|
EXTRACT_USING= bsdtar
|
|
|
|
# MYSQL_USER username of the database administrator
|
|
# MYSQL_GROUP group of the database administrator
|
|
# MYSQL_DATADIR home directory of the database administrator and
|
|
# location of the databases
|
|
MYSQL_USER?= mysql
|
|
MYSQL_GROUP?= mysql
|
|
MYSQL_DATADIR?= ${VARBASE}/mysql
|
|
|
|
PKG_USERS_VARS+= MYSQL_USER
|
|
PKG_GROUPS_VARS+= MYSQL_GROUP
|
|
|
|
# MYSQL_CHARSET default character set
|
|
# MYSQL_EXTRA_CHARSET additional character set to be compiled in.
|
|
#
|
|
MYSQL_CHARSET?= latin1
|
|
MYSQL_EXTRA_CHARSET?= all
|
|
|
|
CONFIGURE_ARGS+= --localstatedir=${MYSQL_DATADIR:Q}
|
|
CONFIGURE_ARGS+= --with-named-z-libs=z
|
|
CONFIGURE_ARGS+= --without-libwrap
|
|
CONFIG_SHELL= ${TOOLS_PATH.bash}
|
|
|
|
.if ${OPSYS} == "IRIX"
|
|
CFLAGS+= -DIRIX5 -DNEEDS_BSTRING_H
|
|
# libgen is incorrectly detected
|
|
CONFIGURE_ENV+= ac_cv_lib_gen_p2open="no"
|
|
.endif
|
|
|
|
BUILD_DEFS+= VARBASE
|
|
|
|
# We always use our own readline. Note that these --without-* settings
|
|
# are confusing, but they just mean "don't use the included readline
|
|
# or libedit".
|
|
#
|
|
CONFIGURE_ARGS+= --without-readline
|
|
CONFIGURE_ARGS+= --without-libedit
|
|
|
|
# Speed up production one-time builds; see "./configure --help" for
|
|
# more information on using or disabling this option.
|
|
CONFIGURE_ARGS+= --disable-dependency-tracking
|
|
|
|
CONFIGURE_ARGS+= --without-debug
|
|
CONFIGURE_ARGS+= --without-bench
|
|
CONFIGURE_ARGS+= --with-low-memory
|
|
CONFIGURE_ARGS+= --with-zlib-dir=${BUILDLINK_PREFIX.zlib:Q}
|
|
CONFIGURE_ARGS+= --with-vio
|
|
|
|
CONFIGURE_ARGS+= --with-charset=${MYSQL_CHARSET:Q}
|
|
CONFIGURE_ARGS+= --with-extra-charsets=${MYSQL_EXTRA_CHARSET:Q}
|
|
|
|
.if !empty(MACHINE_ARCH:Mi386) && ${OPSYS} != "Interix" && \
|
|
${OPSYS} != "SunOS" && ${OPSYS} != "Darwin"
|
|
CONFIGURE_ARGS+= --enable-assembler
|
|
.endif
|
|
|
|
CONFIGURE_ENV+= mysql_cv_compress="yes"
|
|
|
|
CPPFLAGS+= -Dunix
|
|
CFLAGS+= -DUSE_OLD_FUNCTIONS # 3.23.x compat
|
|
|
|
# force HAVE_CURSES_H on Solaris since the configure script is broken
|
|
# and does not properly detect this, breaking the build later on.
|
|
.if ${OPSYS} == "SunOS"
|
|
CFLAGS+= -DHAVE_CURSES_H
|
|
CXXFLAGS+= -DHAVE_CURSES_H
|
|
.endif
|
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
|
|
.if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "pth")
|
|
CFLAGS+= -DSIGNALS_DONT_BREAK_READ
|
|
CXXFLAGS+= -DSIGNALS_DONT_BREAK_READ
|
|
CONFIGURE_ENV+= ac_cv_func_pthread_setschedparam=no
|
|
CONFIGURE_ENV+= ac_cv_func_pthread_attr_setschedparam=no
|
|
.endif
|
|
|
|
USE_LANGUAGES= c c++
|
|
USE_TOOLS+= autoconf bash autoheader gmake perl:run
|
|
LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib/mysql
|
|
|
|
SUBST_CLASSES= mk
|
|
SUBST_STAGE.mk= pre-configure
|
|
SUBST_FILES.mk= dbug/Makefile.in heap/Makefile.in \
|
|
mysys/Makefile.in strings/Makefile.in
|
|
SUBST_SED.mk= -e "/^install-exec:/s/install-pkglibLIBRARIES//"
|
|
SUBST_MESSAGE.mk= Fixing Makefiles.
|
|
|
|
SUBST_CLASSES+= scr
|
|
SUBST_STAGE.scr= pre-configure
|
|
SUBST_FILES.scr= scripts/mysql_install_db.sh scripts/mysqld_safe.sh \
|
|
scripts/mysql_secure_installation.sh \
|
|
support-files/mysql.server.sh
|
|
SUBST_SED.scr= -e "s,chown,${CHOWN},g"
|
|
SUBST_SED.scr+= -e "s,/bin/sh,${RCD_SCRIPTS_SHELL},g"
|
|
SUBST_MESSAGE.scr= Fixing scripts.
|
|
|
|
# Fix broken shared library detection under Mac OS X
|
|
.if ${OPSYS} == "Darwin"
|
|
SUBST_CLASSES+= dylib
|
|
SUBST_STAGE.dylib= pre-configure
|
|
SUBST_FILES.dylib= configure
|
|
SUBST_SED.dylib= -e "s|\\\$$shrext_cmds|\\.dylib|g"
|
|
.endif
|
|
|
|
pre-configure:
|
|
cd ${WRKSRC} && autoconf && autoheader
|
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|