Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 751049 - app-emulation/virtualbox (>=6.1.16?) may require GLU/glu.h provided by virtual/glu -> media-libs/glu
Summary: app-emulation/virtualbox (>=6.1.16?) may require GLU/glu.h provided by virtua...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 3 votes (vote)
Assignee: Lars Wendler (Polynomial-C)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-24 16:04 UTC by Fabio Scaccabarozzi
Modified: 2021-05-11 13:38 UTC (History)
8 users (show)

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


Attachments
emerge --info '=app-emulation/virtualbox-6.1.16::gentoo' (emerge_info.txt,6.03 KB, text/plain)
2020-11-14 19:14 UTC, David Sardari
Details
The build.log of emerging =app-emulation/virtualbox-6.1.16 (build.log,5.35 KB, text/x-log)
2020-11-14 19:18 UTC, David Sardari
Details
Proposed patch for the bug (changes.patch,101 bytes, patch)
2020-12-27 20:40 UTC, hellsnoah
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio Scaccabarozzi 2020-10-24 16:04:19 UTC
Trying to update to virtualbox-6.1.16, I got a configuration error due to "mesa" not being available.
Digging in the configure.log shows it is looking for GLU/glu.h.
On my desktop system this is provided by media-libs/glu, pulled in by other packages via virtual/glu.

Reproducible: Always

Steps to Reproduce:
1. emerge app-emulation/virtualbox with only USE="opengl opus pam sdk udev"
2.
3.
Actual Results:  
Configure fails

Expected Results:  
Configure should pass

Manually emerging media-libs/glu solved the issue, I could emerge virtualbox-6.1.16 properly
Comment 1 David Sardari 2020-11-14 19:14:10 UTC
Created attachment 671422 [details]
emerge --info '=app-emulation/virtualbox-6.1.16::gentoo'
Comment 2 David Sardari 2020-11-14 19:18:18 UTC
Created attachment 671425 [details]
The build.log of emerging =app-emulation/virtualbox-6.1.16
Comment 3 David Sardari 2020-11-14 19:20:27 UTC
I can confirm this problem. It's working after installing "virtual/glu".

# emerge -pqv '=app-emulation/virtualbox-6.1.16::gentoo'
[ebuild   R   ] app-emulation/virtualbox-6.1.16  USE="opengl opus pam pulseaudio qt5 sdk udev -alsa -debug -doc -dtrace -headless -java -libressl -lvm -pax_kernel -python -vboxwebsrv -vnc" PYTHON_SINGLE_TARGET="python3_7 -python3_6 -python3_8"


!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="" JAVA_HOME=""
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info =virtualbox-6.1.16
Comment 4 flippynelle 2020-12-10 01:02:21 UTC
the funny thing is, that is exists:

/var/tmp/portage/app-emulation/virtualbox-6.1.16-r1/work/VirtualBox-6.1.16/src/VBox/Additions/x11/x11include/mesa-7.2/GL/glu.h

but I guess it's for virtualbox guest additions? but app-emulation/virtualbox-guest-additions-6.1.16-r1 exists, or app-emulation/virtualbox-additions-6.1.16-r1

oh well, after emerging virtual/glu (which brings media-libs/glu-9.0.1 and virtual/glu-9.0-r2) it compiles.

[ebuild  N     ] app-emulation/virtualbox-6.1.16-r1:0/6.1::gentoo  USE="opengl opus pam pulseaudio qt5 udev vnc -alsa -debug -doc -dtrace -headless -java -libressl -lvm -pax_kernel -python -sdk -vboxwebsrv" PYTHON_SINGLE_TARGET="python3_8 -python3_6 -python3_7" 0 KiB

is USE=opengl the one that's needing it?
Comment 5 Jakov Smolić gentoo-dev 2020-12-21 17:03:38 UTC
Same thing happens for me on app-emulation/virtualbox-6.1.16-r1 with USE="abi_x86_64 amd64 elibc_glibc kernel_linux opengl opus pam python_single_target_python3_8 qt5 sdk udev userland_GNU"

As previously noted, emerging virtual/glu solves the issue
Comment 6 hellsnoah 2020-12-27 20:40:39 UTC
Created attachment 679898 [details, diff]
Proposed patch for the bug

