aboutsummaryrefslogtreecommitdiff
path: root/databases/xtrabackup
diff options
context:
space:
mode:
authorOleksii Samorukov <samm@FreeBSD.org>2020-05-26 07:42:22 +0000
committerOleksii Samorukov <samm@FreeBSD.org>2020-05-26 07:42:22 +0000
commit5806905dc7eac8e2a330ac0acd02132f91765071 (patch)
treebf96c7e2e13e848596957c92a45fa33cdaa5ad87 /databases/xtrabackup
parent390c3b92ef0f7f89ea98e735361c747af859278d (diff)
downloadports-5806905dc7eac8e2a330ac0acd02132f91765071.tar.gz
ports-5806905dc7eac8e2a330ac0acd02132f91765071.zip
Notes
Diffstat (limited to 'databases/xtrabackup')
-rw-r--r--databases/xtrabackup/Makefile7
-rw-r--r--databases/xtrabackup/distinfo6
-rw-r--r--databases/xtrabackup/files/patch-cmake-install_layout.cmake6
-rw-r--r--databases/xtrabackup/files/patch-cmake_os_FreeBSD.cmake24
-rw-r--r--databases/xtrabackup/files/patch-storage-myisam-mi_dynrec.c6
5 files changed, 33 insertions, 16 deletions
diff --git a/databases/xtrabackup/Makefile b/databases/xtrabackup/Makefile
index 7435b292fe71..f0e2c6ddab8f 100644
--- a/databases/xtrabackup/Makefile
+++ b/databases/xtrabackup/Makefile
@@ -2,10 +2,10 @@
# $FreeBSD$
PORTNAME= xtrabackup
-DISTVERSION= 2.4.15
+DISTVERSION= 2.4.20
CATEGORIES= databases
-MASTER_SITES= https://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-${PORTVERSION}/source/tarball/:xtrabackup \
- SF/boost/boost/1.59.0/:boost
+MASTER_SITES= https://www.percona.com/downloads/Percona-XtraBackup-${PORTVERSION:R}/Percona-XtraBackup-${PORTVERSION}/source/tarball/:xtrabackup \
+ https://ftp.osuosl.org/pub/blfs/conglomeration/boost/:boost SF/boost/boost/1.59.0/:boost
DISTFILES= percona-${PORTNAME}-${PORTVERSION}.tar.gz:xtrabackup \
boost_1_59_0.tar.bz2:boost
@@ -31,6 +31,7 @@ RUN_DEPENDS= qpress:archivers/qpress
# autotool is in use for 5.1 builds
USES= alias autoreconf:build bison cmake:noninja compiler:c++11-lang \
cpe gettext libtool perl5 shebangfix
+USE_CXXSTD= c++11
CPE_VENDOR= percona
SHEBANG_FILES= storage/innobase/xtrabackup/xbcloud_osenv.sh
CMAKE_ARGS= -DWITH_BOOST=${WRKDIR}/boost_1_59_0 -DWITH_VERSION_CHECK=OFF
diff --git a/databases/xtrabackup/distinfo b/databases/xtrabackup/distinfo
index 27e8bc3210b5..b222050a4f7d 100644
--- a/databases/xtrabackup/distinfo
+++ b/databases/xtrabackup/distinfo
@@ -1,5 +1,5 @@
-TIMESTAMP = 1570253950
-SHA256 (percona-xtrabackup-2.4.15.tar.gz) = ea8e50b50ff7230220329431339a1f3d97af2365a31f2afe6533d13ff95c20db
-SIZE (percona-xtrabackup-2.4.15.tar.gz) = 57357749
+TIMESTAMP = 1590443927
+SHA256 (percona-xtrabackup-2.4.20.tar.gz) = 4b751f104de7757dfb9bd83f8f045a17dc9f96325dcf4fb6a3d4b8cd5e499b2d
+SIZE (percona-xtrabackup-2.4.20.tar.gz) = 59782001
SHA256 (boost_1_59_0.tar.bz2) = 727a932322d94287b62abb1bd2d41723eec4356a7728909e38adb65ca25241ca
SIZE (boost_1_59_0.tar.bz2) = 70389425
diff --git a/databases/xtrabackup/files/patch-cmake-install_layout.cmake b/databases/xtrabackup/files/patch-cmake-install_layout.cmake
index f4d8a3f77fdf..e823abeffe31 100644
--- a/databases/xtrabackup/files/patch-cmake-install_layout.cmake
+++ b/databases/xtrabackup/files/patch-cmake-install_layout.cmake
@@ -1,6 +1,6 @@
---- cmake/install_layout.cmake 2017-02-06 18:02:22.189764000 +0000
-+++ cmake/install_layout.cmake 2017-02-06 18:02:29.642407000 +0000
-@@ -160,7 +160,7 @@
+--- cmake/install_layout.cmake.orig 2020-04-10 19:45:19 UTC
++++ cmake/install_layout.cmake
+@@ -160,7 +160,7 @@ SET(INSTALL_INFODIR_STANDALONE "docs")
#
SET(INSTALL_SHAREDIR_STANDALONE "share")
SET(INSTALL_MYSQLSHAREDIR_STANDALONE "share")
diff --git a/databases/xtrabackup/files/patch-cmake_os_FreeBSD.cmake b/databases/xtrabackup/files/patch-cmake_os_FreeBSD.cmake
index 13e579ee06bb..2b65a3faef22 100644
--- a/databases/xtrabackup/files/patch-cmake_os_FreeBSD.cmake
+++ b/databases/xtrabackup/files/patch-cmake_os_FreeBSD.cmake
@@ -1,9 +1,17 @@
---- cmake/os/FreeBSD.cmake.orig 2019-07-19 15:13:48 UTC
+--- cmake/os/FreeBSD.cmake.orig 2020-05-26 05:35:19 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!")
+@@ -36,6 +36,20 @@ IF(NOT FORCE_UNSUPPORTED_COMPILER)
+ IF(GCC_VERSION VERSION_LESS 4.4)
+ MESSAGE(FATAL_ERROR "GCC 4.4 or newer is required!")
ENDIF()
++ CHECK_C_SOURCE_RUNS("
++ int main()
++ {
++ return (__clang_major__ >= 4);
++ }" I386_ATOMIC_BUILTINS)
++ IF((CMAKE_SYSTEM_PROCESSOR MATCHES "i386") AND (NOT I386_ATOMIC_BUILTINS))
++ SET(HAVE_GCC_ATOMIC_BUILTINS CACHE INTERNAL "")
++ ENDIF()
+ ELSEIF(CMAKE_COMPILER_IS_GNUCC)
+ EXECUTE_PROCESS(COMMAND ${CMAKE_C_COMPILER} -dumpversion
+ OUTPUT_VARIABLE GCC_VERSION)
@@ -13,3 +21,11 @@
ELSE()
MESSAGE(FATAL_ERROR "Unsupported compiler!")
ENDIF()
+@@ -44,4 +58,6 @@ ENDIF()
+ # Should not be needed any more, but kept for easy resurrection if needed
+ # #Legacy option, maybe not needed anymore , taken as is from autotools build
+ # ADD_DEFINITIONS(-DNET_RETRY_COUNT=1000000)
+-
++# For GCC maybe it's also good idea to use
++# ADD_DEFINITIONS(-D_GNU_SOURCE)
++
diff --git a/databases/xtrabackup/files/patch-storage-myisam-mi_dynrec.c b/databases/xtrabackup/files/patch-storage-myisam-mi_dynrec.c
index 4b31a89c0ddf..4436e2e4b195 100644
--- a/databases/xtrabackup/files/patch-storage-myisam-mi_dynrec.c
+++ b/databases/xtrabackup/files/patch-storage-myisam-mi_dynrec.c
@@ -1,6 +1,6 @@
---- storage/myisam/mi_dynrec.c.orig 2018-03-16 23:50:04.334166000 +0300
-+++ storage/myisam/mi_dynrec.c 2018-03-16 23:50:29.996533000 +0300
-@@ -65,18 +65,13 @@
+--- storage/myisam/mi_dynrec.c.orig 2020-04-10 19:45:19 UTC
++++ storage/myisam/mi_dynrec.c
+@@ -65,18 +65,13 @@ my_bool mi_dynmap_file(MI_INFO *info, my_off_t size)
DBUG_RETURN(1);
}
/*