Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1742880

Summary: python-beautifulsoup4: FTBFS in Fedora 31+
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: python-beautifulsoup4Assignee: Terje Røsten <terjeros>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: rawhideCC: kevin, kwizart, mrunge, rbean, terjeros
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: http://apps.fedoraproject.org/koschei/package/python-beautifulsoup4
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-08-18 11:50:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1700317, 1686977    

Description Miro Hrončok 2019-08-17 08:31:50 UTC
Description of problem:
Package python-beautifulsoup4 fails to build from source in Fedora 31+.

Version-Release number of selected component (if applicable):
4.6.3-3.fc31

Steps to Reproduce:
koji build --scratch f31 python-beautifulsoup4-4.6.3-3.fc31.src.rpm

Additional info:
This package is tracked by Koschei. See:
http://apps.fedoraproject.org/koschei/package/python-beautifulsoup4
https://apps.fedoraproject.org/koschei/build/6778909


BUILDSTDERR: ======================================================================
BUILDSTDERR: FAIL: test_nested_namespaces (tests.test_lxml.LXMLXMLTreeBuilderSmokeTest)
BUILDSTDERR: ----------------------------------------------------------------------
BUILDSTDERR: Traceback (most recent call last):
BUILDSTDERR:   File "bs4/testing.py", line 665, in test_nested_namespaces
BUILDSTDERR:     self.assertEqual(doc, soup.encode())
BUILDSTDERR: AssertionError: '<?xml version="1.0" encoding="utf-8"?>\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">\n<parent xmlns="http://ns1/">\n<child xmlns="http://ns2/" xmlns:ns3="http://ns3/">\n<grandchild ns3:attr="value" xmlns="http://ns4/"/>\n</child>\n</parent>' != '<?xml version="1.0" encoding="utf-8"?>\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">\n<parent xmlns:="http://ns1/">\n<child xmlns:="http://ns2/" xmlns:ns3="http://ns3/">\n<grandchild ns3:attr="value" xmlns:="http://ns4/"/>\n</child>\n</parent>'
BUILDSTDERR: ======================================================================
BUILDSTDERR: FAIL: test_real_xhtml_document (tests.test_lxml.LXMLXMLTreeBuilderSmokeTest)
BUILDSTDERR: A real XHTML document should come out *exactly* the same as it went in.
BUILDSTDERR: ----------------------------------------------------------------------
BUILDSTDERR: Traceback (most recent call last):
BUILDSTDERR:   File "bs4/testing.py", line 654, in test_real_xhtml_document
BUILDSTDERR:     soup.encode("utf-8"), markup)
BUILDSTDERR: AssertionError: '<?xml version="1.0" encoding="utf-8"?>\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">\n<html xmlns:="http://www.w3.org/1999/xhtml">\n<head><title>Hello.</title></head>\n<body>Goodbye.</body>\n</html>' != '<?xml version="1.0" encoding="utf-8"?>\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">\n<html xmlns="http://www.w3.org/1999/xhtml">\n<head><title>Hello.</title></head>\n<body>Goodbye.</body>\n</html>'
BUILDSTDERR: ----------------------------------------------------------------------
BUILDSTDERR: Ran 476 tests in 2.288s
BUILDSTDERR: FAILED (failures=2)
BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.fHaY2V (%check)
BUILDSTDERR:     Bad exit status from /var/tmp/rpm-tmp.fHaY2V (%check)


This blocks the Python 3.8 rebuild.

The coordinated rebuild of Python 3.8 happens in the `f32-python` side tag.

If you figure out how to rebuild this package, please don't rebuild it in regular rawhide, but use the side tag instead:

    on branch master:
    $ fedpkg build --target=f32-python

Thanks.

Comment 1 Terje Røsten 2019-08-18 11:50:54 UTC

*** This bug has been marked as a duplicate of bug 1742146 ***