Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 431182 - OS X 10.8 Mountain Lion needs XQuartz for opengl-apple
Summary: OS X 10.8 Mountain Lion needs XQuartz for opengl-apple
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: AMD64 OS X
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 577520
  Show dependency tree
 
Reported: 2012-08-13 07:51 UTC by Myk Taylor
Modified: 2017-11-15 17:53 UTC (History)
2 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 Myk Taylor 2012-08-13 07:51:21 UTC
I'm setting up a prefix install for the first time, and I found that opengl-apple-4 links to non-existent files on my Mountain Lion system.  I ran some locate commands to try to figure out the new paths.  I found some files under /Applications/Xcode.app, but didn't list those  paths here to reduce clutter (tell me if you want to see them).

couldn't find anything with locate:
$EPREFIX/usr/include/GL/GLwDrawA.h -> /usr/X11R6/include/GL/GLwDrawA.h
$EPREFIX/usr/include/GL/osmesa.h -> /usr/X11R6/include/GL/osmesa.h
$EPREFIX/usr/lib/libGLw.a -> /usr/X11R6/lib/libGLw.a
$EPREFIX/usr/lib/opengl/opengl-apple/include/glx.h -> /usr/X11R6/include/GL/glx.h
$EPREFIX/usr/lib/opengl/opengl-apple/include/glxext.h -> /usr/X11R6/include/GL/glxext.h
$EPREFIX/usr/lib/opengl/opengl-apple/include/glxmd.h -> /usr/X11R6/include/GL/glxmd.h
$EPREFIX/usr/lib/opengl/opengl-apple/include/glxproto.h -> /usr/X11R6/include/GL/glxproto.h
$EPREFIX/usr/lib/opengl/opengl-apple/include/glxtokens.h -> /usr/X11R6/include/GL/glxtokens.h

found a likely replacement with locate:
$EPREFIX/usr/include/GL/glu.h -> /usr/X11R6/include/GL/glu.h
/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/glu.h

$EPREFIX/usr/lib/libGLU.dylib -> /usr/X11R6/lib/libGLU.dylib
/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
/usr/X11/lib/libGLU.1.dylib

$EPREFIX/usr/lib/opengl/opengl-apple/lib/libGL.dylib -> /usr/X11R6/lib/libGL.dylib
/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
/usr/X11/lib/libGL.1.dylib

found replacements in /System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/:
$EPREFIX/usr/lib/opengl/opengl-apple/include/gl.h -> /usr/X11R6/include/GL/gl.h
$EPREFIX/usr/lib/opengl/opengl-apple/include/glext.h -> /usr/X11R6/include/GL/glext.h


The upshot of all this is that eselect opengl refuses to switch to apple's opengl implementation:

$ eselect opengl list
Available OpenGL implementations:
  [1]   opengl-apple
  [2]   xorg-x11 *

$ eselect opengl set 1
!!! Error: The opengl-apple OpenGL implementation doesn't seem to provide
!!! Error: libGL.dylib file. This might be an effect of breakage introduced
!!! Error: by a prioprietary driver installer. Please re-merge the package
!!! Error: providing your OpenGL implementation.
!!! Error: Selected OpenGL implementation incomplete.
exiting

Reproducible: Always
Comment 1 Fabian Groffen gentoo-dev 2012-09-30 09:40:41 UTC
quote from wikipedia:

Mac OS X v10.5, Mac OS X v10.6 and Mac OS X v10.7 installed X11.app by default, but as of OS X Mountain Lion, Apple has dropped dedicated support for X11.app, with users directed to the open source XQuartz project instead.

ok, so that explains why half of the stuff is missing.
Comment 2 Fabian Groffen gentoo-dev 2012-09-30 10:38:10 UTC
we'd have to create an ebuild like MacPorts does:

https://trac.macports.org/browser/trunk/dports/x11/xorg-server/Portfile
Comment 3 Fabian Groffen gentoo-dev 2017-11-15 17:53:06 UTC
I think reality is that we failed to keep X support running.