Control: tags -1 patch
X-Debbugs-Cc: [email protected]

I am attaching a patch that I plan to upload as NMU soon.
The patch appears pending in salsa as
https://salsa.debian.org/php-team/pecl/libvirt-php/-/commit/5015081d3b4439f5c27b1fb4b9cfc54377393376
but this is for a hypothetical 0.5.8-12 revision.

Ondrej, can you enlighten me what is the reason for having all those
revisions in git but never uploading any of them since 0.5.8-7?

Thanks,
Bastian
diff -Nru libvirt-php-0.5.8/debian/changelog libvirt-php-0.5.8/debian/changelog
--- libvirt-php-0.5.8/debian/changelog  2024-12-04 15:48:12.000000000 +0100
+++ libvirt-php-0.5.8/debian/changelog  2026-11-25 23:07:07.000000000 +0100
@@ -1,3 +1,10 @@
+libvirt-php (0.5.8-7.1) unstable; urgency=medium
+
+  * Non-maintainer upload
+  * Fix build with libxml2 (Closes: #1106642)
+
+ -- Bastian Germann <[email protected]>  Wed, 25 Nov 2026 23:07:07 +0100
+
 libvirt-php (0.5.8-7) unstable; urgency=medium
 
   * No change source-only upload to allow migration.
diff -Nru 
libvirt-php-0.5.8/debian/patches/0002-Don-t-rely-on-libxml2-to-provide-ATTRIBUTE_UNUSED.patch
 
libvirt-php-0.5.8/debian/patches/0002-Don-t-rely-on-libxml2-to-provide-ATTRIBUTE_UNUSED.patch
--- 
libvirt-php-0.5.8/debian/patches/0002-Don-t-rely-on-libxml2-to-provide-ATTRIBUTE_UNUSED.patch
       1970-01-01 01:00:00.000000000 +0100
+++ 
libvirt-php-0.5.8/debian/patches/0002-Don-t-rely-on-libxml2-to-provide-ATTRIBUTE_UNUSED.patch
       2026-11-25 23:07:07.000000000 +0100
@@ -0,0 +1,32 @@
+Origin: upstream, 5f78512c0eb139660d0a644895e07f83259cda37
+From: Michal Privoznik <[email protected]>
+Date: Thu, 14 Aug 2025 16:39:44 +0200
+Subject: src: Don't rely on libxml2 to provide ATTRIBUTE_UNUSED macro
+
+One of the libxml2 header files used to provide ATTRIBUTE_UNUSED
+macro definition (it used to be libxml/xmlexports.h but then it
+was moved to libxml/xmlversion.h). But as of [1] this is no
+longer the case. Thus, declare the macro on our own.
+
+1: 
https://gitlab.gnome.org/GNOME/libxml2/-/commit/208f27f9641a59863ce1f7d4992df77f7eb0ea9d
+
+Signed-off-by: Michal Privoznik <[email protected]>
+---
+ src/util.h | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/src/util.h b/src/util.h
+index cd6a290..fbeabef 100644
+--- a/src/util.h
++++ b/src/util.h
+@@ -43,6 +43,10 @@
+ 
+ # define ARRAY_CARDINALITY(array) (sizeof(array) / sizeof(array[0]))
+ 
++#ifndef ATTRIBUTE_UNUSED
++# define ATTRIBUTE_UNUSED __attribute__((__unused__))
++#endif
++
+ # define IS_BIGENDIAN (*(uint16_t *)"\0\xff" < 0x100)
+ 
+ # define SWAP2_BY_ENDIAN(le, v1, v2)    \
diff -Nru libvirt-php-0.5.8/debian/patches/series 
libvirt-php-0.5.8/debian/patches/series
--- libvirt-php-0.5.8/debian/patches/series     2024-12-04 15:48:12.000000000 
+0100
+++ libvirt-php-0.5.8/debian/patches/series     2026-11-25 23:07:05.000000000 
+0100
@@ -1 +1,2 @@
 0001-Don-t-rely-on-absolute-paths-in-tools-Makefile.am.patch
+0002-Don-t-rely-on-libxml2-to-provide-ATTRIBUTE_UNUSED.patch

Reply via email to