* [gentoo-commits] eselect r806 - trunk/extern/modules
@ 2011-02-23 13:25 Michal Gorny (mgorny)
0 siblings, 0 replies; only message in thread
From: Michal Gorny (mgorny) @ 2011-02-23 13:25 UTC (permalink / raw
To: gentoo-commits
Author: mgorny
Date: 2011-02-23 13:25:48 +0000 (Wed, 23 Feb 2011)
New Revision: 806
Modified:
trunk/extern/modules/opengl.eselect
Log:
Check whether the select OpenGL implem provides any libGL.so.
Modified: trunk/extern/modules/opengl.eselect
===================================================================
--- trunk/extern/modules/opengl.eselect 2011-02-19 10:46:30 UTC (rev 805)
+++ trunk/extern/modules/opengl.eselect 2011-02-23 13:25:48 UTC (rev 806)
@@ -173,6 +173,21 @@
die -q "Invalid opengl implementation selected."
fi
+ local found_libgl
+ for libdir in $(list_libdirs); do
+ [[ ${ROOT} != / ]] && libdir=${libdir#${EROOT}}
+ [[ -d ${PREFIX}/${libdir}/opengl && ! -h ${PREFIX}/${libdir} ]] || continue
+ [[ -f "${PREFIX}/${libdir}/opengl/${gl_implem}/lib/libGL.so" ]] && found_libgl=yes
+ done
+
+ if [[ -z ${found_libgl} ]]; then
+ write_error_msg "The ${gl_implem} OpenGL implementation doesn't seem to provide"
+ write_error_msg "libGL.so file. This might be an effect of breakage introduced"
+ write_error_msg "by a prioprietary driver installer. Please re-merge the package"
+ write_error_msg "providing your OpenGL implementation."
+ die -q "Selected OpenGL implementation incomplete."
+ fi
+
echo -n "Switching to ${gl_implem} OpenGL interface..."
if [[ -f ${ENV_FILE} ]] ; then
rm -f "${ENV_FILE}" || die -q "Failed to remove ${ENV_FILE}"
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-02-23 13:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-23 13:25 [gentoo-commits] eselect r806 - trunk/extern/modules Michal Gorny (mgorny)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox