summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Matteo Bernardini2017-07-24 16:40:46 +0200
committer Matteo Bernardini2021-03-06 10:14:35 +0100
commit7d18d01b65cd0e9617d32b1317dd4c0f89033fd9 (patch)
treee6334c1c1087d97390c83397eec223f34e053fe0
parent3c59cb22425adf5d8a0d1a79baf00e6d9334c620 (diff)
downloadslackbuilds-mysql-workbench.tar.gz
development/mysql-workbench: Fix for gcc >= 7.x.mysql-workbench
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
-rw-r--r--development/mysql-workbench/mysql-workbench.SlackBuild5
1 files changed, 5 insertions, 0 deletions
diff --git a/development/mysql-workbench/mysql-workbench.SlackBuild b/development/mysql-workbench/mysql-workbench.SlackBuild
index b2344f4ef3..b0d607b78f 100644
--- a/development/mysql-workbench/mysql-workbench.SlackBuild
+++ b/development/mysql-workbench/mysql-workbench.SlackBuild
@@ -74,6 +74,11 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# From Archlinux: GCC 7.x complains about an unsupported flag; it also
+# introduced some new warnings, remove '-Werror' for the build to complete
+sed -i 's|-Wno-deprecated-register||' ext/scintilla/gtk/CMakeLists.txt
+sed -i '/^set/s|-Werror -Wall|-Wall|' CMakeLists.txt
+
# Patch from Ponce
patch -p1 < $CWD/config_and_ifconfig_paths.patch