Skip to contentSkip to conversation

package/libsvg-cairo: remove package

PATCH New Thomas Petazzoni via buildroot 1 participant 2 messages Dec 27, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 package/libsvg-cairo: remove package

This package is no longer maintained, no release since 2005, and its dependency libsvg has build issues as it uses too old XML APIs:

/home/thomas/projets/buildroot/output/host/bin/../aarch64-buildroot-linux-gnu/sysroot/usr/include/libxml2/libxml/SAX.h:18:4: warning: #warning "libxml/SAX.h is deprecated" [-Wcpp]
18 | #warning "libxml/SAX.h is deprecated"

      |    ^~~~~~~

svgint.h:42:9: error: unknown type name 'xmlParserCtxtPtr'

   42 | typedef xmlParserCtxtPtr svg_xml_parser_context_t;
      |         ^~~~~~~~~~~~~~~~
---
 Config.in.legacy                       |  8 ++++++++
 DEVELOPERS                             |  1 -
 package/Config.in                      |  1 -
 package/libsvg-cairo/Config.in         | 11 -----------
 package/libsvg-cairo/libsvg-cairo.hash |  6 ------
 package/libsvg-cairo/libsvg-cairo.mk   | 16 ----------------
 6 files changed, 8 insertions(+), 35 deletions(-)
 delete mode 100644 package/libsvg-cairo/Config.in
 delete mode 100644 package/libsvg-cairo/libsvg-cairo.hash
 delete mode 100644 package/libsvg-cairo/libsvg-cairo.mk
Config.in.legacy +8 -0
index e10fd95f8d..e42f70d0d9 100644
@@ -146,6 +146,14 @@ endif
 
 comment "Legacy options removed in 2026.02"
 
+config BR2_PACKAGE_LIBSVG_CAIRO
+	bool "libsvg-cairo package removed"
+	select BR2_LEGACY
+	help
+	  The libsvg-cairo package has been removed. Its latest
+	  upstream release was from 2005, and it wasn't used by any
+	  other Buildroot package.
+
 config BR2_PACKAGE_OPENCV3_WITH_FFMPEG
 	bool "opencv3 ffmpeg support removed"
 	select BR2_LEGACY
DEVELOPERS +0 -1
index a9eb5d9231..2b27904ee0 100644
@@ -584,7 +584,6 @@ F:	package/sunxi-boards/
 N:	Carsten Schoenert <[email protected]>
 F:	package/libdvbsi/
 F:	package/libsvg/
-F:	package/libsvg-cairo/
 
 N:	Cédric Chépied <[email protected]>
 F:	package/znc/
package/Config.in +0 -1
index f33c116ec5..05d35f6861 100644
@@ -1769,7 +1769,6 @@ menu "Graphics"
 	source "package/libraw/Config.in"
 	source "package/librsvg/Config.in"
 	source "package/libsvg/Config.in"
-	source "package/libsvg-cairo/Config.in"
 	source "package/libva/Config.in"
 	source "package/libva-intel-driver/Config.in"
 	source "package/libvdpau/Config.in"
