aboutsummaryrefslogtreecommitdiffstats
path: root/databases/xtrabackup
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2019-08-24 20:40:26 +0800
committerPiotr Kubaj <pkubaj@FreeBSD.org>2019-08-24 20:40:26 +0800
commitbd2ffebe9edab06e2c36e656b0d7f5220c9e8755 (patch)
treea75cf0749c95e9b3072bdf6ea2424dfab985d4ea /databases/xtrabackup
parentaa95db6e8ba92fc5719fb074172917aa1e978d4d (diff)
downloadfreebsd-ports-gnome-bd2ffebe9edab06e2c36e656b0d7f5220c9e8755.tar.gz
freebsd-ports-gnome-bd2ffebe9edab06e2c36e656b0d7f5220c9e8755.tar.zst
freebsd-ports-gnome-bd2ffebe9edab06e2c36e656b0d7f5220c9e8755.zip
databases/xtrabackup: fix build on GCC architectures
Patch this port similarly to other mysql/mariadb/percona ports - make GCC a valid compiler. PR: 239310 Approved by: aleks@twindb.com (maintainer timeout), linimon (mentor)
Diffstat (limited to 'databases/xtrabackup')
-rw-r--r--databases/xtrabackup/files/patch-cmake_os_FreeBSD.cmake15
1 files changed, 15 insertions, 0 deletions
diff --git a/databases/xtrabackup/files/patch-cmake_os_FreeBSD.cmake b/databases/xtrabackup/files/patch-cmake_os_FreeBSD.cmake
new file mode 100644
index 000000000000..13e579ee06bb
--- /dev/null
+++ b/databases/xtrabackup/files/patch-cmake_os_FreeBSD.cmake
@@ -0,0 +1,15 @@
+--- cmake/os/FreeBSD.cmake.orig 2019-07-19 15:13:48 UTC
++++ cmake/os/FreeBSD.cmake
+@@ -30,6 +30,12 @@ IF(NOT FORCE_UNSUPPORTED_COMPILER)
+ IF(NOT HAVE_SUPPORTED_CLANG_VERSION)
+ MESSAGE(FATAL_ERROR "Clang 3.3 or newer is required!")
+ ENDIF()
++ ELSEIF(CMAKE_COMPILER_IS_GNUCC)
++ EXECUTE_PROCESS(COMMAND ${CMAKE_C_COMPILER} -dumpversion
++ OUTPUT_VARIABLE GCC_VERSION)
++ IF(GCC_VERSION VERSION_LESS 4.4)
++ MESSAGE(FATAL_ERROR "GCC 4.4 or newer is required!")
++ ENDIF()
+ ELSE()
+ MESSAGE(FATAL_ERROR "Unsupported compiler!")
+ ENDIF()