Bug 1791770

Summary: cantor fails to build with Python 3.9: Could NOT find PythonLibs3
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: cantorAssignee: Rex Dieter <rdieter>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: cstratak, jreznik, kde-sig, mhroncok, rdieter, than
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-01-16 15:03:16 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-16 12:50:02 UTC
cantor fails to build with Python 3.9.0a2:


-- Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS) (Required is at least version "2.7")
-- Could NOT find PythonLibs3 (missing: PYTHONLIBS3_LIBRARY) 
error: File not found: /builddir/build/BUILDROOT/cantor-19.08.3-2.fc32.x86_64/etc/xdg/cantor_python3.knsrc
error: File not found: /builddir/build/BUILDROOT/cantor-19.08.3-2.fc32.x86_64/usr/bin/cantor_python3server
error: File not found: /builddir/build/BUILDROOT/cantor-19.08.3-2.fc32.x86_64/usr/lib64/qt5/plugins/cantor/backends/cantor_python3backend.so
error: File not found: /builddir/build/BUILDROOT/cantor-19.08.3-2.fc32.x86_64/usr/share/config.kcfg/python3backend.kcfg

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

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

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 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 Rex Dieter 2020-01-16 13:33:49 UTC
I believe there was a recent cmake pull request adding support for the newer python.

Comment 2 Miro Hrončok 2020-01-16 13:47:27 UTC
The change was for FindPython:

https://src.fedoraproject.org/rpms/cmake/c/8d55c35ecb54c581f2823c563d5d562aec02c2b9?branch=master

root.log says the build was done with 3.16.2-1.fc32 and this is a different problem.

Comment 3 Rex Dieter 2020-01-16 14:44:10 UTC
Arg right, cantor bundles it's own implementation

Comment 4 Rex Dieter 2020-01-16 15:03:16 UTC
 %changelog
+* Thu Jan 16 2020 Rex Dieter <rdieter> - 19.08.3-3
+- cantor fails to build with Python 3.9: Could NOT find PythonLibs3 (#1791770)

Comment 5 Miro Hrončok 2020-01-16 15:11:13 UTC
Thanks.