<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>177335</bug_id>
          
          <creation_ts>2007-05-06 14:23 0000</creation_ts>
          <short_desc>app-emulation/virtualbox-1.3.8 needs media-libs/libsdl compiled with X use flag enabled</short_desc>
          <delta_ts>2007-05-13 09:04:24 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>r_a@lavabit.com</reporter>
          <assigned_to>jokey@gentoo.org</assigned_to>
          <cc>swapon@gmail.com</cc>

      

      
          <long_desc isprivate="0">
            <who>r_a@lavabit.com</who>
            <bug_when>2007-05-06 14:23:52 0000</bug_when>
            <thetext>ssia

Reproducible: Always

Steps to Reproduce:
1. USE=-X emerge libsdl
2. emerge virtualbox



Expected Results:  

virtualbox ebuild should complain because libsdl was compiled with X use flag disabled (and not start building)


emerge info:

Portage 2.1.2.2 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.19-gentoo-r5 i686)
=================================================================
System uname: 2.6.19-gentoo-r5 i686 Intel(R) Core(TM) Duo CPU      L2500  @ 1.83GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Thu, 03 May 2007 01:50:01 +0000
dev-java/java-config: 1.3.7, 2.0.31-r5
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
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.16.1-r3
sys-devel/gcc-config: 1.3.15-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS=&quot;x86&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-march=prescott -O2 -pipe -fomit-frame-pointer&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config&quot;
CONFIG_PROTECT_MASK=&quot;/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo&quot;
CXXFLAGS=&quot;-march=prescott -O2 -pipe -fomit-frame-pointer&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;buildpkg collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict userpriv usersandbox&quot;
GENTOO_MIRRORS=&quot;http://INTERNAL_SERVER/gentoo/ http://gentoo.inode.at/&quot;
MAKEOPTS=&quot;-j6&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--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-*&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://INTERNAL_SERVER/gentoo-portage&quot;
USE=&quot;alsa arts bash-completion berkdb bitmap-fonts cli cracklib crypt cups divx dri fortran gdbm gpm iconv idn isdnlog ithreads kde kdeenablefinal libg++ midi mmx mp3 ncurses nptl nptlonly opengl pam pcre perl ppds pppd python quicktime readline real realmedia reflection session spl sse sse2 ssl threads truetype truetype-fonts type1-fonts unicode vorbis win32codecs x86 xorg zlib&quot; ALSA_CARDS=&quot;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&quot; ALSA_PCM_PLUGINS=&quot;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&quot; ELIBC=&quot;glibc&quot; INPUT_DEVICES=&quot;keyboard mouse evdev&quot; KERNEL=&quot;linux&quot; LCD_DEVICES=&quot;bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text&quot; USERLAND=&quot;GNU&quot; VIDEO_CARDS=&quot;i810&quot;
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>r_a@lavabit.com</who>
            <bug_when>2007-05-06 14:25:11 0000</bug_when>
            <thetext>

actual results (bugzilla argued that the comment was too long):