package/libsvg-cairo/Config.in deleted +0 -11
deleted file mode 100644
index 4602e93c2a..0000000000
@@ -1,11 +0,0 @@
-config BR2_PACKAGE_LIBSVG_CAIRO
-	bool "libsvg-cairo"
-	select BR2_PACKAGE_CAIRO
-	select BR2_PACKAGE_CAIRO_PNG
-	select BR2_PACKAGE_LIBSVG
-	help
-	  Libsvg-cairo provides the ability to render SVG content from
-	  files or buffers. All rendering is performed using the cairo
-	  rendering library.
-
-	  http://cairographics.org
package/libsvg-cairo/libsvg-cairo.hash deleted +0 -6
deleted file mode 100644
index d9cfbffa7a..0000000000
@@ -1,6 +0,0 @@
-# From http://cairographics.org/snapshots/libsvg-cairo-0.1.6.tar.gz.md5
-md5  d79da7b3a60ad8c8e4b902c9b3563047  libsvg-cairo-0.1.6.tar.gz
-
-# Locally calculated
-sha256  a380be6a78ec2938100ce904363815a94068fca372c666b8cc82aa8711a0215c  libsvg-cairo-0.1.6.tar.gz
-sha256  d80c9d084ebfb50ea1ed91bfbc2410d6ce542097a32c43b00781b83adcb8c77f  COPYING
package/libsvg-cairo/libsvg-cairo.mk deleted +0 -16
deleted file mode 100644
index f7a105e03e..0000000000
@@ -1,16 +0,0 @@
-################################################################################
-#
-# libsvg-cairo
-#
-################################################################################
-
-LIBSVG_CAIRO_VERSION = 0.1.6
-LIBSVG_CAIRO_SITE = http://cairographics.org/snapshots
-LIBSVG_CAIRO_DEPENDENCIES = cairo libsvg
-LIBSVG_CAIRO_INSTALL_STAGING = YES
-LIBSVG_CAIRO_LICENSE = LGPL-2.1+
-LIBSVG_CAIRO_LICENSE_FILES = COPYING
-
-LIBSVG_CAIRO_CONF_OPTS = --without-x
-
-$(eval $(autotools-package))
Signature · 6 lines
2.52.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH 2/2 package/libsvg: remove package

This package is no longer maintained, no release since 2005, and it has build issues as it uses too old XML APIs:

/home/thomas/projets/buildroot/output/host/bin/../aarch64-buildroot-linux-gnu/sysroot/usr/include/libxml2/libxml/SAX.h:18:4: warning: #warning "libxml/SAX.h is deprecated" [-Wcpp]
18 | #warning "libxml/SAX.h is deprecated"

      |    ^~~~~~~

svgint.h:42:9: error: unknown type name 'xmlParserCtxtPtr'

   42 | typedef xmlParserCtxtPtr svg_xml_parser_context_t;
      |         ^~~~~~~~~~~~~~~~

Fixes:

https://autobuild.buildroot.net/results/895fdba2f3fcaa42aa93946f2532351d39b16647/

---
 .checkpackageignore                           |  2 --
 Config.in.legacy                              |  9 +++++
 DEVELOPERS                                    |  1 -
 package/Config.in                             |  1 -
 .../0001-fix-expat-static-declaration.patch   | 36 -------------------
 ...fined-symbol-png_set_gray_1_2_4_to_8.patch | 32 -----------------
 package/libsvg/Config.in                      | 12 -------
 package/libsvg/libsvg.hash                    |  6 ----
 package/libsvg/libsvg.mk                      | 23 ------------
 9 files changed, 9 insertions(+), 113 deletions(-)
 delete mode 100644 package/libsvg/0001-fix-expat-static-declaration.patch
 delete mode 100644 package/libsvg/0002-Fix-undefined-symbol-png_set_gray_1_2_4_to_8.patch
 delete mode 100644 package/libsvg/Config.in
 delete mode 100644 package/libsvg/libsvg.hash
 delete mode 100644 package/libsvg/libsvg.mk
.checkpackageignore +0 -2
index cae06b629c..0a4b282c43 100644
@@ -608,8 +608,6 @@ package/libsigrokdecode/0003-configure-ac-Use-python3-embed-pc-as-a-fallback.pat
 package/libspatialindex/0001-allow-building-static-libs.patch lib_patch.Upstream
 package/libspatialindex/0002-CMakeLists.txt-fix-CMAKE_BUILD_TYPE.patch lib_patch.Upstream
 package/libsquish/0001-Makefile-add-f-option-for-ln-to-remove-existing-dest.patch lib_patch.Upstream
