Bug 1815105

Summary: python-reportlab fails to build with Python 3.9: python-reportlab-3.5.34_python39.patch fails to apply
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: python-reportlabAssignee: Antonio T. (sagitter) <anto.trande>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: anto.trande, bdpepple, cstratak, i, icon, mhroncok, mplch, peter, williamjmorenor
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-19 18:56:50 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: 1785415    

Description Miro Hrončok 2020-03-19 13:47:55 UTC
python-reportlab fails to build with Python 3.9.0a4:

+ cd reportlab-3.5.42
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch #0 (python-reportlab-3.5.34_python39.patch):'
Patch #0 (python-reportlab-3.5.34_python39.patch):
+ /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .python39 --fuzz=0
patching file src/reportlab/lib/utils.py
Hunk #1 FAILED at 7.
Hunk #2 FAILED at 124.
Hunk #3 FAILED at 221.
3 out of 3 hunks FAILED -- saving rejects to file src/reportlab/lib/utils.py.rej
patching file src/reportlab/graphics/testshapes.py
Hunk #1 FAILED at 455.
1 out of 1 hunk FAILED -- saving rejects to file src/reportlab/graphics/testshapes.py.rej
error: Bad exit status from /var/tmp/rpm-tmp.tzgHfx (%prep)

There seem to be a patch that is only applied with Python 3.9 but it no longer applies after the recent upgrade.

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.9/fedora-rawhide-x86_64/01311233-python-reportlab/

For all our attempts to build python-reportlab with Python 3.9, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.9/package/python-reportlab/

Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.9:
https://copr.fedorainfracloud.org/coprs/g/python/python3.9/

Let us know here if you have any questions.

Python 3.9 will be included in Fedora 33. To make that update smoother, we're building Fedora packages with early pre-releases of Python 3.9.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon.
We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Antonio T. (sagitter) 2020-03-19 18:56:50 UTC
Fixed with current rawhide release.

Comment 2 Miro Hrončok 2020-03-19 22:03:13 UTC
Indeed, thanks.