ld: Installing VBoxManage =&gt; /tmp/portage/app-emulation/virtualbox-1.3.8/work/vbox-ose-1.3.8/out/linux.x86/release/bin/VBoxManage
kmk[4]: Leaving directory `/tmp/portage/app-emulation/virtualbox-1.3.8/work/vbox-ose-1.3.8/src/VBox/Frontends/VBoxManage&apos;
kmk[4]: Entering directory `/tmp/portage/app-emulation/virtualbox-1.3.8/work/vbox-ose-1.3.8/src/VBox/Frontends/VBoxSDL&apos;
kBuild: Compiling VBoxSDL - VBoxSDL.cpp
/tmp/portage/app-emulation/virtualbox-1.3.8/work/vbox-ose-1.3.8/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp: In function &apos;int main(int, char**)&apos;:
/tmp/portage/app-emulation/virtualbox-1.3.8/work/vbox-ose-1.3.8/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp:1831: error: &apos;struct SDL_SysWMinfo&apos; has no member named &apos;info&apos;
/tmp/portage/app-emulation/virtualbox-1.3.8/work/vbox-ose-1.3.8/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp:2493: error: &apos;struct SDL_SysWMinfo&apos; has no member named &apos;info&apos;
/tmp/portage/app-emulation/virtualbox-1.3.8/work/vbox-ose-1.3.8/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp:2507: error: &apos;struct SDL_SysWMinfo&apos; has no member named &apos;info&apos;
/tmp/portage/app-emulation/virtualbox-1.3.8/work/vbox-ose-1.3.8/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp: In function &apos;void SetPointerShape(const PointerShapeChangeData*)&apos;:
/tmp/portage/app-emulation/virtualbox-1.3.8/work/vbox-ose-1.3.8/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp:3554: error: &apos;struct SDL_SysWMinfo&apos; has no member named &apos;info&apos;
/tmp/portage/app-emulation/virtualbox-1.3.8/work/vbox-ose-1.3.8/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp:3573: error: &apos;struct SDL_SysWMinfo&apos; has no member named &apos;info&apos;
kmk[4]: *** [/tmp/portage/app-emulation/virtualbox-1.3.8/work/vbox-ose-1.3.8/out/linux.x86/release/obj/src/VBox/Frontends/VBoxSDL/VBoxSDL/VBoxSDL.o] Error 1
The failing command:
        @g++ -c -O2 -g -Wall -Wno-long-long -Wno-trigraphs -Wno-variadic-macros -pipe -O2 -fno-omit-frame-pointer -fno-strict-aliasing  -DNDEBUG -DTRIMMED -DVBOX_WITH_XPCOM -O -Wall -fno-rtti -fno-exceptions -Wno-non-virtual-dtor -Wno-long-long -fshort-wchar -pthread -pipe -I/tmp/portage/app-emulation/virtualbox-1.3.8/work/vbox-ose-1.3.8/out/linux.x86/release/bin/sdk/include -I/tmp/portage/app-emulation/virtualbox-1.3.8/work/vbox-ose-1.3.8/out/linux.x86/release/bin/sdk/include -I/tmp/portage/app-emulation/virtualbox-1.3.8/work/vbox-ose-1.3.8/out/linux.x86/release/bin/sdk/include/xpcom -I/tmp/portage/app-emulation/virtualbox-1.3.8/work/vbox-ose-1.3.8/out/linux.x86/release/bin/sdk/include/xpcom/nsprpub -I/tmp/portage/app-emulation/virtualbox-1.3.8/work/vbox-ose-1.3.8/out/linux.x86/release/bin/sdk/include/xpcom/string -I/tmp/portage/app-emulation/virtualbox-1.3.8/work/vbox-ose-1.3.8/out/linux.x86/release/bin/sdk/include/xpcom/xpcom -I/tmp/portage/app-emulation/virtualbox-1.3.8/work/vbox-ose-1.3.8/out/linux.x86/release/bin/sdk/include/xpcom/ipcd -I/tmp/portage/app-emulation/virtualbox-1.3.8/work/vbox-ose-1.3.8/out/linux.x86/release/obj/src/VBox/Frontends/VBoxSDL/VBoxSDL -I/usr/include/SDL -I/tmp/portage/app-emulation/virtualbox-1.3.8/work/vbox-ose-1.3.8/include -I/tmp/portage/app-emulation/virtualbox-1.3.8/work/vbox-ose-1.3.8/src/VBox/Frontends/VBoxSDL -I/tmp/portage/app-emulation/virtualbox-1.3.8/work/vbox-ose-1.3.8/out/linux.x86/release -DVBOX -DVBOX_OSE -D__LINUX__ -D_FILE_OFFSET_BITS=64 -D__X86__ -DIN_RING3 -DHC_ARCH_BITS=32 -DGC_ARCH_BITS=32 -D_GNU_SOURCE -Wp,-MD,/tmp/portage/app-emulation/virtualbox-1.3.8/work/vbox-ose-1.3.8/out/linux.x86/release/obj/src/VBox/Frontends/VBoxSDL/VBoxSDL/VBoxSDL.o.dep -Wp,-MT,/tmp/portage/app-emulation/virtualbox-1.3.8/work/vbox-ose-1.3.8/out/linux.x86/release/obj/src/VBox/Frontends/VBoxSDL/VBoxSDL/VBoxSDL.o -Wp,-MP -o /tmp/portage/app-emulation/virtualbox-1.3.8/work/vbox-ose-1.3.8/out/linux.x86/release/obj/src/VBox/Frontends/VBoxSDL/VBoxSDL/VBoxSDL.o /tmp/portage/app-emulation/virtualbox-1.3.8/work/vbox-ose-1.3.8/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp
