Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Aug 2019 12:40:26 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r509721 - head/databases/xtrabackup/files
Message-ID:  <201908241240.x7OCeQA8025314@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pkubaj
Date: Sat Aug 24 12:40:26 2019
New Revision: 509721
URL: https://svnweb.freebsd.org/changeset/ports/509721

Log:
  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)

Added:
  head/databases/xtrabackup/files/patch-cmake_os_FreeBSD.cmake   (contents, props changed)

Added: head/databases/xtrabackup/files/patch-cmake_os_FreeBSD.cmake
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/xtrabackup/files/patch-cmake_os_FreeBSD.cmake	Sat Aug 24 12:40:26 2019	(r509721)
@@ -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()



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201908241240.x7OCeQA8025314>