Description of problem: Package python-lxml fails to build from source in Fedora Rawhide. ====================================================================== ERROR: test_html_prefix_nsmap (lxml.tests.test_etree.ETreeOnlyTestCase.test_html_prefix_nsmap) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib64/python3.11/unittest/case.py", line 57, in testPartExecutor yield File "/usr/lib64/python3.11/unittest/case.py", line 623, in run self._callTestMethod(testMethod) File "/usr/lib64/python3.11/unittest/case.py", line 579, in _callTestMethod if method() is not None: ^^^^^^^^ File "/builddir/build/BUILD/lxml-4.9.2/src/lxml/tests/test_etree.py", line 3076, in test_html_prefix_nsmap self.assertEqual({}, el.nsmap) ^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'nsmap' ---------------------------------------------------------------------- Version-Release number of selected component (if applicable): 4.9.2-2.fc38 Steps to Reproduce: fedpkg build Additional info: This package is tracked by Koschei. See: https://koschei.fedoraproject.org/package/python-lxml
*** Bug 2192588 has been marked as a duplicate of this bug. ***
The culprit is in libxml2, the failing test works with libxml2 2.10.3. I am gonna try to build the latest version 2.11.1.
I find out that the failing test passes if this commit (https://gitlab.gnome.org/GNOME/libxml2/-/commit/73210eeda5782da3414517cab20550d137e2dd25) is reverted.
Also building the latest version 2.11.1 didn't help. Hence I was looking for a problematic commit between 2.10.3 and 2.10.4.
Please note that this is blocking ELN minimization efforts in preparation for RHEL 10 as filed in https://src.fedoraproject.org/rpms/python-lxml/pull-request/25
https://src.fedoraproject.org/rpms/python-lxml/pull-request/24