🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.rc
2 messages
2 total messages Started by Bastian Germann Wed, 25 Nov 2026 22:30
Bug#1106642: libvirt-php ftbfs with libxml 2.14.x from experimental
#4241
Author: Bastian Germann
Date: Wed, 25 Nov 2026 22:30
80 lines
4944 bytes
--fT3X1AlFdo5Ghr5h
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Control: tags -1 patch
X-Debbugs-Cc: ondrej@debian.org

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

--fT3X1AlFdo5Ghr5h
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=libvirt-php_0.5.8-7.1.debdiff

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 <bage@debian.org>  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 <mprivozn@redhat.com>
+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 <mprivozn@redhat.com>
+---
+ 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

--fT3X1AlFdo5Ghr5h--
Processed: libvirt-php ftbfs with libxml 2.14.x from experimental
#4242
Author: Debian Bug Tracking System
Date: Wed, 25 Nov 2026 22:30
11 lines
1925 bytes
Processing control commands:

> tags -1 patch
Bug #1106642 [src:libvirt-php] libvirt-php ftbfs with libxml 2.14.x from experimental
Added tag(s) patch.

-- 
1106642: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1106642
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads