summaryrefslogtreecommitdiff
path: root/dev-db
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2020-01-31 11:33:10 +0100
committerHans de Graaff <graaff@gentoo.org>2020-01-31 11:33:24 +0100
commite997d6b79ac1d6f0839b6d38428d03a6ff2bcba4 (patch)
tree7e845552c33462d9ad9e64c5cf8067b9586a80ce /dev-db
parentprofiles: Mask kde-misc/kanyremote for removal (diff)
downloadgentoo-e997d6b79ac1d6f0839b6d38428d03a6ff2bcba4.tar.gz
gentoo-e997d6b79ac1d6f0839b6d38428d03a6ff2bcba4.tar.bz2
gentoo-e997d6b79ac1d6f0839b6d38428d03a6ff2bcba4.zip
dev-db/mysql-workbench: fix building against mysql-connector-c++-8
Thanks to fedeliallalinea for providing a patch and Marco Genasci for linking it to the bug. Closes: https://bugs.gentoo.org/702666 Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-db')
-rw-r--r--dev-db/mysql-workbench/files/mysql-workbench-8.0.19-mysql-connector-8.patch12
-rw-r--r--dev-db/mysql-workbench/mysql-workbench-8.0.19.ebuild1
2 files changed, 13 insertions, 0 deletions
diff --git a/dev-db/mysql-workbench/files/mysql-workbench-8.0.19-mysql-connector-8.patch b/dev-db/mysql-workbench/files/mysql-workbench-8.0.19-mysql-connector-8.patch
new file mode 100644
index 000000000000..c624dea0e56d
--- /dev/null
+++ b/dev-db/mysql-workbench/files/mysql-workbench-8.0.19-mysql-connector-8.patch
@@ -0,0 +1,12 @@
+diff -Naru a/build/cmake/Modules/FindMySQLCppConn.cmake b/build/cmake/Modules/FindMySQLCppConn.cmake
+--- a/build/cmake/Modules/FindMySQLCppConn.cmake 2019-12-18 13:31:34.520496484 +0100
++++ b/build/cmake/Modules/FindMySQLCppConn.cmake 2019-12-18 13:32:32.590496631 +0100
+@@ -27,7 +27,7 @@
+ set(MySQLCppConn_FIND_QUIETLY TRUE)
+ endif ()
+
+-find_path(MySQLCppConn_INCLUDE_DIR NAMES mysql_connection.h PATHS /usr/include /usr/local/include)
++find_path(MySQLCppConn_INCLUDE_DIR NAMES mysql_connection.h PATHS /usr/include /usr/include/jdbc /usr/local/include /usr/local/include/jdbc)
+
+ SET(MySQLCppConn_NAMES mysqlcppconn)
+
diff --git a/dev-db/mysql-workbench/mysql-workbench-8.0.19.ebuild b/dev-db/mysql-workbench/mysql-workbench-8.0.19.ebuild
index faddecba8cf4..4303dbc9863d 100644
--- a/dev-db/mysql-workbench/mysql-workbench-8.0.19.ebuild
+++ b/dev-db/mysql-workbench/mysql-workbench-8.0.19.ebuild
@@ -70,6 +70,7 @@ S="${WORKDIR}"/"${MY_P}"
PATCHES=(
"${FILESDIR}/${PN}-6.2.5-wbcopytables.patch"
+ "${FILESDIR}/${P}-mysql-connector-8.patch"
)
src_unpack() {