emerging virtual/opengl-7.0 pulls in the latest media-libs/mesa instead of media-libs/opengl-apple on Mac OS 10.5.8. emerging media-libs/opengl-apple before virtual/opengl-7.0 works fine. Reproducible: Always Steps to Reproduce: 1. emerge virtual/opengl Actual Results: media-libs/mesa gets pulled in Expected Results: media-libs/opengl-apple should be emerged instead of mesa Portage 2.2.00.15842-prefix (prefix/darwin/macos/10.5/x64, gcc-4.2.1, unavailable, 9.8.0 i386) ================================================================= System uname: Darwin-9.8.0-i386-64bit Timestamp of tree: Thu, 08 Apr 2010 08:07:24 +0000 distcc 2.18.5-Apple.1 i386-apple-darwin9.0 (protocols 1 and 2) (default port 3632) [disabled] app-shells/bash: 4.0_p37 dev-lang/python: 2.6.5-r1 dev-util/cmake: 2.8.1 sys-devel/autoconf: 2.65 sys-devel/automake: 1.10.2-r00.1, 1.11.1 sys-devel/gcc-config: 1.4.1-r00.2 sys-devel/libtool: 2.2.6b ACCEPT_KEYWORDS="~x64-macos" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-apple-darwin9" CFLAGS="-O2 -pipe -march=nocona" CHOST="x86_64-apple-darwin9" CONFIG_PROTECT="/etc /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/terminfo" CXXFLAGS="-O2 -pipe -march=nocona" DISTDIR="/Volumes/Users/daniel/Library/Gentoo/usr/portage/distfiles" FEATURES="assume-digests collision-protect distlocks fixpackages news nostrip parallel-fetch preserve-libs protect-owned sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo" LDFLAGS="" MAKEOPTS="-j9" PKGDIR="/Volumes/Users/daniel/Library/Gentoo/usr/portage/packages" PORTAGE_CONFIGROOT="/Volumes/Users/daniel/Library/Gentoo/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/Volumes/Users/daniel/Library/Gentoo/var/tmp" PORTDIR="/Volumes/Users/daniel/Library/Gentoo/usr/portage" SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix" USE="aqua bash-completion coreaudio cracklib cxx dbus kde kpathsea mmx mmxext modules ncurses nls objc objc++ prefix qt3support qt4 readline sse sse2 ssl unicode x64-macos zlib" APACHE2_MODULES="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 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" ELIBC="Darwin" INPUT_DEVICES="keyboard mouse" KERNEL="Darwin" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
RDEPEND="|| ( media-libs/mesa media-libs/opengl-apple )" Could probably do: RDPEND="x86-macosx? || ( media-libs/opengl-apple media-libs/mesa) x64-macosx? || ( media-libs/opengl-apple media-libs/mesa ) !x86-macosx? || ( media-libs/mesa media-libs/opengl-apple ) !x64-macosx? || ( media-libs/mesa media-libs/opengl-apple )" Kinda nasty.
hmmm, that's nasty indeed. The preference on OSX should really be there, doesn't feel like the specification gives us handles to do so.
Maybe this is cleaner? kernel_Darwin ? || ( media-libs/opengl-apple media-libs/mesa ) !kernel_Darwin? ( media-libs/mesa )
Why not this? kernel_Darwin ? ( media-libs/opengl-apple ) !kernel_Darwin? ( media-libs/mesa ) I do not see why anybody would need mesa on OSX. libdrm does not compile anyway (why should it, though).
I think it once worked, but maybe we should indeed drop it for the moment.
I masked mesa, which should force portage to choose opengl-apple.