mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-26 03:50:44 -09:00
package/xmlstarlet: bump version to 1.7.0
Upstream site switched to Github: https://sourceforge.net/p/xmlstar/feature-requests/50/ Release notes: https://github.com/xmlstarlet/xmlstarlet/releases/tag/1.7.0 Removed patches which are included in this release. Instead of patch 0002 a different fix was committed upstream:f300cd048dSwitched to pkgconf to detect libxml2/libxslt expect for static builds:27063aa63cSigned-off-by: Bernd Kuhls <bernd@kuhls.net> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
a4346a3858
commit
6fec797ebb
@@ -1,97 +0,0 @@
|
||||
From 702988467d67c3a33255de4c543f56767c64c72e Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||
Date: Sat, 23 Dec 2023 21:30:30 +0100
|
||||
Subject: [PATCH] Fix build issues with libxml2 2.12
|
||||
|
||||
Based on initial work from Bernd Kuhls <bernd@kuhls.net>, improved by
|
||||
Yaakov Selkowitz.
|
||||
|
||||
Upstream: https://sourceforge.net/p/xmlstar/patches/22/
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||
---
|
||||
src/trans.h | 1 +
|
||||
src/xml.c | 2 +-
|
||||
src/xml_edit.c | 1 +
|
||||
src/xml_elem.c | 2 +-
|
||||
src/xml_format.c | 1 +
|
||||
src/xmlstar.h | 2 +-
|
||||
6 files changed, 6 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/src/trans.h b/src/trans.h
|
||||
index 016304e..395462c 100644
|
||||
--- a/src/trans.h
|
||||
+++ b/src/trans.h
|
||||
@@ -36,6 +36,7 @@ THE SOFTWARE.
|
||||
#include <libxml/xinclude.h>
|
||||
#include <libxml/parserInternals.h>
|
||||
#include <libxml/uri.h>
|
||||
+#include <libxml/globals.h>
|
||||
|
||||
#include <libxslt/xslt.h>
|
||||
#include <libxslt/xsltInternals.h>
|
||||
diff --git a/src/xml.c b/src/xml.c
|
||||
index cf47cc2..e6f19c1 100644
|
||||
--- a/src/xml.c
|
||||
+++ b/src/xml.c
|
||||
@@ -104,7 +104,7 @@ void reportGenericError(void* ctx, const char * msg, ...) {
|
||||
/* by default all errors are reported */
|
||||
static ErrorInfo errorInfo = { NULL, NULL, VERBOSE, CONTINUE };
|
||||
|
||||
-void reportError(void *ptr, xmlErrorPtr error)
|
||||
+void reportError(void *ptr, const xmlError *error)
|
||||
{
|
||||
ErrorInfo *errorInfo = (ErrorInfo*) ptr;
|
||||
assert(errorInfo);
|
||||
diff --git a/src/xml_edit.c b/src/xml_edit.c
|
||||
index e199178..b3da8a4 100644
|
||||
--- a/src/xml_edit.c
|
||||
+++ b/src/xml_edit.c
|
||||
@@ -42,6 +42,7 @@ THE SOFTWARE.
|
||||
#include <libxml/xpointer.h>
|
||||
#include <libxml/parserInternals.h>
|
||||
#include <libxml/uri.h>
|
||||
+#include <libxml/globals.h>
|
||||
#include <libexslt/exslt.h>
|
||||
|
||||
#include "xmlstar.h"
|
||||
diff --git a/src/xml_elem.c b/src/xml_elem.c
|
||||
index 024e62a..a73038a 100644
|
||||
--- a/src/xml_elem.c
|
||||
+++ b/src/xml_elem.c
|
||||
@@ -186,7 +186,7 @@ typedef struct {
|
||||
* put @name into @data->array[@data->offset]
|
||||
*/
|
||||
static void
|
||||
-hash_key_put(void *payload, void *data, xmlChar *name)
|
||||
+hash_key_put(void *payload, void *data, const xmlChar *name)
|
||||
{
|
||||
ArrayDest *dest = data;
|
||||
dest->array[dest->offset++] = name;
|
||||
diff --git a/src/xml_format.c b/src/xml_format.c
|
||||
index e9da4df..ddd6614 100644
|
||||
--- a/src/xml_format.c
|
||||
+++ b/src/xml_format.c
|
||||
@@ -42,6 +42,7 @@ THE SOFTWARE.
|
||||
#include <libxml/xpointer.h>
|
||||
#include <libxml/parserInternals.h>
|
||||
#include <libxml/uri.h>
|
||||
+#include <libxml/globals.h>
|
||||
|
||||
#include "xmlstar.h"
|
||||
|
||||
diff --git a/src/xmlstar.h b/src/xmlstar.h
|
||||
index 3e1eed3..e8d7177 100644
|
||||
--- a/src/xmlstar.h
|
||||
+++ b/src/xmlstar.h
|
||||
@@ -32,7 +32,7 @@ typedef struct _errorInfo {
|
||||
ErrorStop stop;
|
||||
} ErrorInfo;
|
||||
|
||||
-void reportError(void *ptr, xmlErrorPtr error);
|
||||
+void reportError(void *ptr, const xmlError *error);
|
||||
void suppressErrors(void);
|
||||
|
||||
typedef struct _gOptions {
|
||||
--
|
||||
2.43.0
|
||||
|
||||
@@ -1,49 +0,0 @@
|
||||
From 6b3ca3549abb998947088bdf264d65a0a86684cd Mon Sep 17 00:00:00 2001
|
||||
From: Bernd Kuhls <bernd@kuhls.net>
|
||||
Date: Sun, 12 Oct 2025 18:38:54 +0200
|
||||
Subject: [PATCH] xml_pyx: remove ATTRIBUTE_UNUSED
|
||||
|
||||
This define was removed in libxml2 2.14.0:
|
||||
https://gitlab.gnome.org/GNOME/libxml2/-/commit/208f27f9641a59863ce1f7d4992df77f7eb0ea9d
|
||||
|
||||
Upstream: https://sourceforge.net/p/xmlstar/patches/23/
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
---
|
||||
src/xml_pyx.c | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/src/xml_pyx.c b/src/xml_pyx.c
|
||||
index ab295f1..8adc028 100644
|
||||
--- a/src/xml_pyx.c
|
||||
+++ b/src/xml_pyx.c
|
||||
@@ -200,7 +200,7 @@ pyxExternalEntityReferenceHandler(void* userData,
|
||||
}
|
||||
|
||||
static void
|
||||
-pyxExternalSubsetHandler(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name,
|
||||
+pyxExternalSubsetHandler(void *ctx, const xmlChar *name,
|
||||
const xmlChar *ExternalID, const xmlChar *SystemID)
|
||||
{
|
||||
fprintf(stdout, "D %s PUBLIC", name); /* TODO: re-check */
|
||||
@@ -215,7 +215,7 @@ pyxExternalSubsetHandler(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name,
|
||||
}
|
||||
|
||||
static void
|
||||
-pyxCommentHandler(void *ctx ATTRIBUTE_UNUSED, const xmlChar *value)
|
||||
+pyxCommentHandler(void *ctx, const xmlChar *value)
|
||||
{
|
||||
fprintf(stdout,"C");
|
||||
SanitizeData(value, xmlStrlen(value));
|
||||
@@ -223,7 +223,7 @@ pyxCommentHandler(void *ctx ATTRIBUTE_UNUSED, const xmlChar *value)
|
||||
}
|
||||
|
||||
static void
|
||||
-pyxCdataBlockHandler(void *ctx ATTRIBUTE_UNUSED, const xmlChar *value, int len)
|
||||
+pyxCdataBlockHandler(void *ctx, const xmlChar *value, int len)
|
||||
{
|
||||
fprintf(stdout,"[");
|
||||
SanitizeData(value, len);
|
||||
--
|
||||
2.47.3
|
||||
|
||||
@@ -6,4 +6,4 @@ config BR2_PACKAGE_XMLSTARLET
|
||||
help
|
||||
Command Line XML Toolkit
|
||||
|
||||
http://xmlstar.sourceforge.net/
|
||||
https://xmlstarlet.github.io
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
# From https://sourceforge.net/projects/xmlstar/files/xmlstarlet/1.6.1/
|
||||
sha1 87bb104f546caca71b9540807c5b2738944cb219 xmlstarlet-1.6.1.tar.gz
|
||||
md5 f3c5dfa3b1a2ee06cd57c255cc8b70a0 xmlstarlet-1.6.1.tar.gz
|
||||
# From https://github.com/xmlstarlet/xmlstarlet/releases/download/1.7.0/xmlstarlet-1.7.0.tar.gz.sha256
|
||||
sha256 df4c93458fc6b2ad144d65dccf3ef251349871e0578c5bc59edbfeecf9bf3454 xmlstarlet-1.7.0.tar.gz
|
||||
# Locally computed
|
||||
sha256 6641cc5b00c1651fa22175f34efd01695e64a348b1ba07048538276f44866862 COPYING
|
||||
|
||||
@@ -4,31 +4,25 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
XMLSTARLET_VERSION = 1.6.1
|
||||
XMLSTARLET_SITE = http://downloads.sourceforge.net/project/xmlstar/xmlstarlet/$(XMLSTARLET_VERSION)
|
||||
XMLSTARLET_VERSION = 1.7.0
|
||||
XMLSTARLET_SITE = https://github.com/xmlstarlet/xmlstarlet/releases/download/$(XMLSTARLET_VERSION)
|
||||
XMLSTARLET_LICENSE = MIT
|
||||
XMLSTARLET_LICENSE_FILES = COPYING
|
||||
|
||||
XMLSTARLET_DEPENDENCIES += libxml2 libxslt \
|
||||
XMLSTARLET_DEPENDENCIES += host-pkgconf libxml2 libxslt \
|
||||
$(if $(BR2_PACKAGE_LIBICONV),libiconv)
|
||||
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
XMLSTARLET_CONF_OPTS += \
|
||||
--enable-static-libs \
|
||||
--with-libxml-prefix=$(STAGING_DIR)/usr \
|
||||
--with-libxslt-prefix=$(STAGING_DIR)/usr \
|
||||
--with-libiconv-prefix=$(STAGING_DIR)/usr
|
||||
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
XMLSTARLET_CONF_OPTS += --enable-static-libs
|
||||
XMLSTARLET_CONF_ENV = LIBS="`$(PKG_CONFIG_HOST_BINARY) --libs libxml-2.0 libexslt`"
|
||||
else
|
||||
XMLSTARLET_CONF_OPTS += --disable-static-libs
|
||||
endif
|
||||
|
||||
HOST_XMLSTARLET_DEPENDENCIES += host-libxml2 host-libxslt
|
||||
|
||||
HOST_XMLSTARLET_CONF_OPTS += \
|
||||
--with-libxml-prefix=$(HOST_DIR) \
|
||||
--with-libxslt-prefix=$(HOST_DIR)
|
||||
HOST_XMLSTARLET_DEPENDENCIES += host-libxml2 host-libxslt host-pkgconf
|
||||
|
||||
$(eval $(autotools-package))
|
||||
$(eval $(host-autotools-package))
|
||||
|
||||
Reference in New Issue
Block a user