diff options
author | Jeremy Huddleston <eradicator@gentoo.org> | 2005-01-25 01:13:34 +0000 |
---|---|---|
committer | Jeremy Huddleston <eradicator@gentoo.org> | 2005-01-25 01:13:34 +0000 |
commit | 7dcadd41b15b953f6c684b87dba129e7345b7795 (patch) | |
tree | afc398fe8edc5963ac433bc9de3a03e0ec7c80a7 /x11-base | |
parent | Added missing odepath.patch. Closing bug #77792. (diff) | |
download | historical-7dcadd41b15b953f6c684b87dba129e7345b7795.tar.gz historical-7dcadd41b15b953f6c684b87dba129e7345b7795.tar.bz2 historical-7dcadd41b15b953f6c684b87dba129e7345b7795.zip |
Version bump to fix multilib issues. Also addresses bug #47598.
Package-Manager: portage-2.0.51-r14
Diffstat (limited to 'x11-base')
-rw-r--r-- | x11-base/opengl-update/ChangeLog | 8 | ||||
-rw-r--r-- | x11-base/opengl-update/Manifest | 31 | ||||
-rw-r--r-- | x11-base/opengl-update/files/digest-opengl-update-2.1_pre1 | 1 | ||||
-rw-r--r-- | x11-base/opengl-update/files/opengl-update-2.1_pre1 | 289 | ||||
-rw-r--r-- | x11-base/opengl-update/opengl-update-2.1_pre1.ebuild | 71 |
5 files changed, 390 insertions, 10 deletions
diff --git a/x11-base/opengl-update/ChangeLog b/x11-base/opengl-update/ChangeLog index 430fc46bc0bd..3aa1b598a21e 100644 --- a/x11-base/opengl-update/ChangeLog +++ b/x11-base/opengl-update/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for x11-base/opengl-update # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/x11-base/opengl-update/ChangeLog,v 1.58 2005/01/21 14:38:21 geoman Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-base/opengl-update/ChangeLog,v 1.59 2005/01/25 01:13:34 eradicator Exp $ + +*opengl-update-2.1_pre1 (24 Jan 2005) + + 24 Jan 2005; Jeremy Huddleston <eradicator@gentoo.org> + +files/opengl-update-2.1_pre1, +opengl-update-2.1_pre1.ebuild: + Version bump to fix multilib issues. Also addresses bug #47598. 21 Jan 2005; Stephen P. Becker <geoman@gentoo.org> opengl-update-2.0_pre4-r1.ebuild: diff --git a/x11-base/opengl-update/Manifest b/x11-base/opengl-update/Manifest index 46b95cd15216..b2ef4c4a30c0 100644 --- a/x11-base/opengl-update/Manifest +++ b/x11-base/opengl-update/Manifest @@ -1,14 +1,27 @@ -MD5 4e8eebd835dbf4f24182d7cce7af8ab7 opengl-update-1.7.2.ebuild 541 -MD5 8c379f3db72c5092a1aec955685a4a66 opengl-update-2.0_pre4-r1.ebuild 1742 -MD5 020171f71e450cf568dac04eabd695f4 opengl-update-1.8.2.ebuild 1594 -MD5 e09cd4f7c702a46b98cc51358fe1e8fa ChangeLog 10476 +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +MD5 aa9d3d45162d00f2d519830de2e7934e ChangeLog 10709 MD5 06e66398889b0eaf43fd1a634521bdb0 metadata.xml 318 MD5 5b48e832f6c2794525ab473968ad7071 opengl-update-1.5.ebuild 525 -MD5 bd56a074f4d53f9ff26e828e0a34cbf3 files/opengl-update-1.7.2 4975 -MD5 17ebb42dcebb9fcf0d717b135586fca3 files/opengl-update-1.8.2 8303 -MD5 0ca46fbf32086f062609ee83fc042c87 files/opengl-update-1.5 3774 +MD5 4e8eebd835dbf4f24182d7cce7af8ab7 opengl-update-1.7.2.ebuild 541 +MD5 020171f71e450cf568dac04eabd695f4 opengl-update-1.8.2.ebuild 1594 +MD5 8c379f3db72c5092a1aec955685a4a66 opengl-update-2.0_pre4-r1.ebuild 1742 +MD5 e725d080e1e71e9d14d5c77266a65322 opengl-update-2.1_pre1.ebuild 2465 MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-opengl-update-1.5 0 -MD5 745fdf145b2e08f0c996a3ca40b1ca16 files/digest-opengl-update-2.0_pre4-r1 64 -MD5 976b6bf00cfdfeaa6cdadbfd49cd2e95 files/opengl-update-2.0_pre4 9755 MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-opengl-update-1.7.2 0 MD5 745fdf145b2e08f0c996a3ca40b1ca16 files/digest-opengl-update-1.8.2 64 +MD5 745fdf145b2e08f0c996a3ca40b1ca16 files/digest-opengl-update-2.0_pre4-r1 64 +MD5 0ca46fbf32086f062609ee83fc042c87 files/opengl-update-1.5 3774 +MD5 bd56a074f4d53f9ff26e828e0a34cbf3 files/opengl-update-1.7.2 4975 +MD5 17ebb42dcebb9fcf0d717b135586fca3 files/opengl-update-1.8.2 8303 +MD5 54a36998c154d8f5b6958956ff15d555 files/opengl-update-2.1_pre1 7471 +MD5 976b6bf00cfdfeaa6cdadbfd49cd2e95 files/opengl-update-2.0_pre4 9755 +MD5 745fdf145b2e08f0c996a3ca40b1ca16 files/digest-opengl-update-2.1_pre1 64 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.0 (GNU/Linux) + +iD8DBQFB9Z1HArHZZzCEUG0RAmY/AJ92Dh36pmkOwDnJ3G9do0ii4ll3XwCfX9vS +sdbEVpm7VEJr3/O36aAPUzU= +=qM1S +-----END PGP SIGNATURE----- diff --git a/x11-base/opengl-update/files/digest-opengl-update-2.1_pre1 b/x11-base/opengl-update/files/digest-opengl-update-2.1_pre1 new file mode 100644 index 000000000000..23c2e8979086 --- /dev/null +++ b/x11-base/opengl-update/files/digest-opengl-update-2.1_pre1 @@ -0,0 +1 @@ +MD5 e16a3144742d1a5409fe18477a88f8b6 glext.h-20040830.bz2 30982 diff --git a/x11-base/opengl-update/files/opengl-update-2.1_pre1 b/x11-base/opengl-update/files/opengl-update-2.1_pre1 new file mode 100644 index 000000000000..1362523c453b --- /dev/null +++ b/x11-base/opengl-update/files/opengl-update-2.1_pre1 @@ -0,0 +1,289 @@ +#!/bin/bash +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-base/opengl-update/files/opengl-update-2.1_pre1,v 1.1 2005/01/25 01:13:34 eradicator Exp $ +# Author: Martin Schlemmer <azarah@gentoo.org> +# Further modifications by Donnie Berkholz <spyderous@gentoo.org> +# Further modifications based off submissions to bug #54984 <cyfred@gentoo.org> + +. /etc/init.d/functions.sh + +need_version() { + local X11 X11_VER X11_MAJOR_VER X11_MINOR_VER X11_MICRO_VER ERROR_MSG + ERROR_MSG="This version requires >=x11-base/xorg-x11-6.8.0-r4" + X11="$(portageq match / virtual/x11)" + # Got the egrep from ferringb, who got it from portage code + X11_VER="$(echo ${X11} | egrep -o '(cvs\.)?([[:digit:]]+)((\.[[:digit:]]+)*)([a-z]?)((_(pre|p|beta|alpha|rc)[[:digit:]]*)*)(-r([[:digit:]]+))?$')" + X11_MAJOR_VER="${X11_VER%%.*}" + # Hack around a little to get the minor version + X11_MINOR_VER="${X11_VER#*.}" + X11_MINOR_VER="${X11_MINOR_VER%%.*}" + X11_REVISION_VER="${X11_VER##*-r}" + + # If version <6.*, die + if [ ${X11_MAJOR_VER} -lt 6 ] + then + einfo "Detected X ${X11_MAJOR_VER}.${X11_MINOR_VER} series, revision ${X11_REVISION_VER}" + eerror "${ERROR_MSG}" + exit 1 + # If version =6.* and <6.8.*, die + elif [ ${X11_MAJOR_VER} -eq 6 -a ${X11_MINOR_VER} -lt 8 ] + then + einfo "Detected X ${X11_MAJOR_VER}.${X11_MINOR_VER} series, revision ${X11_REVISION_VER}" + eerror "${ERROR_MSG}" + exit 1 + # If version =6.8.0 and <r4, die + elif [ "${X11_VER}" = "6.8.0" ] + then + if [ ! ${X11_REVISION_VER} -lt 4 ] + then + einfo "Detected X ${X11_MAJOR_VER}.${X11_MINOR_VER} series, revision ${X11_REVISION_VER}" + eerror "${ERROR_MSG}" + exit 1 + fi + fi +} + +count_implementations() { + local DIR + COUNT="0" + for DIR in $(ls /usr/lib/opengl) + do + if [ "${DIR}" != "global" ] + then + DIRS="${DIRS} ${DIR}" + COUNT="$((COUNT + 1))" + fi + done +} + +usage() { +# In addition to the below function, there are two extra uses for this. +# +# They aren't in the printed help message because they're intended +# for developer use. +# 1) --use-old $NEW_IMPLEM will switch to the new implementation only if +# no old setup existed (i.e., X has never been installed) +# 2) --get-implementation will return the implementation + +count_implementations + +# Get grammar right in message +local IS_ARE IMPLEM_PLURAL +if [ ${COUNT} -eq 1 ] +then + IS_ARE="is" + IMPLEM_PLURAL="" +else + IS_ARE="are" + IMPLEM_PLURAL="s" +fi + +cat << FOO +usage: ${0##*/} <GL implementation> + +note: + This utility switches between OpenGL implementations. There ${IS_ARE} + ${COUNT} available implementation${IMPLEM_PLURAL}: ${DIRS}. + +examples: + ${0##*/} xorg-x11 + This will setup things to use libGL.so from X.org. + + ${0##*/} nvidia + This will setup things to use libGL.so from the nVidia drivers. + +FOO + exit 1 +} + +need_version + +if [ "$#" -ne 1 -a "$#" -ne 2 ] || \ + [ "$#" -eq 2 -a "$1" != "--use-old" ] +then + usage +fi + +GL_IMPLEM="" + +# Discover GL implementation if it exists +get_implem() { + if [ -f /etc/env.d/03opengl ] + then + source /etc/env.d/03opengl + if [ -n "${LDPATH}" ] + then + GL_IMPLEM="${LDPATH%%:*}" + GL_IMPLEM="${GL_IMPLEM##*opengl/}" + GL_IMPLEM="${GL_IMPLEM%/lib*}" + unset LDPATH + fi + fi +} + +# Return current GL implementation +if [ "$1" = "--get-implementation" ] +then + get_implem + + if [ -n "${GL_IMPLEM}" ] + then + echo "${GL_IMPLEM}" + fi + + if [ -z "${GL_IMPLEM}" ] + then + exit 2 + fi + + exit 0 +fi + +if [ $(id -u) -ne 0 ] +then + eerror "${0}: must be root." + exit 1 +fi + +# Only use specified implementation if it is not already selected. +if [ "$1" = "--use-old" ] +then + shift + + get_implem + + if [ -z "${GL_IMPLEM}" ] + then + GL_IMPLEM="$1" + fi +else + GL_IMPLEM="$1" +fi + +if [ ! -d /usr/lib/opengl/${GL_IMPLEM} ] +then + usage +fi + +ebegin "Switching to ${GL_IMPLEM} OpenGL interface" + rm -f /etc/env.d/03opengl &> /dev/null + + LIBDIRS="lib lib32 lib64" + for LIBDIR in ${LIBDIRS}; do + [ -d "/usr/${LIBDIR}" -a ! -h "/usr/${LIBDIR}" ] || continue + # System wide tls stuff + [ -h "/usr/${LIBDIR}/tls" ] && rm -f /usr/${LIBDIR}/tls + [ -d "/usr/${LIBDIR}/tls" ] || mkdir -p /usr/${LIBDIR}/tls + + # Fallback on xorg-x11 if we don't have this implementation for this LIBDIR. + if [ ! -d /usr/${LIBDIR}/opengl/"${GL_IMPLEM}" ]; then + GL_LOCAL="xorg-x11" + else + GL_LOCAL="${GL_IMPLEM}" + fi + + # Provide the right libnvidia-tls depending on ntpl or not + if [ "${GL_LOCAL}" = "nvidia" ]; then + if [ -e "/usr/${LIBDIR}/opengl/${GL_LOCAL}/lib/tls" ]; then + rm -f /usr/${LIBDIR}/opengl/${GL_LOCAL}/lib/tls + fi + + if getconf GNU_LIBPTHREAD_VERSION | grep -i nptl; then + ln -sf /usr/${LIBDIR}/opengl/${GL_LOCAL}/tls /usr/${LIBDIR}/opengl/${GL_IMPLEM}/lib/tls + # This shouldn't be neccessary... + #ldpath="${ldpath:+${ldpath}:}/usr/${LIBDIR}/opengl/${GL_LOCAL}/lib/tls" + fi + fi + + pushd /usr/${LIBDIR} + # First remove old symlinks + for file in libGL.so* libGLcore.so* libnvidia-tls.so* tls/libnvidia-tls.so*; do + rm -f ${file} + done + + # Note that we don't do .so*, just .so on purpose. The + # loader knows to look in the profile dir, and the + # linked just needs the .so + for file in opengl/${GL_LOCAL}/lib/*.{so,a,la}; do + [ -f "${file}" ] || continue + rm -f $(basename ${file}) + + # Fix libtool archives (#48297) + if [ "${file%.la}" != "${file}" ]; then + sed "s:/usr/[^/]*/opengl/[^/]*/lib/:/usr/${LIBDIR}/:g" ${file} > $(basename ${file}) + else + ln -s ${file} + fi + done + + ln -s opengl/${GL_LOCAL}/lib/libGL.so libMesaGL.so + popd + + if [ -e "/usr/${LIBDIR}/opengl/${GL_LOCAL}/lib/tls" ]; then + pushd /usr/${LIBDIR}/tls + for file in ../opengl/${GL_LOCAL}/lib/tls/*.{so,a,la}; do + [ -f "${file}" ] || continue + rm -f $(basename ${file}) + + # Fix libtool archives (#48297) + if [ "${file%.la}" != "${file}" ]; then + sed "s:/usr/[^/]*/opengl/[^/]*/lib/:/usr/${LIBDIR}/:g" ${file} > $(basename ${file}) + else + ln -s ${file} + fi + done + popd + fi + + if [ -e "/usr/${LIBDIR}/opengl/${GL_LOCAL}/modules/extensions" ]; then + mkdir -p /usr/${LIBDIR}/modules/extensions + pushd /usr/${LIBDIR}/modules/extensions + for file in ../../opengl/${GL_LOCAL}/lib/extensions/*.{so,a,la}; do + [ -f "${file}" ] || continue + rm -f $(basename ${file}) + + # Fix libtool archives (#48297) + if [ "${file%.la}" != "${file}" ]; then + sed "s:/usr/[^/]*/opengl/[^/]*/lib/:/usr/${LIBDIR}/:g" ${file} > $(basename ${file}) + else + ln -s ${file} + fi + done + popd + fi + + # Setup the includes + if [ -e "/usr/${LIBDIR}/opengl/${GL_LOCAL}/modules/includes" ]; then + for x in gl.h glx.h glxtokens.h glext.h; do + if [ -e /usr/X11R6/include/GL/${x} ]; then + rm -f /usr/X11R6/include/GL/${x} + fi + + # IMPORTANT + # It is preferable currently to use the standard glext.h file + # however if an OpenGL provider must use a self produced glext.h + # then it should be installed to ${GL_IMPLEM}/include + + if [ -e /usr/${LIBDIR}/opengl/${GL_IMPLEM}/include/${x} ]; then + ln -sf /usr/${LIBDIR}/opengl/${GL_IMPLEM}/include/${x} \ + /usr/X11R6/include/GL/${x} + else + ln -sf /usr/${LIBDIR}/opengl/global/include/${x} \ + /usr/X11R6/include/GL/${x} + fi + done + fi + + # Setup the $LDPATH + ldpath="${ldpath:+${ldpath}:}/usr/${LIBDIR}/opengl/${GL_LOCAL}/lib" + + done &> /dev/null + + echo "LDPATH=\"${ldpath}\"" > /etc/env.d/03opengl + + env-update + +eend 0 + +# vim:ts=4 diff --git a/x11-base/opengl-update/opengl-update-2.1_pre1.ebuild b/x11-base/opengl-update/opengl-update-2.1_pre1.ebuild new file mode 100644 index 000000000000..103d2e98c29e --- /dev/null +++ b/x11-base/opengl-update/opengl-update-2.1_pre1.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-base/opengl-update/opengl-update-2.1_pre1.ebuild,v 1.1 2005/01/25 01:13:34 eradicator Exp $ + +inherit multilib toolchain-funcs + +DESCRIPTION="Utility to change the OpenGL interface being used" +HOMEPAGE="http://www.gentoo.org/" +GLEXT="20040830" +SRC_URI="http://dev.gentoo.org/~cyfred/distfiles/glext.h-${GLEXT}.bz2" + +LICENSE="GPL-2" +SLOT="0" +#KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" +KEYWORDS="~alpha ~amd64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" +#Removed: ~arm ~hppa ~ia64 due to insufficient xorg-x11 version +IUSE="" +RESTRICT="multilib-pkg-force" + +DEPEND="virtual/libc + app-arch/bzip2" + +RDEPEND="!x11-base/xfree86 + !<x11-base/xorg-x11-6.8.0-r4 + !<media-video/ati-drivers-8.8.25-r3" + +src_unpack() { + bzcat ${DISTDIR}/glext.h-${GLEXT}.bz2 > ${WORKDIR}/glext.h || die +} + +pkg_preinst() { + # It needs to be before 04multilib + [ -f "${ROOT}/etc/env.d/09opengl" ] && mv ${ROOT}/etc/env.d/09opengl ${ROOT}/etc/env.d/03opengl + + OABI="${ABI}" + for ABI in $(get_abi_order); do + if [ -e "${ROOT}/usr/$(get_libdir)/opengl/xorg-x11/lib/libMesaGL.so" ]; then + einfo "Removing libMesaGL from xorg-x11 profile and making stub lib in" + einfo "${ROOT}/usr/$(get_libdir) to force using xorg-x11's libGL when libMesaGL is requested" + einfo "This will be taken care of by future releases of xorg-x11. See" + einfo "bug #47598 for more information." + echo "" + rm -f ${ROOT}/usr/$(get_libdir)/opengl/xorg-x11/lib/libMesaGL.so + rm -f ${ROOT}/usr/$(get_libdir)/libMesaGL.so* + $(tc-getCC) -shared -Wl,--soname,libMesaGL.so,-L,${ROOT}/usr/$(get_libdir)/opengl/xorg-x11/lib,-R,${ROOT}/usr/$(get_libdir)/opengl/xorg-x11/lib -lGL -o ${ROOT}/usr/$(get_libdir)/libMesaGL.so + fi + done + ABI="${OABI}" + unset OABI +} + +src_install() { + newsbin ${FILESDIR}/opengl-update-${PV} opengl-update || die + + # MULTILIB-CLEANUP: Fix this when FEATURES=multilib-pkg is in portage + local MLTEST=$(type dyn_unpack) + if has_multilib_profile && [ "${MLTEST/set_abi}" = "${MLTEST}" ]; then + OABI="${ABI}" + for ABI in $(get_abi_order); do + # Install default glext.h + insinto /usr/$(get_libdir)/opengl/global/include + doins ${WORKDIR}/glext.h || die + done + ABI="${OABI}" + unset OABI + else + # Install default glext.h + insinto /usr/$(get_libdir)/opengl/global/include + doins ${WORKDIR}/glext.h || die + fi +} |