#1107544 php-league-html-to-markdown autopkg tests fail with libxml 2.14.x from experimental

#1107544#5
Date:
2025-06-09 08:04:25 UTC
From:
To:
[this bug is NOT targeted to the upcoming trixie release]

  php-league-html-to-markdown autopkg tests fail with libxml 2.14.x from
experimental, and all it's dependencies built with this libxml version.

[...]

  90s autopkgtest [18:23:27]: test phpunit: [-----------------------
  90s patching file tests/BinTest.php
  90s PHPUnit 11.5.19 by Sebastian Bergmann and contributors.
  90s
  90s Runtime:       PHP 8.4.5
  90s Configuration: /tmp/autopkgtest.dgdhTx/build.RTO/src/phpunit.xml.dist
  90s
  90s ......................F...............FF.........
49 / 49 (100%)
  90s
  90s Time: 00:00.226, Memory: 8.00 MB
  90s
  90s There were 3 failures:
  90s
  90s 1) League\HTMLToMarkdown\Test\HtmlConverterTest::testScript
  90s Failed asserting that two strings are identical.
  90s --- Expected
  90s +++ Actual
  90s @@ @@
  90s -'<script>alert('test');</script>'
  90s +'<!--?xml
encoding="UTF-8"--><html><head><script>alert('test');</script>'
  90s
  90s /tmp/autopkgtest.dgdhTx/build.RTO/src/tests/HtmlConverterTest.php:27
  90s /tmp/autopkgtest.dgdhTx/build.RTO/src/tests/HtmlConverterTest.php:131
  90s
  90s 2) League\HTMLToMarkdown\Test\HtmlConverterTest::testPreserveComments
  90s Failed asserting that two strings are identical.
  90s --- Expected
  90s +++ Actual
  90s @@ @@
  90s -'<!-- Test comment -->Test
  90s +'<!--?xml encoding="UTF-8"--><!-- Test comment -->Test
  90s
  90s  <!-- Test comment -->'
  90s
  90s /tmp/autopkgtest.dgdhTx/build.RTO/src/tests/HtmlConverterTest.php:27
  90s /tmp/autopkgtest.dgdhTx/build.RTO/src/tests/HtmlConverterTest.php:341
  90s
  90s 3)
League\HTMLToMarkdown\Test\HtmlConverterTest::testPreserveCommentOrder
  90s Failed asserting that two strings are identical.
  90s --- Expected
  90s +++ Actual
  90s @@ @@
  90s -'<!-- 1 --><!-- 2 -->Test
  90s +'<!--?xml encoding="UTF-8"--><!-- 1 --><!-- 2 -->Test
  90s
  90s  <!-- 3 -->'
  90s
  90s /tmp/autopkgtest.dgdhTx/build.RTO/src/tests/HtmlConverterTest.php:27
  90s /tmp/autopkgtest.dgdhTx/build.RTO/src/tests/HtmlConverterTest.php:346
  90s
  90s FAILURES!
  90s Tests: 49, Assertions: 228, Failures: 3.
  90s patching file tests/BinTest.php

#1107544#10
Date:
2025-08-07 03:18:52 UTC
From:
To:
I have prepared a patch to fix this in Ubuntu, because we already build
php8.4 with the new libxml2 there:
https://code.launchpad.net/~rr/ubuntu/+source/php-league-html-to-markdown/+git/php-league-html-to-markdown/+merge/490434
I have raised an issue and sent the patch upstream:
https://github.com/thephpleague/html-to-markdown/issues/263

Please tell me if it is fine from the Debian side to pick this up upstream
(if not merged until Debian does the libxml transition) or if I should send
it myself somehow (salsa MR, patch here?)

#1107544#19
Date:
2025-08-20 06:50:25 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
php-league-html-to-markdown, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1107544@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
David Prévot <taffit@debian.org> (supplier of updated php-league-html-to-markdown package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Wed, 20 Aug 2025 08:09:28 +0200
Source: php-league-html-to-markdown
Architecture: source
Version: 5.1.1-4
Distribution: unstable
Urgency: medium
Maintainer: Debian PHP PEAR Maintainers <pkg-php-pear@lists.alioth.debian.org>
Changed-By: David Prévot <taffit@debian.org>
Closes: 1107544
Changes:
 php-league-html-to-markdown (5.1.1-4) unstable; urgency=medium
 .
   * Fix test failure with libxml 2.14.x (Closes: #1107544)
   * Update Standards-Version to 4.7.2
   * Remove Rules-Requires-Root
Checksums-Sha1:
 8051faa739fd988504b971eb2c74d4f7c4430860 1956 php-league-html-to-markdown_5.1.1-4.dsc
 ea2e5f3a63396fd40bd35c980d917395961a42b0 6376 php-league-html-to-markdown_5.1.1-4.debian.tar.xz
 809982fa5b7d6ea68c6d2ef6a28aa75e6d563846 7581 php-league-html-to-markdown_5.1.1-4_amd64.buildinfo
Checksums-Sha256:
 1626baa2b94ffd1213b5d1eede6d0abe3a397d5671c674676b282aebe5db31a6 1956 php-league-html-to-markdown_5.1.1-4.dsc
 c9f8555bad4b4862975502048866e83287cfadd7c9994bde0a1dc7cf3f48a958 6376 php-league-html-to-markdown_5.1.1-4.debian.tar.xz
 1c9760b8be9f303b23d35c564613aef7004d988a1b4d0f244ee243ee7246f400 7581 php-league-html-to-markdown_5.1.1-4_amd64.buildinfo
Files:
 e072531970dded009afc59f40667f4e0 1956 php optional php-league-html-to-markdown_5.1.1-4.dsc
 0d024c59317bbcf0112cad00c22f0c1c 6376 php optional php-league-html-to-markdown_5.1.1-4.debian.tar.xz
 49a5c4244fe8d3537a9880158c5a057e 7581 php optional php-league-html-to-markdown_5.1.1-4_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQFGBAEBCgAwFiEEeHVNB7wJXHRI941mBYwc+UT2vTwFAmilafQSHHRhZmZpdEBk
ZWJpYW4ub3JnAAoJEAWMHPlE9r08fxUH/2qYisrpqqc9LJ/9SVAd7O2bosxauNV+
GXr6nIHk8Y7U2fp7x2tdKZ+uvLmQZNIRlLvh9l+kVB7b5+R+CSxNIamjltPGImtG
2nzpJEunGiK5JQCdwwtq/qcIpSZ+Yi6Ly8kfBzDjn7BEpJQnAjx/gty/9pPsweqw
Nk2YewMFsFEUMolFttiv1hBW3MD5yDn812udYolWneGtqLGT+txkhqUb3FZO98oA
AZQgz2Ty7SlwlXGBVvaIlreV987lfy9l+aFxfmcL2BgY0zh8o/dYO5j6xbLtIQGo
2e3cH3P+erGyPGYN+kg16Wxgr4Cx8msHAJwpmMliZOOumVTorsv0viI=
=mn2j
-----END PGP SIGNATURE-----