diff options
author | Akira Yokosawa <akiyks@gmail.com> | 2023-10-13 23:38:12 +0900 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2023-10-13 16:38:21 -0700 |
commit | c2f9a99366b3fbfb479996df320f1d63fbf4f6e0 (patch) | |
tree | e950322b05f93d1fc879d182a966eb7e4f72016d | |
parent | 7d38b10a91389d86421bafaf4db0acc4b5330d2b (diff) | |
download | perfbook-c2f9a99366b3fbfb479996df320f1d63fbf4f6e0.tar.gz |
Ignore error of unstable Inkscape
Recently, conversions of SVG --> PDF are hit by unstability of
command-line runs of Inkscape under the GNOME session/window manager.
There is an issue ticket at the upstream Inkscape repository [1].
It was closed after a bugfix in glib2, but Fedora 38 has not
received the fix. Furthermore, pre-release Fedora 39, as well as
openSUSE tumbleweed, still has the very similar symptoms.
As a matter of fact, the conversion is properly finished most
of the time when the Inkscape error happened.
So let's add a make variable IGNORE_INKSCAPE_ERROR and ignore error
code from Inkscape when it is enabled. It is enabled by default.
[1] Issue #4177 "glib2 2.76.0 breaks Command Line export" at
https://gitlab.com/inkscape/inkscape/-/issues/
Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
-rw-r--r-- | Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -109,6 +109,7 @@ INKSCAPE := $(shell $(WHICH) inkscape 2>/dev/null) ifdef INKSCAPE INKSCAPE_ONE := $(shell inkscape --version 2>/dev/null | grep -c "Inkscape 1") endif +IGNORE_INKSCAPE_ERROR ?= 1 LATEXPAND := $(shell $(WHICH) latexpand 2>/dev/null) QPDF := $(shell $(WHICH) qpdf 2>/dev/null) @@ -481,7 +482,11 @@ endif ifeq ($(INKSCAPE_ONE),0) @inkscape --export-pdf=$@ $<i > /dev/null 2>&1 else + ifneq ($(IGNORE_INKSCAPE_ERROR),0) + -@inkscape -o $@ $<i > /dev/null 2>&1 + else @inkscape -o $@ $<i > /dev/null 2>&1 + endif endif @rm -f $<i ifeq ($(chkpagegroup),on) |