Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 860810 - Virtualbox needs a dependency on python:2
Summary: Virtualbox needs a dependency on python:2
Status: RESOLVED DUPLICATE of bug 856121
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-24 23:11 UTC by Mike DeSimone
Modified: 2022-07-24 23:16 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info output (emerge.info,6.79 KB, text/plain)
2022-07-24 23:11 UTC, Mike DeSimone
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike DeSimone 2022-07-24 23:11:39 UTC
Created attachment 794117 [details]
emerge --info output

I'm trying to emerge virtualbox, and it's failing in the configure step. Looking in the configure log, it says it can't find Python:


***** Checking Python support *****
compiling the following source file:
#include <cstdio>
#include <Python.h>
extern "C" int main(void)
{
  Py_Initialize();
  printf("found version %s", PY_VERSION);
#if PY_VERSION_HEX >= 0x02060000
  printf(", OK.\n");
  return 0;
#else
  printf(", expected version 2.6 or higher\n");
  return 1;
#endif
}
using the following command line:
x86_64-pc-linux-gnu-g++ -O -Wall -o /var/tmp/portage/app-emulation/virtualbox-6.
1.32-r2/work/VirtualBox-6.1.32/.tmp_out /var/tmp/portage/app-emulation/virtualbo
x-6.1.32-r2/work/VirtualBox-6.1.32/.tmp_src.cc -I/usr/include/python2.7 /usr/lib
/x86_64-linux-gnu/libpython2.7.so


Looking around online, it seems VB is still back on Python 2. So why isn't this a dependency for the ebuild instead of 3? Why does the ebuild say it can use Python 3.10?


# emerge -pv virtualbox

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] app-emulation/virtualbox-6.1.32-r2:0/6.1::gentoo  USE="alsa lvm opengl opus pam pulseaudio python qt5 sdk udev -debug -doc -dtrace -headless -java -pax-kernel (-pch) -vboxwebsrv -vnc" PYTHON_SINGLE_TARGET="python3_10 -python3_8 -python3_9" 0 KiB

Total: 1 package (1 new), Size of downloads: 0 KiB


Is there a way to work around this?
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-24 23:12:46 UTC
Yes and no. The detection is broken but that's not the right way to fix it (nor would it work for runtime deps anyway as eclass support is gone for that).

Anyway, it's fixed in ~arch, and we should stable that version.

*** This bug has been marked as a duplicate of bug 856121 ***
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-24 23:14:09 UTC
(In reply to Sam James from comment #1)
> Yes and no. The detection is broken but that's not the right way to fix it
> (nor would it work for runtime deps anyway as eclass support is gone for
> that).
> 
> Anyway, it's fixed in ~arch, and we should stable that version.
> 
> *** This bug has been marked as a duplicate of bug 856121 ***

... and filed bug 860813 for the stablereq.

In future, please do include the full build.log too.
Comment 3 Mike DeSimone 2022-07-24 23:16:23 UTC
(Two mid-air collisions now...)

> Anyway, it's fixed in ~arch, and we should stable that version.

Yes please. Also I have no idea why searches for "virtualbox python" did not turn up the other bug.

> In future, please do include the full build.log too.

Dang it, and I remembered the emerge.info this time, too.