This works around a broken inkscape in Debian Trixie. With Inkscape 1.4 (e7c3feb100, 2024-10-09). When executing multiple inkscape instances in parallel it often fails with:
terminate called after throwing an instance of 'Gio::DBus::Error' This is described in [1] and this patch utilizes a workaround from this thread. [1] https://gitlab.com/inkscape/inkscape/-/issues/4716 Signed-off-by: Sascha Hauer <[email protected]> --- lib/logo/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/logo/Makefile b/lib/logo/Makefile index 9c14105e88..9792a4699f 100644 --- a/lib/logo/Makefile +++ b/lib/logo/Makefile @@ -68,8 +68,11 @@ quiet_cmd_bmp = BMP $@ %.bmp: $(srctree)/Documentation/barebox.svg FORCE $(call if_changed,bmp) +# export SELF_CALL=xxx works around issue in [1]. This is seen on Debian Trixie +# with Inkscape 1.4 (e7c3feb100, 2024-10-09) +# [1] https://gitlab.com/inkscape/inkscape/-/issues/4716 quiet_cmd_png = PNG $@ - cmd_png = convert $(OPTS_$(@F:.png=)) $(CONVERTOPTS) $< png:$@ + cmd_png = export SELF_CALL=xxx ; convert $(OPTS_$(@F:.png=)) $(CONVERTOPTS) $< png:$@ %.png: $(srctree)/Documentation/barebox.svg FORCE $(call if_changed,png) -- 2.47.2
