diff options
author | brnrd <brnrd@FreeBSD.org> | 2018-02-12 22:45:12 +0800 |
---|---|---|
committer | brnrd <brnrd@FreeBSD.org> | 2018-02-12 22:45:12 +0800 |
commit | 6537ff8a56d1dfdf6e5577fec193bcf60893756d (patch) | |
tree | c822db66a0c6cb57ce32b7c328a6c82f3301dd9d /databases | |
parent | f76e7be2878206a56d90ae31ceca91010b0562c5 (diff) | |
download | freebsd-ports-gnome-6537ff8a56d1dfdf6e5577fec193bcf60893756d.tar.gz freebsd-ports-gnome-6537ff8a56d1dfdf6e5577fec193bcf60893756d.tar.zst freebsd-ports-gnome-6537ff8a56d1dfdf6e5577fec193bcf60893756d.zip |
databases/mariadb101-server: Security update to 10.1.31
PR: 225758
Reported by: Pascal Christen <pascal christen hostpoint.ch>
MFH: 2018Q1
Security: e3445736-fd01-11e7-ac58-b499baebfeaf
Diffstat (limited to 'databases')
-rw-r--r-- | databases/mariadb101-server/Makefile | 11 | ||||
-rw-r--r-- | databases/mariadb101-server/distinfo | 6 | ||||
-rw-r--r-- | databases/mariadb101-server/files/extra-patch-MDEV-15288 | 7 | ||||
-rw-r--r-- | databases/mariadb101-server/files/patch-CMakeLists.txt | 8 | ||||
-rw-r--r-- | databases/mariadb101-server/files/patch-mysys__ssl_my__crypt.cc | 29 | ||||
-rw-r--r-- | databases/mariadb101-server/pkg-plist | 1 |
6 files changed, 36 insertions, 26 deletions
diff --git a/databases/mariadb101-server/Makefile b/databases/mariadb101-server/Makefile index 0ac410c2e65c..4a3b7be2d07c 100644 --- a/databases/mariadb101-server/Makefile +++ b/databases/mariadb101-server/Makefile @@ -1,8 +1,8 @@ # $FreeBSD$ PORTNAME?= mariadb -PORTVERSION= 10.1.30 -PORTREVISION?= 2 +PORTVERSION= 10.1.31 +PORTREVISION?= 0 CATEGORIES= databases ipv6 MASTER_SITES= http://ftp.osuosl.org/pub/${SITESDIR}/ \ http://mirrors.supportex.net/${SITESDIR}/ \ @@ -114,6 +114,7 @@ GSSAPI_NONE_CMAKE_ON= -DPLUGIN_AUTH_GSSAPI_CLIENT=NO .else # MySQL-Server part BROKEN_powerpc64= Does not build: fatal error: sys/platform/ppc.h: No such file or directory +#LIB_DEPENDS= libevent.so:devel/libevent USES+= mysql:101m USE_GNOME= libxml2 USE_LDCONFIG+= ${PREFIX}/lib/mysql/plugin @@ -126,13 +127,14 @@ CMAKE_ARGS+= -DWITH_EMBEDDED_SERVER="ON" \ -DWITHOUT_EXAMPLE_STORAGE_ENGINE=1 .for ENGINE in ${OPTIONS_GROUP_ENGINES} -${ENGINE}_CMAKE_OFF= -DPLUGIN_${ENGINE}=NO \ - -DWITHOUT_${ENGINE}=1 +${ENGINE}_CMAKE_OFF= -DPLUGIN_${ENGINE}=NO +${ENGINE}_CMAKE_ON= -DPLUGIN_${ENGINE}=DYNAMIC .endfor CONNECT_EXTRA_LIB_DEPENDS= libodbc.so:databases/unixODBC CONNECT_EXTRA_USE= gnome=libxml2 GSSAPI_NONE_CMAKE_ON= -DPLUGIN_AUTH_GSSAPI=NO +INNOBASE_EXTRA_PATCHES_OFF= ${FILESDIR}/extra-patch-MDEV-15288 LZ4_CMAKE_OFF= -DGRN_WITH_LZ4=OFF -DWITH_INNODB_LZ4=OFF LZ4_CMAKE_ON= -DGRN_WITH_LZ4=${LOCALBASE}/lib -DWITH_INNODB_LZ4=${LOCALBASE}/lib LZ4_LIB_DEPENDS= liblz4.so:archivers/liblz4 @@ -143,7 +145,6 @@ MAXKEY_EXTRA_PATCHES+= ${FILESDIR}/extra-patch-include_my__compare.h MROONGA_LIB_DEPENDS= liblz4.so:archivers/liblz4 MROONGA_VARS= LICENSE+=LGPL20 LICENSE_COMB=multi MSGPACK_LIB_DEPENDS= libmsgpackc.so:devel/msgpack -OQGRAPH_BROKEN= OQGRAPH fails to build with boost 1.66, see bug 224089 OQGRAPH_LIB_DEPENDS= libboost_system.so:devel/boost-libs \ libJudy.so:devel/judy SNAPPY_CMAKE_OFF= -DWITH_INNODB_SNAPPY=OFF diff --git a/databases/mariadb101-server/distinfo b/databases/mariadb101-server/distinfo index 602c94d30f55..445dbc99fbcf 100644 --- a/databases/mariadb101-server/distinfo +++ b/databases/mariadb101-server/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1514018044 -SHA256 (mariadb-10.1.30.tar.gz) = 173a5e5a24819e0a469c3bd09b5c98491676c37c6095882a2ea34c5af0996c88 -SIZE (mariadb-10.1.30.tar.gz) = 67930015 +TIMESTAMP = 1518260559 +SHA256 (mariadb-10.1.31.tar.gz) = ab7641c2fe4e5289da6141766a9c3350e013def56fafd6f1377080bc8048b2e6 +SIZE (mariadb-10.1.31.tar.gz) = 67982786 diff --git a/databases/mariadb101-server/files/extra-patch-MDEV-15288 b/databases/mariadb101-server/files/extra-patch-MDEV-15288 new file mode 100644 index 000000000000..d5a1b81c80de --- /dev/null +++ b/databases/mariadb101-server/files/extra-patch-MDEV-15288 @@ -0,0 +1,7 @@ +--- storage/innobase/CMakeLists.txt.orig 2018-02-04 02:30:31 UTC ++++ storage/innobase/CMakeLists.txt +@@ -520,4 +520,3 @@ MYSQL_ADD_PLUGIN(innobase ${INNOBASE_SOU + MODULE_OUTPUT_NAME ha_innodb + LINK_LIBRARIES ${ZLIB_LIBRARY} ${LIBSYSTEMD} ${LINKER_SCRIPT}) + +-ADD_DEPENDENCIES(innobase GenError) diff --git a/databases/mariadb101-server/files/patch-CMakeLists.txt b/databases/mariadb101-server/files/patch-CMakeLists.txt index e79a34edc9d1..f74e520ba0da 100644 --- a/databases/mariadb101-server/files/patch-CMakeLists.txt +++ b/databases/mariadb101-server/files/patch-CMakeLists.txt @@ -1,5 +1,13 @@ --- CMakeLists.txt.orig 2017-05-02 05:13:38 UTC +++ CMakeLists.txt +@@ -388,7 +388,6 @@ ADD_SUBDIRECTORY(libservices) + ADD_SUBDIRECTORY(sql/share) + + IF(NOT WITHOUT_SERVER) +- ADD_SUBDIRECTORY(tests) + ADD_SUBDIRECTORY(sql) + OPTION (WITH_EMBEDDED_SERVER "Compile MySQL with embedded server" OFF) + IF(WITH_EMBEDDED_SERVER) @@ -465,6 +465,7 @@ ADD_CUSTOM_TARGET(INFO_BIN ALL WORKING_DIRECTORY ${CMAKE_BINARY_DIR} ) diff --git a/databases/mariadb101-server/files/patch-mysys__ssl_my__crypt.cc b/databases/mariadb101-server/files/patch-mysys__ssl_my__crypt.cc index f447253d3164..22ec55843e00 100644 --- a/databases/mariadb101-server/files/patch-mysys__ssl_my__crypt.cc +++ b/databases/mariadb101-server/files/patch-mysys__ssl_my__crypt.cc @@ -1,25 +1,20 @@ ---- mysys_ssl/my_crypt.cc.orig 2017-01-17 19:38:25 UTC +--- mysys_ssl/my_crypt.cc.orig 2018-02-04 02:30:31 UTC +++ mysys_ssl/my_crypt.cc -@@ -275,10 +275,14 @@ int my_random_bytes(uchar* buf, int num) - return MY_AES_OK; - } - #else -+#include <openssl/opensslv.h> +@@ -27,6 +27,7 @@ + #include <openssl/aes.h> + #include <openssl/err.h> #include <openssl/rand.h> ++#include <openssl/opensslv.h> + + #ifdef HAVE_ERR_remove_thread_state + #define ERR_remove_state(X) ERR_remove_thread_state(NULL) +@@ -295,6 +296,9 @@ unsigned int my_aes_ctx_size(enum my_aes int my_random_bytes(uchar *buf, int num) { -+#if defined(LIBRESSL_VERSION_NUMBER) ++#ifdef LIBRESSL_VERSION_NUMBER + arc4random_buf(buf, num); -+#else - /* - Unfortunately RAND_bytes manual page does not provide any guarantees - in relation to blocking behavior. Here we explicitly use SSLeay random -@@ -288,6 +292,7 @@ int my_random_bytes(uchar *buf, int num) - RAND_METHOD *rand = RAND_SSLeay(); - if (rand == NULL || rand->bytes(buf, num) != 1) - return MY_AES_OPENSSL_ERROR; +#endif + if (RAND_bytes(buf, num) != 1) + return MY_AES_OPENSSL_ERROR; return MY_AES_OK; - } - #endif diff --git a/databases/mariadb101-server/pkg-plist b/databases/mariadb101-server/pkg-plist index 5ac49dc36ef5..7ab1a56cb066 100644 --- a/databases/mariadb101-server/pkg-plist +++ b/databases/mariadb101-server/pkg-plist @@ -11,7 +11,6 @@ bin/myisam_ftdump bin/myisamchk bin/myisamlog bin/myisampack -bin/mysql_client_test bin/mysql_client_test_embedded bin/mysql_convert_table_format bin/mysql_embedded |