From 06f0a789e30cd3093d7a5cb874dbe23a33d7f26d Mon Sep 17 00:00:00 2001 From: Rudi Heitbaum Date: Fri, 28 Mar 2025 15:30:10 +0000 Subject: [PATCH] xmlstarlet: fix compile with libxml 2.14.0 ref: https://github.com/GNOME/libxml2/blob/208f27f9641a59863ce1f7d4992df77f7eb0ea9d/libxml.h --- ...-0900-fix-compile-with-libxml-2-14-0.patch | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 packages/textproc/xmlstarlet/patches/xmlstarlet-0900-fix-compile-with-libxml-2-14-0.patch diff --git a/packages/textproc/xmlstarlet/patches/xmlstarlet-0900-fix-compile-with-libxml-2-14-0.patch b/packages/textproc/xmlstarlet/patches/xmlstarlet-0900-fix-compile-with-libxml-2-14-0.patch new file mode 100644 index 0000000000..209bdf56b3 --- /dev/null +++ b/packages/textproc/xmlstarlet/patches/xmlstarlet-0900-fix-compile-with-libxml-2-14-0.patch @@ -0,0 +1,26 @@ +From 10684eea54a2c3b0b3738dfd8d70014f54e8e282 Mon Sep 17 00:00:00 2001 +From: Rudi Heitbaum +Date: Sat, 29 Mar 2025 02:23:34 +1100 +Subject: [PATCH] Fix build with libxml2-2.14.0 + +--- + src/xml_pyx.c | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/src/xml_pyx.c b/src/xml_pyx.c +index ab295f12..e5ec64f1 100644 +--- a/src/xml_pyx.c ++++ b/src/xml_pyx.c +@@ -21,6 +21,12 @@ + + #include "xmlstar.h" + ++#if __GNUC__ * 100 + __GNUC_MINOR__ >= 207 ++ #define ATTRIBUTE_UNUSED __attribute__((unused)) ++#else ++ #define ATTRIBUTE_UNUSED ++#endif ++ + /** + * Output newline and tab characters as escapes + * Required both for attribute values and character data (#PCDATA)