development/mysql-workbench: Fix for gcc >= 7.x.

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
Matteo Bernardini 2017-07-24 16:40:46 +02:00 committed by Robby Workman
parent 7a34ef3965
commit d5ce20f9eb

View file

@ -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