I just added virtual/glu to the depend variable which will install media-libs/glu which is need to compile the package.
Comment 7 hellsnoah 2020-12-28 09:02:50 UTC
(In reply to flippynelle from comment #4)
> the funny thing is, that is exists:
> 
> /var/tmp/portage/app-emulation/virtualbox-6.1.16-r1/work/VirtualBox-6.1.16/
> src/VBox/Additions/x11/x11include/mesa-7.2/GL/glu.h
> 
> but I guess it's for virtualbox guest additions? but
> app-emulation/virtualbox-guest-additions-6.1.16-r1 exists, or
> app-emulation/virtualbox-additions-6.1.16-r1
> 
> oh well, after emerging virtual/glu (which brings media-libs/glu-9.0.1 and
> virtual/glu-9.0-r2) it compiles.
> 
> [ebuild  N     ] app-emulation/virtualbox-6.1.16-r1:0/6.1::gentoo 
> USE="opengl opus pam pulseaudio qt5 udev vnc -alsa -debug -doc -dtrace
> -headless -java -libressl -lvm -pax_kernel -python -sdk -vboxwebsrv"
> PYTHON_SINGLE_TARGET="python3_8 -python3_6 -python3_7" 0 KiB
> 
> is USE=opengl the one that's needing it?

Yes opengl needs it, but if USE=headless is active it doesn't need virtual/glu.
Comment 8 ahudson.news 2021-05-06 18:00:24 UTC
I can confirm this issue still exists with app-emulation/virtualbox-6.1.22 on (USE has "opengl -headless"); requires manually emerging glu, otherwise virtualbox fails during the configure phase. It would be nice if we could get this confirmed and patched, as otherwise emerge --depclean will keep insisting on removing glu ;)
Comment 9 Samuel Chodur, Jr. 2021-05-11 13:38:04 UTC
I am having the same issue.

# emerge --info '=app-emulation/virtualbox-6.1.20-r1::gentoo'

Portage 3.0.18 (python 3.9.4-final-0, default/linux/amd64/17.1/no-multilib, gcc-10.2.0, glibc-2.32-r7, 5.4.80-gentoo-r1 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.4.80-gentoo-r1-x86_64-Intel-R-_Core-TM-_i7-7500U_CPU_@_2.70GHz-with-glibc2.32
KiB Mem:    32757828 total,  22490536 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Fri, 07 May 2021 20:00:01 +0000
Head commit of repository gentoo: 6da72b876d775c67594ddd9aa9bf33407500f1c9
sh bash 5.0_p18
ld GNU ld (Gentoo 2.35.2 p1) 2.35.2
app-shells/bash:          5.0_p18::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          2.7.18_p9::gentoo, 3.7.10_p3::gentoo, 3.8.9_p2::gentoo, 3.9.4_p1::gentoo
dev-lang/rust:            1.51.0-r2::gentoo
dev-util/cmake:           3.18.5::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1-r1::gentoo
sys-apps/sandbox:         2.22::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.2-r1::gentoo
sys-devel/binutils:       2.35.2::gentoo
sys-devel/gcc:            10.2.0-r5::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r7::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24

localrepo
    location: /var/db/repos/localrepo
    masters: gentoo

aten
    location: /var/lib/layman/aten
    masters: gentoo
    priority: 50

src_prepare-overlay
    location: /var/lib/layman/src_prepare-overlay
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/unifi"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs candy cgroup clean-logs collision-protect compress-build-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
GENTOO_MIRRORS="http://mirror.leaseweb.com/gentoo/ https://mirror.leaseweb.com/gentoo/ http://gentoo.mirrors.ovh.net/gentoo-distfiles/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 acl alsa amd64 berkdb bzip2 cleartype cli corefonts crypt custom-cflags custom-optimization dri dts elogind fortran gdbm i3wm iconv ipv6 jpeg jpeg2k libglvnd libtirpc logrotate ncurses nls nptl openmp pam pcre png readline seccomp split-usr sqlite ssl tcpd truetype type1 unicode vaapi x264 x265 xattr xcb xkb zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_8 python3_9" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS

=================================================================
                        Package Settings
=================================================================

app-emulation/virtualbox-6.1.20-r1::gentoo was built with the following:
USE="alsa opengl opus pam qt5 sdk udev -debug -doc -dtrace -headless -java -lvm -pax_kernel -pulseaudio -python -vboxwebsrv -vnc" PYTHON_SINGLE_TARGET="python3_8 -python3_7 -python3_9"