I have sdl installed, but no sdl-image. Emerging rocksndiamonds results in the following problem: gcc -Os -march=athlon -mcpu=athlon -fomit-frame-pointer -pipe -DTARGET_SDL -I/usr/include/SDL -D_REENTRANT -DRO_GAME_DIR="\"/usr/share/games/rocksndiamonds\"" -DRW_GAME_DIR="\"/var/games/rocksndiamonds\"" -c system.c In file included from system.h:30, from system.c:23: sdl.h:18:23: SDL_image.h: No such file or directory make[2]: *** [system.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/rocksndiamonds-3.0.6/work/rocksndiamonds-3.0.6/src/libgame' make[1]: *** [libgame_dir] Error 2 make[1]: Leaving directory `/var/tmp/portage/rocksndiamonds-3.0.6/work/rocksndiamonds-3.0.6/src' make: *** [sdl] Error 2 Reproducible: Always Steps to Reproduce:
please post the output of emerge --info as directed on the bug submission page.
- same problem over here, I have sdl in my USE-flags, however the required packages (sdl-mixer and sdl-image) are not pulled in. - the IUSE-variable is missing in the ebuild. - you also might want to bump the ebuild to version 3.0.8 (some bugfixes and more than 250 extra levels). emerge rocksndiamonds -vp These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild N ] games-arcade/rocksndiamonds-3.0.6 -dedicated 0 kB emerge sdl-mixer sdl-image -vp These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild N ] media-libs/libmikmod-3.1.10-r1 +alsa +esd +oss 516 kB [ebuild N ] media-libs/smpeg-0.4.4-r4 +X +gtk +opengl 307 kB [ebuild N ] media-libs/sdl-mixer-1.2.5-r1 +mikmod +mpeg +oggvorbis 914 kB [ebuild N ] media-libs/sdl-image-1.2.3 621 kB Total size of downloads: 2,360 kB emerge --info Portage 2.0.50-r1 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.3-gentoo-r1) ================================================================= System uname: 2.6.3-gentoo-r1 i686 Pentium III (Coppermine) Gentoo Base System version 1.4.3.13 distcc 2.12.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.7.7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distcc fixpackages sandbox" GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.easynet.nl/mirror/gentoo ftp://ftp.easynet.nl/mirror/gentoo" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X afs alsa apm arts avi berkdb crypt cups directfb doc encode esd flac foomaticdb gatos gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2 imlib jack java jpeg kde lcms ldap libg++ libwww mad mikmod mmx motif mozilla mpeg ncurses nls nptl oggvorbis opengl oss pam pda pdflib perl pic png python qt quicktime readline samba scanner sdl slang snmp speex spell sse ssl svga tcpd tetex tiff truetype usb wmf x86 xml2 xv zlib"
I think you have something screwy on your system. You might need to run revdep-rebuild. It works perfectly here: # USE="-* X" emerge -evp rocksndiamonds | grep sdl [ebuild N ] games-arcade/rocksndiamonds-3.0.6 +X -sdl 6,682 kB # USE="-* sdl" emerge -evp rocksndiamonds | grep sdl [ebuild N ] media-libs/libsdl-1.2.6-r3 -X -aalib -alsa -arts -dga -directfb -esd -fbcon -ggi -nas -noaudio -nojoystick -novideo -opengl -oss -svga -xinerama -xv 0 kB [ebuild N ] media-libs/sdl-mixer-1.2.5-r1 -mikmod -mpeg -oggvorbis 0 kB [ebuild N ] media-libs/sdl-image-1.2.3 0 kB [ebuild N ] games-arcade/rocksndiamonds-3.0.6 -X +sdl 6,682 kB
Bumped the version in CVS but that shouldn't change anything for you since the deps are still the same.
Thanks for your reply, If I change the DEPEND-section to; DEPEND="virtual/glibc X? ( virtual/x11 ) sdl? ( >=media-libs/libsdl-1.2.3 >=media-libs/sdl-mixer-1.2.4 >=media-libs/sdl-image-1.2.2 )" I get the following results; USE="-* X" emerge -evp rocksndiamonds | grep sdl [ebuild N ] games-arcade/rocksndiamonds-3.0.8 +X -sdl 20,226 kB USE="-* sdl" emerge -evp rocksndiamonds | grep sdl [ebuild N ] media-libs/libsdl-1.2.6-r3 -X -aalib -alsa -arts -dga -directfb -esd -fbcon -ggi -nas -noaudio -nojoystick -novideo -opengl -oss -svga -xinerama -xv 0 kB [ebuild N ] media-libs/sdl-mixer-1.2.5-r1 -mikmod -mpeg -oggvorbis 914 kB [ebuild N ] media-libs/sdl-image-1.2.3 621 kB [ebuild N ] games-arcade/rocksndiamonds-3.0.8 -X +sdl 20,226 kB I have one question; is there a reason not to use above DEPEND-section? I'm also wondering what the results are of the creator of the bug, what are your USE-flags (emerge --info).
Forgot to mention that I have looked at revdep-rebuild, but I don't think that will solve the problem that dependencies are not pulled in. It's for broken binaries after a library update. I have ran it nevertheless, because I think it won't hurd me either. It didn't solve the problem. And last but defintively not least; thanks a lot for the version bump and adding the IUSE-flag.
try it with portage-2.0.50-r3 and see if that makes a differenct please. The reason the depends are the way they are is that it is slightly different from what you've listed. What we're trying to say is, if you have X in use, depend on virtual/x11, if you have sdl in use, use sdl, otherwise, if you don't have either X or sdl in use, depend on virtual/x11 because we need one or the other to run.
Thanks for your explaination, I understand what you are saying. I have tried it with portage-2.0.50-r3 but I get the same results. BTW; I know this is a local problem, because other systems (including yours) work just fine so I would understand if you close this bug (unless the original poster decides to response). However if you are in the mood I would like to continue this hunt just to understand the system (portage) better. USE="-* sdl" emerge -evp rocksndiamonds | grep sdl [ebuild N ] games-arcade/rocksndiamonds-3.0.8 -X +sdl 20,226 kB emerge --info Portage 2.0.50-r3 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.3-gentoo-r1) ================================================================= System uname: 2.6.3-gentoo-r1 i686 Pentium III (Coppermine) Gentoo Base System version 1.4.3.13 distcc 2.12.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distcc fixpackages sandbox" GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.easynet.nl/mirror/gentoo ftp://ftp.easynet.nl/mirror/gentoo" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X afs alsa apm arts avi berkdb crypt cups directfb doc encode esd flac foomaticdb gatos gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2 imlib jack java jpeg kde lcms ldap libg++ libwww mad mikmod mmx motif mozilla mpeg ncurses nls nptl oggvorbis opengl oss pam pda pdflib perl pic png python qt quicktime readline samba scanner sdl slang snmp speex spell sse ssl svga tcpd tetex tiff truetype usb wmf x86 xml2 xv zlib"
It would be nice to track it down so we have it documented here if anyone else has a similar problem. Here's some stuff you can try: Make sure you don't have any local overlay stuff that could confuse it. Check for local unmasking/masking in /etc/portage. clear out /usr/portage/metadata completely and emerge --sync again. check the deps in /usr/portage/metadata for this package and make sure they match what's in the ebuild. use emerge -d to see what is going on behind the scenes.
this is because portage screwed around with the way || ( ) works i updated the DEPEND in portage to not use || ( ) syntax
Yep, that fixed it, thanks Mr. Bones and SpanKY for your support.