Bug 1158288

Summary: virtualbox fails to build with Python 3.8
Product: [openSUSE] openSUSE Tumbleweed Reporter: Matej Cepl <mcepl>
Component: Virtualization:OtherAssignee: Larry Finger <Larry.Finger>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 1158289    

Description Matej Cepl 2019-12-03 13:11:14 UTC
https://build.opensuse.org/package/show/openSUSE:Factory:Staging:A/virtualbox

Fails immediately in ./configure run:

[  128s] Checking for Python support: 
[  128s]   ** Python not found!
[  128s] Check /home/abuild/rpmbuild/BUILD/VirtualBox-6.0.14/configure.log for details
Comment 1 Larry Finger 2019-12-04 02:49:46 UTC
I have found several places in the VB code that need updating to handle Python 3.8. The one I do not know how to fix is a failure in my osc build at a statement "include <Python.h>". Does the project openSUSE:Factory:Staging:A produce that header? If so, I have no idea why the build cannot see it.

My local build uses "osc build --alternative-project openSUSE:Factory:Staging:A".
Comment 2 Matej Cepl 2019-12-04 07:30:13 UTC
(In reply to Larry Finger from comment #1)
> I have found several places in the VB code that need updating to handle
> Python 3.8. The one I do not know how to fix is a failure in my osc build at
> a statement "include <Python.h>". Does the project
> openSUSE:Factory:Staging:A produce that header? If so, I have no idea why
> the build cannot see it.
> 
> My local build uses "osc build --alternative-project
> openSUSE:Factory:Staging:A".

It could be another weird reaction to https://docs.python.org/dev/whatsnew/3.8.html#debug-build-uses-the-same-abi-as-release-build or you just need to add %{python_module devel} to your BRs.
Comment 3 Larry Finger 2019-12-04 16:46:05 UTC
My problems were typos in the changes needed to handle Python 3.8. It now builds locally with osc, and that change has been pushed to Virtualization/virtualbox. The only file that was changed is "switch_to_python3.4+.patch".

Once you get a successful build in openSUSE:Factory:Staging:A, please close this bug report. Thanks, Larry
Comment 4 Larry Finger 2019-12-30 00:39:51 UTC
As far as I know, this can be closed.