summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
author Giancarlo Dessì2023-12-11 11:29:29 +0100
committer Willy Sudiarto Raharjo2023-12-16 02:56:12 +0100
commita71b3ab9c4df774013fa6d05bfea08955e15750c (patch)
treeebeee9508f08464a105faef597ef56af911ff6bb /graphics
parent0921bd1296b55ca3aea40ddd31e26b2bcbe84e24 (diff)
downloadslackbuilds-a71b3ab9c4df774013fa6d05bfea08955e15750c.tar.gz
graphics/inkscape: Patch for libxml >= 2.12.x.
Don't hardcode make jobs Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics')
-rw-r--r--graphics/inkscape/inkscape.SlackBuild5
-rw-r--r--graphics/inkscape/libxml2-2.12.patch33
2 files changed, 35 insertions, 3 deletions
diff --git a/graphics/inkscape/inkscape.SlackBuild b/graphics/inkscape/inkscape.SlackBuild
index 2c1db6af1f..416df46df2 100644
--- a/graphics/inkscape/inkscape.SlackBuild
+++ b/graphics/inkscape/inkscape.SlackBuild
@@ -94,8 +94,7 @@ dos2unix -k -q share/extensions/*.py
# Fix man page location:
sed -i CMakeScripts/Pod2man.cmake -e "s/SHARE_INSTALL/CMAKE_INSTALL_PREFIX/g"
-# patch from archlinux
-#patch -p1 < $CWD/poppler-21.11.0.patch
+patch -p1 < $CWD/libxml2-2.12.patch
mkdir -p build
cd build
@@ -114,7 +113,7 @@ cd build
-DWITH_GRAPHICS_MAGICK=ON \
-DWITH_IMAGE_MAGICK=OFF \
..
- make -j8
+ make
make install DESTDIR=$PKG
cd ..
diff --git a/graphics/inkscape/libxml2-2.12.patch b/graphics/inkscape/libxml2-2.12.patch
new file mode 100644
index 0000000000..dc5b0f5346
--- /dev/null
+++ b/graphics/inkscape/libxml2-2.12.patch
@@ -0,0 +1,33 @@
+From 694d8ae43d06efff21adebf377ce614d660b24cd Mon Sep 17 00:00:00 2001
+From: Christian Hesse <mail@eworm.de>
+Date: Fri, 17 Nov 2023 22:30:42 +0100
+Subject: [PATCH] include missing header file
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+This fixes build error:
+```
+/build/inkscape/src/inkscape/src/object/uri.cpp: In constructor ‘Inkscape::URI::URI(const gchar*, const char*)’:
+/build/inkscape/src/inkscape/src/object/uri.cpp:86:9: error: ‘xmlFree’ was not declared in this scope; did you mean ‘xmlFreeURI’?
+ 86 | xmlFree(full);
+```
+---
+ src/object/uri.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/object/uri.h b/src/object/uri.h
+index 381adec58cf..d5b211fe2b2 100644
+--- a/src/object/uri.h
++++ b/src/object/uri.h
+@@ -13,6 +13,7 @@
+ #define INKSCAPE_URI_H
+
+ #include <libxml/uri.h>
++#include <libxml/xmlmemory.h>
+ #include <memory>
+ #include <string>
+
+--
+GitLab
+