diff options
author | Bernard Spil <brnrd@FreeBSD.org> | 2016-01-03 18:25:22 +0000 |
---|---|---|
committer | Bernard Spil <brnrd@FreeBSD.org> | 2016-01-03 18:25:22 +0000 |
commit | 76142075262ea20e149033c6783051d094fc867d (patch) | |
tree | 653cbc95653e4a020dd038c2a37b15833aca3733 /databases/mariadb100-server | |
parent | 2487f5dd9f71952c72763105b575ccefc6d8b627 (diff) | |
download | ports-76142075262ea20e149033c6783051d094fc867d.tar.gz ports-76142075262ea20e149033c6783051d094fc867d.zip |
Notes
Diffstat (limited to 'databases/mariadb100-server')
-rw-r--r-- | databases/mariadb100-server/Makefile | 21 | ||||
-rw-r--r-- | databases/mariadb100-server/distinfo | 4 | ||||
-rw-r--r-- | databases/mariadb100-server/files/patch-cmake_jemalloc.cmake | 30 | ||||
-rw-r--r-- | databases/mariadb100-server/files/patch-storage_connect_json.cpp | 13 | ||||
-rw-r--r-- | databases/mariadb100-server/files/patch-storage_tokudb_PerconaFT_cmake__modules_TokuFeatureDetection.cmake (renamed from databases/mariadb100-server/files/patch-storage_tokudb_ft-index_cmake__modules_TokuFeatureDetection.cmake) | 4 | ||||
-rw-r--r-- | databases/mariadb100-server/files/patch-storage_tokudb_PerconaFT_portability_memory.cc (renamed from databases/mariadb100-server/files/patch-storage_tokudb_ft-index_portability_memory.cc) | 4 |
6 files changed, 48 insertions, 28 deletions
diff --git a/databases/mariadb100-server/Makefile b/databases/mariadb100-server/Makefile index 1645b40275be..1308b64cffd7 100644 --- a/databases/mariadb100-server/Makefile +++ b/databases/mariadb100-server/Makefile @@ -1,7 +1,7 @@ # $FreeBSD$ PORTNAME?= mariadb -PORTVERSION= 10.0.22 +PORTVERSION= 10.0.23 CATEGORIES= databases ipv6 MASTER_SITES= http://ftp.osuosl.org/pub/${SITESDIR}/ \ http://mirrors.supportex.net/${SITESDIR}/ \ @@ -64,6 +64,11 @@ DATADIR= ${PREFIX}/share/mysql .error You have `USE_MYSQL' variable defined either in environment or in make(1) arguments. This leads to a circular dependency. Please undefine and try again. .endif +CONFLICTS_INSTALL= mariadb5*-${PKGNAMESUFFIX:C/^[0-9]*-//}-* \ + mariadb10[1-9]-${PKGNAMESUFFIX:C/^[0-9]*-//}-* \ + mysql[0-9]*-${PKGNAMESUFFIX:C/^[0-9]*-//}-* \ + percona[0-9]*-${PKGNAMESUFFIX:C/^[0-9]*-//}-* \ + .if !defined(CLIENT_ONLY) # MySQL-Server options USE_MYSQL= yes @@ -89,12 +94,6 @@ WITHOUT_SSL_CMAKE_ON= -DWITH_SSL=no USES+= readline .else # MySQL-Server part - -CONFLICTS_INSTALL= mariadb5*-server-* \ - mariadb10[1-9]-server-* \ - mysql*-server-* \ - percona*-server-* - USE_MYSQL= yes WANT_MYSQL_VER= 100m USE_RC_SUBR= mysql-server @@ -110,6 +109,9 @@ MROONGA_CMAKE_OFF= -DWITHOUT_MROONGA=1 OQGRAPH_CMAKE_OFF= -DWITHOUT_OQGRAPH=1 OQGRAPH_LIB_DEPENDS= libboost_system.so:${PORTSDIR}/devel/boost-libs \ libJudy.so:${PORTSDIR}/devel/judy +# Currently OQGraph does not build using clang. +# See See https://mariadb.atlassian.net/browse/MDEV-8051. +OQGRPAH_USE= gcc post-install: # Remove programs to avoid conflict with mariadb100-client @@ -134,11 +136,6 @@ CMAKE_ARGS+= -DWITH_JEMALLOC="no" USE_GCC= yes .endif -.if ${PORT_OPTIONS:MOQGRPAH} -IGNORE= currently MariaDB doesn't build correctly with OQGraph \ - See https://mariadb.atlassian.net/browse/MDEV-8128. -.endif - post-patch: @${REINPLACE_CMD} 's/*.1/${MAN1}/' ${WRKSRC}/man/CMakeLists.txt @${REINPLACE_CMD} 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/mysys/my_default.c diff --git a/databases/mariadb100-server/distinfo b/databases/mariadb100-server/distinfo index 8baef1a56e37..339ada7ae292 100644 --- a/databases/mariadb100-server/distinfo +++ b/databases/mariadb100-server/distinfo @@ -1,2 +1,2 @@ -SHA256 (mariadb-10.0.22.tar.gz) = 9e17f4aaccb7069a874555cca254974d0f0103f0ad5e2434acab6aa353dafc7b -SIZE (mariadb-10.0.22.tar.gz) = 56252325 +SHA256 (mariadb-10.0.23.tar.gz) = 156eed69892834be66736aebe0a17a76d5031fd1c2f481a82228ff33bb7ba274 +SIZE (mariadb-10.0.23.tar.gz) = 57394548 diff --git a/databases/mariadb100-server/files/patch-cmake_jemalloc.cmake b/databases/mariadb100-server/files/patch-cmake_jemalloc.cmake index ca8a8626617e..8894a2d3dbfa 100644 --- a/databases/mariadb100-server/files/patch-cmake_jemalloc.cmake +++ b/databases/mariadb100-server/files/patch-cmake_jemalloc.cmake @@ -1,18 +1,28 @@ ---- cmake/jemalloc.cmake.orig 2015-06-17 14:54:11 UTC +Upstreamed https://github.com/MariaDB/server/pull/139 + +--- cmake/jemalloc.cmake.orig 2015-12-16 16:05:44 UTC +++ cmake/jemalloc.cmake -@@ -24,12 +24,12 @@ MACRO (CHECK_JEMALLOC) +@@ -20,11 +20,21 @@ MACRO (CHECK_JEMALLOC) + SET(CMAKE_REQUIRED_LIBRARIES pthread dl m) + SET(what bundled) + ELSE() +- SET(libname jemalloc) ++ IF(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD" AND ++ CMAKE_SYSTEM_VERSION STRGREATER "10.0") ++ SET(libname c) ++ ELSE() ++ SET(libname jemalloc) ++ ENDIF() SET(what system) ENDIF() - CHECK_LIBRARY_EXISTS(${libname} malloc_stats_print "" HAVE_JEMALLOC) -+ CHECK_LIBRARY_EXISTS(c malloc_stats_print "" HAVE_JEMALLOC) ++ IF(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD" AND ++ CMAKE_SYSTEM_VERSION STRGREATER "10.0") ++ SET(HAVE_JEMALLOC ON) ++ ELSE() ++ CHECK_LIBRARY_EXISTS(${libname} malloc_stats_print "" HAVE_JEMALLOC) ++ ENDIF() SET(CMAKE_REQUIRED_LIBRARIES) IF (HAVE_JEMALLOC) -- SET(LIBJEMALLOC ${libname}) -- SET(MALLOC_LIBRARY "${what} jemalloc") -+ SET(LIBJEMALLOC c) -+ SET(MALLOC_LIBRARY "system jemalloc") - ELSEIF (NOT WITH_JEMALLOC STREQUAL "auto") - MESSAGE(FATAL_ERROR "${libname} is not found") - ENDIF() diff --git a/databases/mariadb100-server/files/patch-storage_connect_json.cpp b/databases/mariadb100-server/files/patch-storage_connect_json.cpp new file mode 100644 index 000000000000..c3cd4ea49b73 --- /dev/null +++ b/databases/mariadb100-server/files/patch-storage_connect_json.cpp @@ -0,0 +1,13 @@ +# Add patch for https://mariadb.atlassian.net/browse/MDEV-9322 + +--- storage/connect/json.cpp.orig 2015-12-16 16:05:45 UTC ++++ storage/connect/json.cpp +@@ -594,7 +594,7 @@ PSZ Serialize(PGLOBAL g, PJSON jsp, char + if (fs) { + fputs(EL, fs); + fclose(fs); +- str = (err) ? NULL : "Ok"; ++ str = (err) ? NULL : (char*)"Ok"; + } else if (!err) { + str = ((JOUTSTR*)jp)->Strp; + jp->WriteChr('\0'); diff --git a/databases/mariadb100-server/files/patch-storage_tokudb_ft-index_cmake__modules_TokuFeatureDetection.cmake b/databases/mariadb100-server/files/patch-storage_tokudb_PerconaFT_cmake__modules_TokuFeatureDetection.cmake index d894a2a81c3e..7fe07d8427d2 100644 --- a/databases/mariadb100-server/files/patch-storage_tokudb_ft-index_cmake__modules_TokuFeatureDetection.cmake +++ b/databases/mariadb100-server/files/patch-storage_tokudb_PerconaFT_cmake__modules_TokuFeatureDetection.cmake @@ -1,5 +1,5 @@ ---- storage/tokudb/ft-index/cmake_modules/TokuFeatureDetection.cmake.orig 2015-06-17 14:54:13 UTC -+++ storage/tokudb/ft-index/cmake_modules/TokuFeatureDetection.cmake +--- storage/tokudb/PerconaFT/cmake_modules/TokuFeatureDetection.cmake.orig 2015-06-17 14:54:13 UTC ++++ storage/tokudb/PerconaFT/cmake_modules/TokuFeatureDetection.cmake @@ -87,13 +87,7 @@ if (NOT HAVE_DLSYM_WITHOUT_DL) endif () check_function_exists(backtrace HAVE_BACKTRACE_WITHOUT_EXECINFO) diff --git a/databases/mariadb100-server/files/patch-storage_tokudb_ft-index_portability_memory.cc b/databases/mariadb100-server/files/patch-storage_tokudb_PerconaFT_portability_memory.cc index 216620d315cb..61187db8b0c8 100644 --- a/databases/mariadb100-server/files/patch-storage_tokudb_ft-index_portability_memory.cc +++ b/databases/mariadb100-server/files/patch-storage_tokudb_PerconaFT_portability_memory.cc @@ -1,5 +1,5 @@ ---- storage/tokudb/ft-index/portability/memory.cc.orig 2015-06-17 14:54:13 UTC -+++ storage/tokudb/ft-index/portability/memory.cc +--- storage/tokudb/PerconaFT/portability/memory.cc.orig 2015-06-17 14:54:13 UTC ++++ storage/tokudb/PerconaFT/portability/memory.cc @@ -94,11 +94,6 @@ PATENT RIGHTS GRANT: #include <string.h> #include <stdio.h> |