Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 313899 - virtual/opengl-7.0 pulls in mesa instead of opengl-apple
Summary: virtual/opengl-7.0 pulls in mesa instead of opengl-apple
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: AMD64 OS X
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-08 17:43 UTC by Daniel Klaffenbach
Modified: 2010-04-23 18:48 UTC (History)
0 users

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 Daniel Klaffenbach 2010-04-08 17:43:29 UTC
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
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-04-08 17:55:34 UTC
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.
Comment 2 Fabian Groffen gentoo-dev 2010-04-08 19:58:53 UTC
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.
Comment 3 Fabian Groffen gentoo-dev 2010-04-08 20:00:05 UTC
Maybe this is cleaner?

kernel_Darwin ? || ( media-libs/opengl-apple media-libs/mesa )
!kernel_Darwin? ( media-libs/mesa )
Comment 4 Daniel Klaffenbach 2010-04-09 07:57:19 UTC
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).
Comment 5 Fabian Groffen gentoo-dev 2010-04-09 08:51:16 UTC
I think it once worked, but maybe we should indeed drop it for the moment.
Comment 6 Fabian Groffen gentoo-dev 2010-04-23 18:48:26 UTC
I masked mesa, which should force portage to choose opengl-apple.