Bug 1815105 - python-reportlab fails to build with Python 3.9: python-reportlab-3.5.34_python39.patch fails to apply
Summary: python-reportlab fails to build with Python 3.9: python-reportlab-3.5.34_pyth...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-reportlab
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Antonio T. (sagitter)
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON39
TreeView+ depends on / blocked
 
Reported: 2020-03-19 13:47 UTC by Miro Hrončok
Modified: 2020-03-19 22:03 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-03-19 18:56:50 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.