summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Vroon <chainsaw@gentoo.org>2018-07-09 10:38:46 +0100
committerTony Vroon <chainsaw@gentoo.org>2018-07-09 10:38:58 +0100
commit44dd9ff5bceb535331c9c5c4dee596e224f177d0 (patch)
tree05012b7bc449a5e7a8a5dabff2bd435334e9132b /dev-db/tokumx
parentapp-doc/gnucash-docs: Bump to 3.2 (diff)
downloadgentoo-44dd9ff5bceb535331c9c5c4dee596e224f177d0.tar.gz
gentoo-44dd9ff5bceb535331c9c5c4dee596e224f177d0.tar.bz2
gentoo-44dd9ff5bceb535331c9c5c4dee596e224f177d0.zip
dev-db/tokumx: Updated patching to avoid GCC 8 final link failure.
Updated patch by Mariusz Ceier to avoid final link failure on GCC 8. It also seems significantly cleaner. Removing 2.0.2 and bumping up revision. Closes: https://bugs.gentoo.org/625158 Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'dev-db/tokumx')
-rw-r--r--dev-db/tokumx/files/tokumx-2.0.2-undefined-reference.patch60
-rw-r--r--dev-db/tokumx/tokumx-2.0.2-r1.ebuild (renamed from dev-db/tokumx/tokumx-2.0.2.ebuild)1
2 files changed, 14 insertions, 47 deletions
diff --git a/dev-db/tokumx/files/tokumx-2.0.2-undefined-reference.patch b/dev-db/tokumx/files/tokumx-2.0.2-undefined-reference.patch
index 012498f7ecd0..d56f7745d1e9 100644
--- a/dev-db/tokumx/files/tokumx-2.0.2-undefined-reference.patch
+++ b/dev-db/tokumx/files/tokumx-2.0.2-undefined-reference.patch
@@ -1,47 +1,15 @@
-diff -uNr a/src/third_party/backup/copier.cc b/src/third_party/backup/copier.cc
---- a/src/third_party/backup/copier.cc 2018-07-06 12:43:52.698825122 +0200
-+++ b/src/third_party/backup/copier.cc 2018-07-06 12:41:40.066804121 +0200
-@@ -107,10 +107,12 @@
- int r = 0;
- char *fname = 0;
- size_t n_known = 0;
-+ char *dupname;
- {
- with_mutex_locked tm(&m_todo_mutex, BACKTRACE(NULL));
- // Start with "."
-- m_todo.push_back(strdup("."));
-+ dupname = strdup(".");
-+ m_todo.push_back(dupname);
- n_known = m_todo.size();
- }
- while (n_known != 0) {
-@@ -697,6 +699,7 @@
- int error = 0;
- with_mutex_locked tm(&m_todo_mutex, BACKTRACE(NULL));
- struct dirent const *e = NULL;
-+ char *dupname;
- while((e = readdir(dir)) != NULL) {
- if (!the_manager.copy_is_enabled()) break;
- if(is_dot(e)) {
-@@ -716,8 +719,9 @@
- goto out;
- }
-
-+ dupname = strdup(new_name);
- // Add it to our todo list.
-- m_todo.push_back(strdup(new_name));
-+ m_todo.push_back(dupname);
- TRACE("~~~Added this file to todo list:", new_name);
- }
- }
-@@ -730,7 +734,9 @@
- //
- void copier::add_file_to_todo(const char *file) throw() {
- with_mutex_locked tm(&m_todo_mutex, BACKTRACE(NULL));
-- m_todo.push_back(strdup(file));
-+ char *dupname;
-+ dupname = strdup(file);
-+ m_todo.push_back(dupname);
- }
+diff -uNr a/src/third_party/backup/CMakeLists.txt b/src/third_party/backup/CMakeLists.txt
+--- a/src/third_party/backup/CMakeLists.txt 2018-07-06 20:36:58.242767167 +0200
++++ b/src/third_party/backup/CMakeLists.txt 2018-07-06 20:37:31.575390786 +0200
+@@ -1,11 +1,6 @@
+ cmake_minimum_required(VERSION 2.8.8)
+ project(HotBackup)
- ////////////////////////////////////////////////////////////////////////////////
+-# No implicit templates, since that's how mysql compiles.
+-if (NOT CMAKE_CXX_COMPILER_ID MATCHES Clang)
+- set(CMAKE_CXX_FLAGS "-fno-implicit-templates ${CMAKE_CXX_FLAGS}")
+-endif ()
+-
+ set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS
+ _FILE_OFFSET_BITS=64
+ _LARGEFILE64_SOURCE)
diff --git a/dev-db/tokumx/tokumx-2.0.2.ebuild b/dev-db/tokumx/tokumx-2.0.2-r1.ebuild
index 04851a084620..866bdec8d243 100644
--- a/dev-db/tokumx/tokumx-2.0.2.ebuild
+++ b/dev-db/tokumx/tokumx-2.0.2-r1.ebuild
@@ -50,7 +50,6 @@ src_configure() {
local mycmakeargs=(
-DTOKU_DEBUG_PARANOID=OFF
-DUSE_VALGRIND=OFF
- -DUSE_BDB=OFF
-DBUILD_TESTING=OFF
-DTOKUMX_DISTNAME=${PV}
-DLIBJEMALLOC="jemalloc"