Article View: linux.debian.bugs.rc
Article #4241Bug#1106642: libvirt-php ftbfs with libxml 2.14.x from experimental
From: Bastian Germann
Date: Wed, 25 Nov 2026 22:30
Date: Wed, 25 Nov 2026 22:30
80 lines
4944 bytes
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--
Technical Details
Message-ID:
<O3tEZ-e9lk-3@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-fra.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodReferences:
<KQZSV-64ou-3@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-fra.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Bastian Germann <bage@debian.org> Newsgroups: linux.debian.bugs.rc Subject: Bug#1106642: libvirt-php ftbfs with libxml 2.14.x from experimental Date: Wed, 25 Nov 2026 23:30:01 +0100 Message-ID: <O3tEZ-e9lk-3@gated-at.bofh.it> References: <KQZSV-64ou-3@gated-at.bofh.it> X-Mailbox-Line: From debian-bugs-rc-request@lists.debian.org Wed Nov 25 22:27:08 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.7 Reply-To: Bastian Germann <bage@debian.org>, 1106642@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: ondrej@debian.org, team+php-pecl@tracker.debian.org X-Debian-Pr-Message: followup 1106642 X-Debian-Pr-Package: src:libvirt-php X-Debian-Pr-Keywords: ftbfs pending sid upstream fixed-upstream forky X-Debian-Pr-Source: libvirt-php MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="fT3X1AlFdo5Ghr5h" Content-Disposition: inline X-Debian-User: bage X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-rc@lists.debian.org> archive/latest/839694 List-ID: <debian-bugs-rc.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-rc/> Approved: robomod@news.nic.it Lines: 80 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Wed, 25 Nov 2026 23:24:18 +0100 X-Original-Message-ID: <awdgEsrC68m40xdA@duagon-BXN3S64.localdomain> X-Original-References: <b4d22cca-45c0-444e-b90b-17f70f7c0295@debian.org>