Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 406501 - eselect opengl (and mesa) should properly support GLES
Summary: eselect opengl (and mesa) should properly support GLES
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-02 00:05 UTC by Luca Barbato
Modified: 2012-03-03 00:33 UTC (History)
1 user (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 Luca Barbato gentoo-dev 2012-03-02 00:05:22 UTC
We should keep GLES as selectable lib like opengl egl and openvg since we have embedded implementations providing custom GLES.

--- /usr/share/eselect/modules/opengl.old	2012-03-02 00:56:17.715665018 +0100
+++ /usr/share/eselect/modules/opengl.eselect	2012-03-02 01:00:49.761655112 +0100
@@ -111,7 +111,7 @@
 			rm -f "${file}"* || die -q "Failed to delete ${file}"
 		done
 
-		for file in "${profile_libdir}"/lib{EGL,GL,OpenVG}{,core}.{so,dylib,a}; do
+		for file in "${profile_libdir}"/lib{EGL,GL{,ES*},OpenVG}{,core}.{so,dylib,a}; do
 			upgrade_file "${file}" "${target}"
 			setup_soname_symlinks "${file}" "${target}"
 		done


--- mesa-8.0.1.ebuild	24 Feb 2012 17:42:36 -0000	1.2
+++ mesa-8.0.1.ebuild	2 Mar 2012 00:04:45 -0000
@@ -273,13 +273,13 @@
 	ebegin "Moving libGL and friends for dynamic switching"
 		dodir /usr/$(get_libdir)/opengl/${OPENGL_DIR}/{lib,extensions,include}
 		local x
-		for x in "${ED}"/usr/$(get_libdir)/lib{EGL,GL,OpenVG}.{la,a,so*}; do
+		for x in "${ED}"/usr/$(get_libdir)/lib{EGL,GL*,OpenVG}.{la,a,so*}; do
 			if [ -f ${x} -o -L ${x} ]; then
 				mv -f "${x}" "${ED}"/usr/$(get_libdir)/opengl/${OPENGL_DIR}/lib \
 					|| die "Failed to move ${x}"
 			fi
 		done
-		for x in "${ED}"/usr/include/GL/{gl.h,glx.h,glext.h,glxext.h}; do
+		for x in "${ED}"/usr/include/*/*.h; do
 			if [ -f ${x} -o -L ${x} ]; then
 				mv -f "${x}" "${ED}"/usr/$(get_libdir)/opengl/${OPENGL_DIR}/include \
 					|| die "Failed to move ${x}"