From eaba6fd276e88a4d7d31206b165709689b057dc3 Mon Sep 17 00:00:00 2001 From: Bernard Spil Date: Sat, 13 Feb 2016 19:02:11 +0000 Subject: [NEW PORTS] databases/mariadb101-{server,client}: 10.1.11 MariaDB is one of the most popular database servers in the world. It's made by the original developers of MySQL and guaranteed to stay open source. Notable users include Wikipedia, Facebook and Google. MariaDB turns data into structured information in a wide array of applications, ranging from banking to websites. It is an enhanced, drop-in replacement for MySQL. MariaDB is used because it is fast, scalable and robust, with a rich ecosystem of storage engines, plugins and many other tools make it very versatile for a wide variety of use cases. MariaDB is developed as open source software and as a relational database it provides an SQL interface for accessing data. This latest versions of MariaDB also include GIS and JSON features. WWW: http://mariadb.org/ Reviewed by: koobs (mentor), feld (mentor) Approved by: koobs (mentor), feld (mentor) Differential Revision: D3953 --- .../files/patch-cmake_jemalloc.cmake | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 databases/mariadb101-server/files/patch-cmake_jemalloc.cmake (limited to 'databases/mariadb101-server/files/patch-cmake_jemalloc.cmake') diff --git a/databases/mariadb101-server/files/patch-cmake_jemalloc.cmake b/databases/mariadb101-server/files/patch-cmake_jemalloc.cmake new file mode 100644 index 000000000000..187de9ad4298 --- /dev/null +++ b/databases/mariadb101-server/files/patch-cmake_jemalloc.cmake @@ -0,0 +1,24 @@ +Fix jemalloc detection on FreeBSD 10.x +Upstream https://github.com/MariaDB/server/pull/140 + +--- cmake/jemalloc.cmake.orig 2015-12-23 15:33:29 UTC ++++ cmake/jemalloc.cmake +@@ -12,9 +12,16 @@ MACRO(JEMALLOC_TRY_STATIC) + ENDMACRO() + + MACRO(JEMALLOC_TRY_DYNAMIC) +- SET(libname jemalloc) + SET(what system) +- CHECK_LIBRARY_EXISTS(${libname} malloc_stats_print "" HAVE_DYNAMIC_JEMALLOC) ++ IF (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD" AND ++ CMAKE_SYSTEM_VERSION STRGREATER "10.0") ++ # Since FreeBSD 10.0 jemalloc is in base libc ++ SET(libname c) ++ SET(HAVE_DYNAMIC_JEMALLOC ON) ++ ELSE() ++ SET(libname jemalloc) ++ CHECK_LIBRARY_EXISTS(${libname} malloc_stats_print "" HAVE_DYNAMIC_JEMALLOC) ++ ENDIF() + ENDMACRO() + + MACRO (CHECK_JEMALLOC) -- cgit v1.2.3