๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #3842

Bug#1153197: libqb-dev fails to coinstall

#3842
From: Valentin Vidic
Date: Sun, 08 Nov 2026 22:10
50 lines
4243 bytes
--XE1hLrWU08M1Bl1Y
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit

On Sun, Nov 08, 2026 at 08:20:26PM +0100, Ferenc Wรกgner wrote:
> Thanks for the report.  I've been investigating this for some time
> without success.  I even failed to reproduce the issue on ricci, the
> riscv64 porterbox.  For now I requested a binNMU in #1153458, in case
> the problem was caused by the Doxygen version skew.

I ran LLM on this and it seems Doxygen 1.15 and 1.17 produce slightly
different XML. This could be handled in libqb with the attached patch.

-- 
Valentin

--XE1hLrWU08M1Bl1Y
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment;
	filename="doxygen2man-handle-parametername-ref.patch"

Description: Make doxygen2man handle parameter names wrapped in references
 Doxygen 1.15 emits parameter names as <ref> elements, while newer
 versions emit plain text. The old extraction code only looked at the
 immediate node content, so it dropped such parameters and, in turn,
 generated man pages whose contents depended on the doxygen version.
Author: Valentin Vidic <vvidic@debian.org>
Bug-Debian: https://bugs.debian.org/1153197
Last-Update: 2026-11-08

--- libqb-2.0.10.orig/doxygen2man/doxygen2man.c
+++ libqb-2.0.10/doxygen2man/doxygen2man.c
@@ -192,9 +192,10 @@ static void get_param_info(xmlNode *cur_
 	/* This is not robust, and very inflexible */
 	for (this_tag = cur_node->children; this_tag; this_tag = this_tag->next) {
 		for (sub_tag = this_tag->children; sub_tag; sub_tag = sub_tag->next) {
-			if (sub_tag->type == XML_ELEMENT_NODE && strcmp((char *)sub_tag->name, "parameternamelist") == 0 &&
-				sub_tag->children->next->children) {
-				paramname = (char*)sub_tag->children->next->children->content;
+			if (sub_tag->type == XML_ELEMENT_NODE && strcmp((char *)sub_tag->name, "parameternamelist") == 0) {
+				cstring_t paramname_c = get_child(sub_tag, "parametername");
+				paramname = cstring_to_chars(paramname_c);
+				cstring_free(paramname_c);
 			}
 			if (sub_tag->type == XML_ELEMENT_NODE &&
 			    strcmp((char *)sub_tag->name, "parameterdescription") == 0 &&

--XE1hLrWU08M1Bl1Y--
Technical Details
Message-ID: <NXjfj-aHcp-1@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
References: <NWq9c-abhg-37@gated-at.bofh.it> <NWq9c-abhg-37@gated-at.bofh.it> <NXgKt-aFEi-17@gated-at.bofh.it> <NWq9c-abhg-37@gated-at.bofh.it> <NXgKt-aFEi-17@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Valentin Vidic <vvidic@debian.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1153197: libqb-dev fails to coinstall
Date: Sun, 08 Nov 2026 23:10:01 +0100
Message-ID: <NXjfj-aHcp-1@gated-at.bofh.it>
References: <NWq9c-abhg-37@gated-at.bofh.it> <NWq9c-abhg-37@gated-at.bofh.it> <NXgKt-aFEi-17@gated-at.bofh.it> <NWq9c-abhg-37@gated-at.bofh.it> <NXgKt-aFEi-17@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Sun Nov  8 22:07:08 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.7
Reply-To: Valentin Vidic <vvidic@debian.org>, 1153197@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: debian-ha-maintainers@alioth-lists.debian.net
X-Debian-Pr-Message: followup 1153197
X-Debian-Pr-Package: libqb-dev
X-Debian-Pr-Source: libqb
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="XE1hLrWU08M1Bl1Y"
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
X-Greylist: delayed 567 seconds by postgrey-1.37 at buxtehude; Sun, 08 Nov 2026 22:05:02 UTC
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2001548
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 50
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Cc: Helmut Grohne <helmut@subdivi.de>
X-Original-Date: Sun, 8 Nov 2026 22:55:21 +0100
X-Original-Message-ID: <avDvyZbsKm6ZnNan@valentin-vidic.from.hr>
X-Original-References: <20261106111113.GA3029620@subdivi.de> <20261106111113.GA3029620@subdivi.de> <87cxsff7ut.fsf@lant.ki.iif.hu> <20261106111113.GA3029620@subdivi.de> <87cxsff7ut.fsf@lant.ki.iif.hu>