Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 197541 - app-emulation/virtualbox-1.5.2 ignores -hal use flag and requires it anyway
Summary: app-emulation/virtualbox-1.5.2 ignores -hal use flag and requires it anyway
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-30 17:30 UTC by Karl Hakimian
Modified: 2008-11-13 10:12 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karl Hakimian 2007-10-30 17:30:08 UTC
app-emulation/virtualbox-1.5.2 will compile and run without hal, but it requires hal without looking at the state of the hal use flag. From searching through the bug reports, it look like earlier version had a stronger requirement for hal, but I have compiled and installed it on my machine without hal.

While I might be way out of the norm, I really don't want hal on my machine.

Reproducible: Always

Steps to Reproduce:
1. emerge -C hal
2. USE-hal emerge virtualbox
3. Watch emerge attempt to build hal

Actual Results:  
Emerge requires hal.

Expected Results:  
Emerge should not require hal.

By skipping hal, the emerge will continue successfully and the final package will run correctly.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-10-30 21:04:10 UTC
Reopen with some errors and emerge --info output.
Comment 2 Karl Hakimian 2007-10-30 21:12:04 UTC
There are no error messages, it just wants to emerge hal.

# USE=-hal emerge -pv virtualbox

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

Calculating dependencies... done!
[ebuild  N    ] sys-apps/hal-0.5.9-r1  USE="acpi crypt -debug -dell -disk-partition -doc -pcmcia (-selinux)" 0 kB 
[ebuild   R   ] app-emulation/virtualbox-1.5.2  USE="additions alsa -sdk" 0 kB 

As you can see from the R, virtualbox is installed without hal (in fact, it compiled and installed without hal being on as I stopped and skipped it). Virtualbox also runs without hal being on.

The resolution I'm looking for is to only RDEPEND on hal if the hal use flag is set.

emerge --info output follows

# emerge --info
Portage 2.1.3.16 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23.1 i686)
=================================================================
System uname: 2.6.23.1 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Timestamp of tree: Tue, 30 Oct 2007 06:00:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.3.5-r3, 2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer -mmmx -msse -msse2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer -mmmx -msse -msse2"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LC_ALL="en_US.UTF-8"
LINGUAS="en_US"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/local/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /local/portage"
SYNC="rsync://aesop.aha.com/gentoo-portage"
USE="X Xaw3d a52 aac aalib acl acpi alsa audiofile bash-completion bcmath berkdb bitmap-fonts bzip2 cairo calendar caps cdr cli cracklib crypt cups curl dba dbus dga dmx dri dv dvb dvd dvdr dvdread emboss encode evo examples exif fam festival ffmpeg firefox flac flatfile font-server fortran gd gdbm ggi gif glut gmp gnutls gphoto2 gpm gps graphviz gs gstreamer gtk iconv idn imagemagick imap isdnlog java javascript jbig jp2 jpeg jpeg2k kerberos lcms ldap logrotate mad matroska mbox mhash midi mikmod milter mmx mng mono mozilla mozxmlterm mp3 mpeg mudflap mysql nas ncurses nis nls nptl nptlonly nsplugin nvidia odbc ogg opengl openmp oss pam pam_console pcre pdf perl png posix postfix postgres pppd python qt3 qt3support qt4 quicktime readline reflection samba sasl scanner sdl session sharedext sharedmem slang smp sockets speex spell spl sse ssl stroke svg svga sysvipc szip tcltk tcpd tetex theora tidy tiff tokenizer truetype truetype-fonts type1-fonts ungif unicode usb v4l v4l2 vcd vorbis win32codecs wmf wxwindows x86 xinerama xml xml2 xorg xpm xv xvid zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-10-30 21:14:56 UTC
Yeah, because it's required.
Comment 4 Karl Hakimian 2007-10-30 21:18:23 UTC
Ahh... You seem to be missing the point. It is NOT required. It was not on when I installed it and is not on now, yet it compiled, installed and it runs.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-10-30 21:45:06 UTC
I understand just fine. There's no configure option to disable hal anywhere -> no longer optional.

http://www.virtualbox.org/wiki/Linux%20build%20instructions

If you dislike this, then complain upstream.
Comment 6 Karl Hakimian 2007-10-30 21:50:04 UTC
It looks like upstream has already taken care of it. As I said, hal is not (and was not) on my system and virtualbox compiled and it runs.

I can certainly solve my problem by removing the depend and popping it into my overlay, but I'd rather see an unnecessary depend removed from the ebuild. 
Comment 7 Alessio Cassibba (X-Drum) 2007-10-30 21:55:27 UTC
Hi,
yes atm virtualbox seems to compile and run without hal 
(tested on my systems too) but, as reported by jakub in comment #5, 
Innotek still considers hal (libhal) a mandatory requirement, 
additionally there are still traces of libhal in the source code.

I will check this again with upstream.   

Comment 8 Jakub Moc (RETIRED) gentoo-dev 2007-10-30 21:57:14 UTC
Well, we really cannot do anything about this until it's configurable in some way; ATM it isn't...

http://www.gentoo.org/proj/en/qa/automagic.xml
Comment 9 Karl Hakimian 2007-10-30 22:00:45 UTC
OK. I guess I can work with that. I will put a modified copy in my overlay until things get resolved more usefully upstream.
Comment 10 Alessio Cassibba (X-Drum) 2007-10-31 19:36:39 UTC
Hi,

today i asked again to upstream about the libhal dependency,
the answer was that with virtualbox 1.5.2 libhal is no more required 
at build time, but is still required (or recommended) because
is loaded at runtime.

So again is possible to build and run VirtualBox without libhal
but when this requirement is not satisfied there can be side effects,
eg: VirtualBox don't recognize cd/dvd reader even if it works.
Comment 11 Karl Hakimian 2007-10-31 20:08:28 UTC
Thanks for the update.

I have not noticed any of those potential problems, but I have not done enough testing to say they are not there for sure.

Since virtualbox will compile and run without hal, could the ebuild be changed to warn people of hal is not included instead of requiring it?
Comment 12 Alon Bar-Lev 2008-11-13 10:10:03 UTC
swapon: Can you please confirm that forcing hal is still required in version 2.0.4?

This issue was dragged:
# sys-apps/hal is required at runtime (bug #197541)
Comment 13 Alon Bar-Lev 2008-11-13 10:12:07 UTC
Also CC jokey.
Please recheck the force of hal in recent version.
Thanks!