Bug 1787966

Summary: gpgme fails to build with Python 3.9
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: gpgmeAssignee: Miro Hrončok <mhroncok>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: cstratak, igor.raits, mhroncok, tmraz
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-02-13 12:49:10 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-01-06 00:20:27 UTC
gpgme fails to build with Python 3.9.0a2:

checking for a Python interpreter with version >= 2.7... none
checking for a Python interpreter with version >= 3.4... none
checking for a Python interpreter with version >= 3.5... none
checking for a Python interpreter with version >= 3.6... none
checking for a Python interpreter with version >= 3.7... none
checking for a Python interpreter with version >= 3.8... none
checking for a Python interpreter with version >= all... none
configure: error: 
***
*** Please install the python development packages.
***

Seems like gpgme build system hardcodes a list of Python versions and that list doesn't yet have 3.9.

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

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

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, but the initial bootstrapping has already started.
A build failure this early in the bootstrap sequence blocks us very much.

Comment 1 Miro Hrončok 2020-01-06 11:41:37 UTC
This ugly %prep hack gets the job done:

+# The configure script does not list Python 3.9 yet
+sed -i 's/3.8/%{python3_version}/g' configure

It would be nicer to not hardcode the list of Python versions in configure, but ¯\_(ツ)_/¯

Comment 2 Miro Hrončok 2020-02-10 14:32:51 UTC
Can you please prioritize this?

Comment 3 Ben Cotton 2020-02-11 16:33:22 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 32 development cycle.
Changing version to 32.

Comment 4 Miro Hrončok 2020-02-13 10:29:09 UTC
I'm looking into an upstream(able) fix.