summaryrefslogtreecommitdiff
path: root/gnu/packages/inkscape.scm
diff options
context:
space:
mode:
authorMarius Bakke <mbakke@fastmail.com>2018-10-07 18:54:59 +0200
committerMarius Bakke <mbakke@fastmail.com>2019-02-09 21:53:42 +0100
commit0bba8a5cf8a089227549bcb0489628e5b08183c7 (patch)
treeec8f380c326f2426bbffa94dd9c091199f15c045 /gnu/packages/inkscape.scm
parentb6c2805c0b6d9d237c52f9e0cc779fb7af548b93 (diff)
gnu: inkscape: Fix FTBFS with GCC >= 6.
* gnu/packages/inkscape.scm (inkscape)[arguments]: Add phase 'dont-use-system-includes.
Diffstat (limited to 'gnu/packages/inkscape.scm')
-rw-r--r--gnu/packages/inkscape.scm7
1 files changed, 7 insertions, 0 deletions
diff --git a/gnu/packages/inkscape.scm b/gnu/packages/inkscape.scm
index 7b17ebae40..a2c6778b57 100644
--- a/gnu/packages/inkscape.scm
+++ b/gnu/packages/inkscape.scm
@@ -86,6 +86,13 @@
(lambda _
(substitute* "share/icons/application/CMakeLists.txt"
(("gtk-update-icon-cache") "true"))
+ #t))
+ (add-before 'configure 'dont-use-system-includes
+ (lambda _
+ ;; Don't add redundant -isystem includes which confuses GCC7.
+ (substitute* "CMakeScripts/DefineDependsandFlags.cmake"
+ (("include_directories\\(SYSTEM")
+ "include_directories("))
#t)))))
(home-page "https://inkscape.org/")
(synopsis "Vector graphics editor")