-package/libsvg/0001-fix-expat-static-declaration.patch lib_patch.Upstream
-package/libsvg/0002-Fix-undefined-symbol-png_set_gray_1_2_4_to_8.patch lib_patch.Upstream
 package/libtalloc/0001-buildtools-wafsamba-add-disable-stack-protector-opti.patch lib_patch.Upstream
 package/libtelnet/0001-fix-compilation-without-zlib.patch lib_patch.Upstream
 package/libtomcrypt/0001-fix-CVE-2019-17362.patch lib_patch.Upstream
Config.in.legacy +9 -0
index e42f70d0d9..6547a0513b 100644
@@ -146,6 +146,15 @@ endif
 
 comment "Legacy options removed in 2026.02"
 
+config BR2_PACKAGE_LIBSVG
+	bool "libsvg package removed"
+	select BR2_LEGACY
+	help
+	  The libsvg package has been removed. Its latest upstream
+	  release was from 2005, it was incompatible with recent
+	  libxml2 versions, and it wasn't used by any other Buildroot
+	  package except libsvg-cairo, also removed.
+
 config BR2_PACKAGE_LIBSVG_CAIRO
 	bool "libsvg-cairo package removed"
 	select BR2_LEGACY
DEVELOPERS +0 -1
index 2b27904ee0..e7d1fef152 100644
@@ -583,7 +583,6 @@ F:	package/sunxi-boards/
 
 N:	Carsten Schoenert <[email protected]>
 F:	package/libdvbsi/
-F:	package/libsvg/
 
 N:	Cédric Chépied <[email protected]>
 F:	package/znc/
package/Config.in +0 -1
index 05d35f6861..4b4c4d2e37 100644
@@ -1768,7 +1768,6 @@ menu "Graphics"
 	source "package/libqrencode/Config.in"
 	source "package/libraw/Config.in"
 	source "package/librsvg/Config.in"
-	source "package/libsvg/Config.in"
 	source "package/libva/Config.in"
 	source "package/libva-intel-driver/Config.in"
 	source "package/libvdpau/Config.in"
