Bug#1093338: libbio-eutilities-perl: FTBFS: Failed 8/20 test programs. 0/174 subtests failed.

Étienne Mollier emollier at debian.org
Mon Jan 27 21:18:23 GMT 2025


Control: tags -1 + patch

Hi gregor, Hi David,

gregor herrmann, on 2025-01-27:
> I got curious and had a brief look:
> There's update-perl-sax-parsers in libxml-sax-perl which handles the
> various parsers:
[…]
> And XML::SAX::PurePerl is mentioned first; and XML::SAX::Expat should
> be the one which gets used.
>  
> 
> 
> So I'm not sure under which circumstances XML::SAX::PurePerl gets
> used as the default parser, but maybe this helps other to take a
> deeper look.

Thanks for noticing this, I see libxml-sax-perl gets pulled by
libxml-simple-perl; one of the packages libxml-libxml-perl or
libxml-sax-expat-perl is supposed to get installed aside, but
for some reason, the PurePerl implementation remains top
priority within an sbuild environment.  Under normal
circumstances, there would be a debconf prompt to resolve the
selection of the default parser, but in sbuild context the
default sticks rather hard to the PurePerl implementation.

For some reason, after a successful build, the autopkgtest
environment does not seem to suffer from the inappropriate
choice though; this is independent of the backend, whether it is
schroot or unshare.  I'm afraid I'm at loss understanding the
update-perl-sax-parsers behavior.

I took inspiration from David's selection based on environment
variables and this seems to be sufficient to get the package
back on tracks:

-------8<--------------8<--------------8<--------------8<-------
diff --git a/debian/control b/debian/control
index 1750924..f1feac6 100644
--- a/debian/control
+++ b/debian/control
@@ -12,6 +12,7 @@ Build-Depends-Indep: libbio-asn1-entrezgene-perl <!nocheck>,
                      liburi-perl <!nocheck>,
                      libwww-perl <!nocheck>,
                      libxml-simple-perl <!nocheck>,
+                     libxml-libxml-perl <!nocheck>,
                      perl
 Standards-Version: 4.5.1
 Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libbio-eutilities-perl
diff --git a/debian/rules b/debian/rules
index 2d33f6a..72102f5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,4 +1,8 @@
 #!/usr/bin/make -f
 
+# The default XML::SAX:PurePerl fails to handle inline DTDs, so we pick
+# a different one.  See #1093338 for further details.
+export XML_SIMPLE_PREFERRED_PARSER = XML::LibXML::SAX
+
 %:
        dh $@
-------8<--------------8<--------------8<--------------8<-------

I believe it should be good enough to resolve the bug without
further issues and will upload this evening.

Have a nice day,  :)
-- 
  .''`.  Étienne Mollier <emollier at debian.org>
 : :' :  pgp: 8f91 b227 c7d6 f2b1 948c  8236 793c f67e 8f0d 11da
 `. `'   sent from /dev/pts/1, please excuse my verbosity
   `-    on air: Saga - On The Loose
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-perl-maintainers/attachments/20250127/40b14c20/attachment.sig>


More information about the pkg-perl-maintainers mailing list