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 1787966 - gpgme fails to build with Python 3.9
Summary: gpgme fails to build with Python 3.9
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: gpgme
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miro Hrončok
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON39
TreeView+ depends on / blocked
 
Reported: 2020-01-06 00:20 UTC by Miro Hrončok
Modified: 2020-02-13 12:49 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-02-13 12:49:10 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github gpg gpgme pull 4 0 None closed Add Python 3.9 to the build machinery 2020-05-22 18:11:57 UTC

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.


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