Blame SOURCES/dblatex-0.3.11-replace-inkscape-by-rsvg.patch

14560c
From ed7d6c2fa6e7848295893d455789ecb3e692b49f Mon Sep 17 00:00:00 2001
14560c
Message-Id: <ed7d6c2fa6e7848295893d455789ecb3e692b49f.1613646685.git.github@grubix.eu>
14560c
From: Michael J Gruber <github@grubix.eu>
14560c
Date: Thu, 18 Feb 2021 12:09:29 +0100
14560c
Subject: [PATCH] replace inkscape by rsvg
14560c
14560c
Inkscape broke headless commandline usage and appears not be fixing it,
14560c
see: https://gitlab.com/inkscape/inkscape/-/issues/1342
14560c
14560c
Switch to rsvg as recommended by upstream, see:
14560c
https://sourceforge.net/p/dblatex/mailman/message/37005820/
14560c
14560c
Signed-off-by: Michael J Gruber <github@grubix.eu>
14560c
---
14560c
 lib/dbtexmf/core/imagedata.py | 2 +-
14560c
 1 file changed, 1 insertion(+), 1 deletion(-)
14560c
14560c
diff --git a/lib/dbtexmf/core/imagedata.py b/lib/dbtexmf/core/imagedata.py
14560c
index 32b7746..7c13e79 100644
14560c
--- a/lib/dbtexmf/core/imagedata.py
14560c
+++ b/lib/dbtexmf/core/imagedata.py
14560c
@@ -181,7 +181,7 @@ class FigConverter(ImageConverter):
14560c
 class SvgConverter(ImageConverter):
14560c
     def __init__(self, imgsrc, imgdst="", docformat="", backend=""):
14560c
         ImageConverter.__init__(self, imgsrc="svg", imgdst=imgdst)
14560c
-        self.add_command(["inkscape", "-z", "-D", "--export-%(dst)s=%(output)s",
14560c
+        self.add_command(["rsvg-convert", "-a", "-f", "%(dst)s", "-o", "%(output)s",
14560c
                           "%(input)s"])
14560c
 
14560c
 
14560c
-- 
14560c
2.30.1.672.g8d3081386a
14560c