package/libsvg/0001-fix-expat-static-declaration.patch deleted +0 -36
deleted file mode 100644
index 1086785d0f..0000000000
@@ -1,36 +0,0 @@
-Newer expat versions use different declarations of the following functions:
-
-static void _svg_parser_sax_start_element ();
-static void _svg_parser_sax_end_element ();
-static void _svg_parser_sax_characters ();
-
-We need to patch the libsvg source to not follow into a build error like
-   "static declaration of 'foo' follows non-static declaration"
-and use the functions from the expat library instead from the libsvg source.
-
-Patch based on
-http://oe-lite.org/redmine/projects/xorg/repository/revisions/c4df7951e846e1be718f37f2455696a1d0861f3d/entry/recipes/cairo/libsvg-0.1.4/gcc4_and_expat.patch
-
-Signed-off-by: Carsten Schoenert <[email protected]>
-[Dario: make the patch to be applied with fuzz factor 0]
-Signed-off-by: Dario Binacchi <[email protected]>
-
-diff -bur libsvg-0.1.4~orig/src/svg_parser_expat.c libsvg-0.1.4/src/svg_parser_expat.c
---- libsvg-0.1.4~orig/src/svg_parser_expat.c	2005-02-14 11:26:26.000000000 -0600
-+++ libsvg-0.1.4/src/svg_parser_expat.c	2006-02-10 21:58:20.000000000 -0600
-@@ -30,6 +30,7 @@
- #include "svgint.h"
- #include "svg_hash.h"
- 
-+#ifndef LIBSVG_EXPAT
- static void
- _svg_parser_sax_start_element (void		*closure,
- 			       const XML_Char	*name,
-@@ -43,6 +44,7 @@
- _svg_parser_sax_characters (void		*closure,
- 			    const XML_Char	*ch,
- 			    int			len);
-+#endif
- 
- static void
- _svg_parser_sax_warning (void		*closure,
package/libsvg/0002-Fix-undefined-symbol-png_set_gray_1_2_4_to_8.patch deleted +0 -32
deleted file mode 100644
index d0bbeab074..0000000000
@@ -1,32 +0,0 @@
-From 213e5749947fad08d985eda8d06839efedda78ef Mon Sep 17 00:00:00 2001
-From: Peter Seiderer <[email protected]>
-Date: Thu, 5 Mar 2015 21:42:52 +0100
-Subject: [PATCH] Fix undefined symbol png_set_gray_1_2_4_to_8
-
-Since libpng-1.4.0 the function png_set_gray_1_2_4_to_8() was
-removed, the replacement function is called
-png_set_expand_gray_1_2_4_to_8() (see [1]).
-
-[1] http://libpng.sourceforge.net/ANNOUNCE-1.4.0.txt
-
-Signed-off-by: Peter Seiderer <[email protected]>
----
- src/svg_image.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/src/svg_image.c b/src/svg_image.c
-index cd8a95a..f256943 100755
---- a/src/svg_image.c
-+++ b/src/svg_image.c
-@@ -271,7 +271,7 @@ _svg_image_read_png (const char		*filename,
- 
-     /* expand gray bit depth if needed */
-     if (color_type == PNG_COLOR_TYPE_GRAY && depth < 8)
--	png_set_gray_1_2_4_to_8 (png);
-+	png_set_expand_gray_1_2_4_to_8 (png);
- 
-     /* transform transparency to alpha */
-     if (png_get_valid(png, info, PNG_INFO_tRNS))
--- 
-2.1.4
-
package/libsvg/Config.in deleted +0 -12
deleted file mode 100644
index 741ef10c7a..0000000000
@@ -1,12 +0,0 @@
-config BR2_PACKAGE_LIBSVG
-	bool "libsvg"
-	select BR2_PACKAGE_LIBPNG
-	select BR2_PACKAGE_JPEG
-	select BR2_PACKAGE_LIBXML2 if !BR2_PACKAGE_EXPAT
-	help
-	  Libsvg provides a parser for SVG content in files or buffers.
-	  Libsvg does not do any rendering, but instead provides a
-	  function-based interface that can be used by various rendering
-	  engines.
-
-	  http://cairographics.org/snapshots/
package/libsvg/libsvg.hash deleted +0 -6
deleted file mode 100644
index 4a9d42a651..0000000000
@@ -1,6 +0,0 @@
-# From http://cairographics.org/snapshots/libsvg-0.1.4.tar.gz.md5
-md5  ce0715e3013f78506795fba16e8455d3  libsvg-0.1.4.tar.gz
-
-# Locally calculated
-sha256  4c3bf9292e676a72b12338691be64d0f38cd7f2ea5e8b67fbbf45f1ed404bc8f  libsvg-0.1.4.tar.gz
-sha256  d245807f90032872d1438d741ed21e2490e1175dc8aa3afa5ddb6c8e529b58e5  COPYING
package/libsvg/libsvg.mk deleted +0 -23
deleted file mode 100644
index 45d730db1f..0000000000
@@ -1,23 +0,0 @@
-################################################################################
-#
-# libsvg
-#
-################################################################################
-
-LIBSVG_VERSION = 0.1.4
-LIBSVG_SITE = http://cairographics.org/snapshots
-LIBSVG_DEPENDENCIES = host-pkgconf libpng jpeg
-LIBSVG_INSTALL_STAGING = YES
-LIBSVG_LICENSE = LGPL-2.0+
-LIBSVG_LICENSE_FILES = COPYING
-
-# libsvg needs at last a XML parser
-ifeq ($(BR2_PACKAGE_EXPAT),y)
-LIBSVG_CONF_OPTS += --with-expat
-LIBSVG_DEPENDENCIES += expat
-else
-LIBSVG_CONF_OPTS += --with-libxml2
-LIBSVG_DEPENDENCIES += libxml2
-endif
-
-$(eval $(autotools-package))
Signature · 6 lines
2.52.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot