package/libxmlb: new package
PATCH 1/1 package/libxmlb: new package
From: Yegor Yefremov <[email protected]>
Signed-off-by Yegor Yefremov <[email protected]>
--- DEVELOPERS | 1 + package/Config.in | 1 + package/libxmlb/Config.in | 18 ++++++++++++++++++ package/libxmlb/libxmlb.hash | 4 ++++ package/libxmlb/libxmlb.mk | 36 ++++++++++++++++++++++++++++++++++++ 5 files changed, 60 insertions(+) create mode 100644 package/libxmlb/Config.in create mode 100644 package/libxmlb/libxmlb.hash create mode 100644 package/libxmlb/libxmlb.mk
DEVELOPERS +1 -0
@@ -3284,6 +3284,7 @@ F: package/libsoc/ F: package/libsocketcan/ F: package/libubox/ F: package/libuci/ +F: package/libxmlb/ F: package/linux-firmware/ F: package/linux-serial-test/ F: package/modem-manager/
package/Config.in +1 -0
@@ -1860,6 +1860,7 @@ menu "JSON/XML" source "package/libroxml/Config.in" source "package/libucl/Config.in" source "package/libxml2/Config.in" + source "package/libxmlb/Config.in" source "package/libxmlpp/Config.in" source "package/libxmlrpc/Config.in" source "package/libxslt/Config.in"
package/libxmlb/Config.in new file +18 -0
@@ -0,0 +1,18 @@ +config BR2_PACKAGE_LIBXMLB + bool "libxmlb" + depends on !BR2_STATIC_LIBS # glib2 + depends on BR2_TOOLCHAIN_HAS_THREADS # glib2 + depends on BR2_USE_MMU # glib2 + depends on BR2_USE_WCHAR # glib2 + select BR2_PACKAGE_LIBGLIB2 + select BR2_PACKAGE_LIBSOUP + help + The libxmlb library takes XML source, and converts it + to a structured binary representation with a deduplicated + string table where the strings have the NULs included. + + https://github.com/hughsie/libxmlb + +comment "libxmlb needs a toolchain w/ wchar, threads, dynamic library" + depends on BR2_USE_MMU + depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
package/libxmlb/libxmlb.hash new file +4 -0
@@ -0,0 +1,4 @@ +# Locally computed: +sha256 7050a3e43c4e1f53020cfbdfcb6fd5dc664c6c240faceb5ae3c8830423918262 libxmlb-0.3.19.tar.gz +sha256 20c17d8b8c48a600800dfd14f95d5cb9ff47066a9641ddeab48dc54aec96e331 LICENSE +
package/libxmlb/libxmlb.mk new file +36 -0
@@ -0,0 +1,36 @@ +################################################################################ +# +# libxmlb +# +################################################################################ + +LIBXMLB_VERSION = 0.3.19 +LIBXMLB_SITE = $(call github,hughsie,libxmlb,$(LIBXMLB_VERSION)) +LIBXMLB_LICENSE = LGPL-2.1+ +LIBXMLB_LICENSE_FILES = LICENSE +LIBXMLB_INSTALL_STAGING = YES +LIBXMLB_DEPENDENCIES = libglib2 +LIBXMLB_CONF_OPTS = -Dgtkdoc=false -Dtests=false + +ifeq ($(BR2_PACKAGE_GOBJECT_INTROSPECTION),y) +LIBXMLB_CONF_OPTS += -Dintrospection=true +LIBXMLB_DEPENDENCIES += gobject-introspection +else +LIBXMLB_CONF_OPTS += -Dintrospection=false +endif + +ifeq ($(BR2_PACKAGE_ZSTD),y) +LIBXMLB_DEPENDENCIES += zstd +LIBXMLB_CONF_OPTS += -Dzstd=enabled +else +LIBXMLB_CONF_OPTS += -Dzstd=disabled +endif + +ifeq ($(BR2_PACKAGE_XZ),y) +LIBXMLB_DEPENDENCIES += xz +LIBXMLB_CONF_OPTS += -Dlzma=enabled +else +LIBXMLB_CONF_OPTS += -Dlzma=disabled +endif + +$(eval $(meson-package))
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hello Yegor,
Quoted 3 lines · On Wed, 24 Apr 2024 14:22:40 +0200 yegorslists--- via buildroot…
From: Yegor Yefremov <[email protected]>
Signed-off-by Yegor Yefremov <[email protected]>
I've applied, after fixing two things, one small, one more important.
Quoted 6 lines
package/libxmlb/Config.in new file +0
-0
package/libxmlb/Config.in line 8
Quoted 8 lines
package/libxmlb/Config.in new file +8
-0@@ -0,0 +1,18 @@ +config BR2_PACKAGE_LIBXMLB + bool "libxmlb" + depends on !BR2_STATIC_LIBS # glib2 + depends on BR2_TOOLCHAIN_HAS_THREADS # glib2 + depends on BR2_USE_MMU # glib2 + depends on BR2_USE_WCHAR # glib2 + select BR2_PACKAGE_LIBGLIB2 + select BR2_PACKAGE_LIBSOUP
You select BR2_PACKAGE_LIBSOUP here, but you have no dependency on libsoup in the .mk file, I don't see any traces of libsoup being used in the libxmlb code base, and it builds just fine with only libglib2 as a dependency, so I dropped this (apparently bogus?) select of BR2_PACKAGE_LIBSOUP.
package/libxmlb/libxmlb.hash line 4
Quoted 10 lines
package/libxmlb/libxmlb.hash new file +4
-0@@ -0,0 +1,4 @@ +# Locally computed: +sha256 7050a3e43c4e1f53020cfbdfcb6fd5dc664c6c240faceb5ae3c8830423918262 libxmlb-0.3.19.tar.gz +sha256 20c17d8b8c48a600800dfd14f95d5cb9ff47066a9641ddeab48dc54aec96e331 LICENSE +
This extra line in the hash file caused a check-package warning, so I dropped it.
Thanks!
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot