Date: Friday, June 2, 2017 @ 12:10:01
  Author: eworm
Revision: 233409

fix build with GCC 7.1.1

This is temporary and should be reverted when fixed upstream.

Modified:
  mysql-workbench/trunk/PKGBUILD

----------+
 PKGBUILD |    6 ++++++
 1 file changed, 6 insertions(+)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2017-06-02 12:09:49 UTC (rev 233408)
+++ PKGBUILD    2017-06-02 12:10:01 UTC (rev 233409)
@@ -71,6 +71,12 @@
        # gdal: use CPLFree()
        patch -Np1 < "${srcdir}"/0005-gdal-use-CPLFree.patch
 
+       # GCC 7.x introduced some new warnings, remove '-Werror' for the build 
to complete
+       sed -i 's|-Werror||' $(find -name CMakeLists.txt)
+
+       # GCC 7.x complains about unsupported flag
+       sed -i 's|-Wno-deprecated-register||' ext/scintilla/gtk/CMakeLists.txt
+
        # we need python 2.x
        sed -i '/^FIND_PROGRAM(PYTHON_EXEC /c FIND_PROGRAM(PYTHON_EXEC 
"python2")' \
                CMakeLists.txt

Reply via email to