kmk[4]: Leaving directory `/tmp/portage/app-emulation/virtualbox-1.3.8/work/vbox-ose-1.3.8/src/VBox/Frontends/VBoxSDL&apos;
kmk[3]: *** [pass_binaries_before] Error 2
kmk[3]: Leaving directory `/tmp/portage/app-emulation/virtualbox-1.3.8/work/vbox-ose-1.3.8/src/VBox/Frontends&apos;
kmk[2]: *** [pass_binaries_before] Error 2
kmk[2]: Leaving directory `/tmp/portage/app-emulation/virtualbox-1.3.8/work/vbox-ose-1.3.8/src/VBox&apos;
kmk[1]: *** [pass_binaries_before] Error 2
kmk[1]: Leaving directory `/tmp/portage/app-emulation/virtualbox-1.3.8/work/vbox-ose-1.3.8/src&apos;
kmk: *** [pass_binaries_before] Error 2

!!! ERROR: app-emulation/virtualbox-1.3.8 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call &apos;src_compile&apos;
  environment, line 3345:   Called src_compile
  virtualbox-1.3.8.ebuild, line 52:   Called die

!!! kmk failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at &apos;/tmp/portage/app-emulation/virtualbox-1.3.8/temp/build.log&apos;.

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>swapon@gmail.com</who>
            <bug_when>2007-05-08 11:15:30 0000</bug_when>
            <thetext>(In reply to comment #0) 
&gt; virtualbox ebuild should complain because libsdl was compiled with X use flag
&gt; disabled (and not start building)

Hi,
the same problem occurs here,
in addition there are problems running VBoxSDL with:
app-emulation/virtualbox-bin-1.3.8-r1

when media-libs/libsdl is compiled without the X useflag.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>swapon@gmail.com</who>
            <bug_when>2007-05-08 11:26:53 0000</bug_when>
            <thetext>Created an attachment (id=118547)
app-emulation/virtualbox-1.3.8 ebuild patch

VBoxSDL needs media-libs/libsdl compiled with the X useflag,
added a check in pkg_setup  </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>swapon@gmail.com</who>
            <bug_when>2007-05-08 11:28:02 0000</bug_when>
            <thetext>Created an attachment (id=118549)
app-emulation/virtualbox-bin-1.3.8-r1 ebuild patch

VBoxSDL needs media-libs/libsdl compiled with the X useflag,
added a check in pkg_setup</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jokey@gentoo.org</who>
            <bug_when>2007-05-13 09:04:24 0000</bug_when>
            <thetext>Meh, I should stop slacking... committed fixes provided by Alessio. thankies ;)</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>118547</attachid>
            <date>2007-05-08 11:26 0000</date>
            <desc>app-emulation/virtualbox-1.3.8 ebuild patch</desc>
            <filename>virtualbox-1.3.8.ebuild.diff</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIHZpcnR1YWxib3gtMS4zLjguZWJ1aWxkLm9yaWcJMjAwNy0wNC0yMSAxMzozNTozMC4wMDAw
