1 |
Author: mgorny |
2 |
Date: 2011-02-23 13:25:48 +0000 (Wed, 23 Feb 2011) |
3 |
New Revision: 806 |
4 |
|
5 |
Modified: |
6 |
trunk/extern/modules/opengl.eselect |
7 |
Log: |
8 |
Check whether the select OpenGL implem provides any libGL.so. |
9 |
|
10 |
Modified: trunk/extern/modules/opengl.eselect |
11 |
=================================================================== |
12 |
--- trunk/extern/modules/opengl.eselect 2011-02-19 10:46:30 UTC (rev 805) |
13 |
+++ trunk/extern/modules/opengl.eselect 2011-02-23 13:25:48 UTC (rev 806) |
14 |
@@ -173,6 +173,21 @@ |
15 |
die -q "Invalid opengl implementation selected." |
16 |
fi |
17 |
|
18 |
+ local found_libgl |
19 |
+ for libdir in $(list_libdirs); do |
20 |
+ [[ ${ROOT} != / ]] && libdir=${libdir#${EROOT}} |
21 |
+ [[ -d ${PREFIX}/${libdir}/opengl && ! -h ${PREFIX}/${libdir} ]] || continue |
22 |
+ [[ -f "${PREFIX}/${libdir}/opengl/${gl_implem}/lib/libGL.so" ]] && found_libgl=yes |
23 |
+ done |
24 |
+ |
25 |
+ if [[ -z ${found_libgl} ]]; then |
26 |
+ write_error_msg "The ${gl_implem} OpenGL implementation doesn't seem to provide" |
27 |
+ write_error_msg "libGL.so file. This might be an effect of breakage introduced" |
28 |
+ write_error_msg "by a prioprietary driver installer. Please re-merge the package" |
29 |
+ write_error_msg "providing your OpenGL implementation." |
30 |
+ die -q "Selected OpenGL implementation incomplete." |
31 |
+ fi |
32 |
+ |
33 |
echo -n "Switching to ${gl_implem} OpenGL interface..." |
34 |
if [[ -f ${ENV_FILE} ]] ; then |
35 |
rm -f "${ENV_FILE}" || die -q "Failed to remove ${ENV_FILE}" |