aboutsummaryrefslogtreecommitdiffstats
path: root/community/inkscape/fix-Werror.patch
diff options
context:
space:
mode:
authorMilan P. Stanić <mps@arvanta.net>2020-05-07 19:29:05 +0000
committerMilan P. Stanić <mps@arvanta.net>2020-05-10 17:17:59 +0000
commitd3d262317f81f45a2a871d5daf92f0fa8456ab2e (patch)
tree0a172290a2074d5b1cbf2349fbb24141d16df0c1 /community/inkscape/fix-Werror.patch
parent1dbdb97e7458257e3769e9115203e02b28bf0cdc (diff)
downloadaports-d3d262317f81f45a2a871d5daf92f0fa8456ab2e.tar.bz2
aports-d3d262317f81f45a2a871d5daf92f0fa8456ab2e.tar.xz
community/inkscape: upgrade to 1.0
remove fix-python.patch, not needed for this version add fix-Werror.patch, fixes -Werror flag in cmake files add dependencies which are needed to build this version 'make -j1' to fix fails on parallel build
Diffstat (limited to 'community/inkscape/fix-Werror.patch')
-rw-r--r--community/inkscape/fix-Werror.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/community/inkscape/fix-Werror.patch b/community/inkscape/fix-Werror.patch
new file mode 100644
index 0000000000..dd90ec90e5
--- /dev/null
+++ b/community/inkscape/fix-Werror.patch
@@ -0,0 +1,13 @@
+Fix -Werror flags, build fails with them
+
+--- a/CMakeScripts/DefineDependsandFlags.cmake
++++ b/CMakeScripts/DefineDependsandFlags.cmake
+@@ -26,8 +26,6 @@
+
+ # Errors for common mistakes
+ list(APPEND INKSCAPE_CXX_FLAGS "-fstack-protector-strong")
+-list(APPEND INKSCAPE_CXX_FLAGS "-Werror=format") # e.g.: printf("%s", std::string("foo"))
+-list(APPEND INKSCAPE_CXX_FLAGS "-Werror=format-security") # e.g.: printf(variable);
+ list(APPEND INKSCAPE_CXX_FLAGS_DEBUG "-Og") # -Og for _FORTIFY_SOURCE. One could add -Weffc++ here to see approx. 6000 warnings
+ list(APPEND INKSCAPE_CXX_FLAGS_DEBUG "-D_GLIBCXX_ASSERTIONS")
+ if (CMAKE_COMPILER_IS_GNUCC)