MDAwMDAgKzAyMDAKKysrIHZpcnR1YWxib3gtMS4zLjguZWJ1aWxkCTIwMDctMDUtMDggMTI6MzM6
MzEuMDAwMDAwMDAwICswMjAwCkBAIC0zNCw2ICszNCwxNiBAQAogCiBTPSR7V09SS0RJUn0vdmJv
eC1vc2UtJHtQVn0KIAorcGtnX3NldHVwKCkgeworCSMgVGhlIFZCb3hTREwgZnJvbnRlbmQgbmVl
ZHMgbWVkaWEtbGlicy9saWJzZGwgY29tcGlsZWQgCisJIyB3aXRoIFVTRSBmbGFnIFggZW5hYmxl
ZCAoYnVnICMxNzczMzUpCisJaWYgISBidWlsdF93aXRoX3VzZSBtZWRpYS1saWJzL2xpYnNkbCBY
OyB0aGVuCisJCWVlcnJvciAibWVkaWEtbGlicy9saWJzZGwgd2FzIGNvbXBpbGVkIHdpdGhvdXQg
dGhlIFwiWFwiIFVTRSBmbGFnIGVuYWJsZWQuIgorCQllZXJyb3IgIlBsZWFzZSByZS1lbWVyZ2Ug
bWVkaWEtbGlicy9saWJzZGwgd2l0aCBVU0U9XCJYXCIuIgorCQlkaWUgIm1lZGlhLWxpYnMvbGli
c2RsIHNob3VsZCBiZSBjb21waWxlZCB3aXRoIHRoZSBcIlhcIiBVU0UgZmxhZy4iCisJZmkKK30K
Kwogc3JjX3VucGFjaygpIHsKIAl1bnBhY2sgJHtBfQogCWNkICIke1N9Igo=
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>118549</attachid>
            <date>2007-05-08 11:28 0000</date>
            <desc>app-emulation/virtualbox-bin-1.3.8-r1 ebuild patch</desc>
            <filename>virtualbox-bin-1.3.8-r1.ebuild.diff</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIHZpcnR1YWxib3gtYmluLTEuMy44LXIxLmVidWlsZC5vcmlnCTIwMDctMDQtMjEgMTM6MzU6
MzAuMDAwMDAwMDAwICswMjAwCisrKyB2aXJ0dWFsYm94LWJpbi0xLjMuOC1yMS5lYnVpbGQJMjAw
Ny0wNS0wOCAxMjo0NjowNC4wMDAwMDAwMDAgKzAyMDAKQEAgLTQ1LDYgKzQ1LDE0IEBACiBSRVNU
UklDVD0icHJpbWFyeXVyaSIKIAogcGtnX3NldHVwKCkgeworCSMgVGhlIFZCb3hTREwgZnJvbnRl
bmQgbmVlZHMgbWVkaWEtbGlicy9saWJzZGwgY29tcGlsZWQKKwkjIHdpdGggVVNFIGZsYWcgWCBl
bmFibGVkIChidWcgIzE3NzMzNSkKKwlpZiAhIGJ1aWx0X3dpdGhfdXNlIG1lZGlhLWxpYnMvbGli
c2RsIFg7IHRoZW4KKwkJZWVycm9yICJtZWRpYS1saWJzL2xpYnNkbCB3YXMgY29tcGlsZWQgd2l0
aG91dCB0aGUgXCJYXCIgVVNFIGZsYWcgZW5hYmxlZC4iCisJCWVlcnJvciAiUGxlYXNlIHJlLWVt
ZXJnZSBtZWRpYS1saWJzL2xpYnNkbCB3aXRoIFVTRT1cIlhcIi4iCisJCWRpZSAibWVkaWEtbGli
cy9saWJzZGwgc2hvdWxkIGJlIGNvbXBpbGVkIHdpdGggdGhlIFwiWFwiIFVTRSBmbGFnLiIKKwlm
aQorCiAJY2hlY2tfbGljZW5zZQogfQogCg==
</data>        

          </attachment>
    </bug>

</bugzilla>