Gentoo Archives: gentoo-commits

From: "Jeroen Roovers (jer)" <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-drivers/nvidia-drivers: ChangeLog nvidia-drivers-71.86.11.ebuild
Date: Sun, 23 Aug 2009 23:29:56
Message-Id: E1MfMVV-0001gA-P2@stork.gentoo.org
1 jer 09/08/23 23:29:53
2
3 Modified: ChangeLog
4 Added: nvidia-drivers-71.86.11.ebuild
5 Log:
6 Version bump (bug #280244).
7 (Portage version: 2.2_rc39/cvs/Linux i686)
8
9 Revision Changes Path
10 1.166 x11-drivers/nvidia-drivers/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/nvidia-drivers/ChangeLog?rev=1.166&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/nvidia-drivers/ChangeLog?rev=1.166&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/nvidia-drivers/ChangeLog?r1=1.165&r2=1.166
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/x11-drivers/nvidia-drivers/ChangeLog,v
19 retrieving revision 1.165
20 retrieving revision 1.166
21 diff -u -r1.165 -r1.166
22 --- ChangeLog 3 Aug 2009 03:58:20 -0000 1.165
23 +++ ChangeLog 23 Aug 2009 23:29:53 -0000 1.166
24 @@ -1,6 +1,12 @@
25 # ChangeLog for x11-drivers/nvidia-drivers
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/x11-drivers/nvidia-drivers/ChangeLog,v 1.165 2009/08/03 03:58:20 spock Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/x11-drivers/nvidia-drivers/ChangeLog,v 1.166 2009/08/23 23:29:53 jer Exp $
29 +
30 +*nvidia-drivers-71.86.11 (23 Aug 2009)
31 +
32 + 23 Aug 2009; Jeroen Roovers <jer@g.o>
33 + +nvidia-drivers-71.86.11.ebuild:
34 + Version bump (bug #280244).
35
36 03 Aug 2009; MichaƂ Januszewski <spock@g.o>
37 nvidia-drivers-185.18.29.ebuild, nvidia-drivers-185.18.31.ebuild:
38
39
40
41 1.1 x11-drivers/nvidia-drivers/nvidia-drivers-71.86.11.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-71.86.11.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-71.86.11.ebuild?rev=1.1&content-type=text/plain
45
46 Index: nvidia-drivers-71.86.11.ebuild
47 ===================================================================
48 # Copyright 1999-2009 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-71.86.11.ebuild,v 1.1 2009/08/23 23:29:53 jer Exp $
51
52 inherit eutils multilib versionator linux-mod flag-o-matic nvidia-driver
53
54 X86_NV="Linux-x86"
55 AMD64_NV="Linux-x86_64"
56 X86_FBSD_NV="FreeBSD-x86"
57 X86_NV_PACKAGE="NVIDIA-${X86_NV}-${PV}-pkg0"
58 AMD64_NV_PACKAGE="NVIDIA-${AMD64_NV}-${PV}-pkg2"
59 X86_FBSD_NV_PACKAGE="NVIDIA-${X86_FBSD_NV}-${PV}"
60
61 DESCRIPTION="NVIDIA X11 driver and GLX libraries"
62 HOMEPAGE="http://www.nvidia.com/"
63 SRC_URI="x86? ( ftp://download.nvidia.com/XFree86/${X86_NV}/${PV}/${X86_NV_PACKAGE}.run )
64 amd64? ( ftp://download.nvidia.com/XFree86/${AMD64_NV}/${PV}/${AMD64_NV_PACKAGE}.run )"
65
66 LICENSE="NVIDIA"
67 SLOT="0"
68 KEYWORDS="-* ~amd64 ~x86"
69 IUSE="acpi custom-cflags gtk multilib kernel_FreeBSD kernel_linux userland_BSD"
70 RESTRICT="strip"
71 EMULTILIB_PKG="true"
72
73 COMMON="<x11-base/xorg-server-1.6.99
74 multilib? ( app-emulation/emul-linux-x86-xlibs )
75 kernel_FreeBSD? ( !media-video/nvidia-freebsd )
76 !app-emulation/emul-linux-x86-nvidia
77 !x11-drivers/nvidia-legacy-drivers"
78 DEPEND="${COMMON}
79 kernel_linux? ( virtual/linux-sources )
80 app-admin/eselect-opengl"
81 RDEPEND="${COMMON}
82 kernel_linux? ( virtual/modutils )
83 media-libs/mesa
84 acpi? ( sys-power/acpid )"
85 PDEPEND="gtk? ( media-video/nvidia-settings )"
86
87 QA_TEXTRELS_x86="usr/lib/xorg/libXvMCNVIDIA.so.${PV}
88 usr/lib/opengl/nvidia/lib/libGL.so.${PV}
89 usr/lib/opengl/nvidia/lib/libGLcore.so.${PV}
90 usr/lib/opengl/nvidia/lib/libnvidia-cfg.so.${PV}
91 usr/lib/opengl/nvidia/tls/libnvidia-tls.so.${PV}
92 usr/lib/opengl/nvidia/no-tls/libnvidia-tls.so.${PV}
93 usr/lib/libXvMCNVIDIA.so.${PV}
94 usr/lib/xorg/modules/drivers/nvidia_drv.so
95 usr/lib/opengl/nvidia/extensions/libglx.so"
96
97 QA_TEXTRELS_x86_fbsd="boot/modules/nvidia.ko
98 usr/lib/opengl/nvidia/lib/libGL.so.1
99 usr/lib/opengl/nvidia/lib/libGLcore.so.1
100 usr/lib/opengl/nvidia/lib/libnvidia-cfg.so.${PV}
101 usr/lib/opengl/nvidia/no-tls/libnvidia-tls.so.1
102 usr/lib/opengl/nvidia/extensions/libglx.so
103 usr/lib/xorg/modules/drivers/nvidia_drv.so"
104
105 QA_WX_LOAD_x86="usr/lib/opengl/nvidia/lib/libGL.so.${PV}
106 usr/lib/opengl/nvidia/lib/libGLcore.so.${PV}
107 usr/lib/opengl/nvidia/extensions/libglx.so"
108
109 QA_TEXTRELS_amd64="usr/lib64/xorg/libXvMCNVIDIA.so.${PV}
110 usr/lib64/opengl/nvidia/lib/libGL.so.${PV}
111 usr/lib64/opengl/nvidia/lib/libGLcore.so.${PV}
112 usr/lib64/opengl/nvidia/lib/libnvidia-cfg.so.${PV}
113 usr/lib64/opengl/nvidia/tls/libnvidia-tls.so.${PV}
114 usr/lib64/opengl/nvidia/no-tls/libnvidia-tls.so.${PV}
115 usr/lib64/libXvMCNVIDIA.so.${PV}
116 usr/lib64/xorg/modules/drivers/nvidia_drv.so
117 usr/lib64/opengl/nvidia/extensions/libglx.so
118 usr/lib32/xorg/libXvMCNVIDIA.so.${PV}
119 usr/lib32/opengl/nvidia/lib/libGL.so.${PV}
120 usr/lib32/opengl/nvidia/lib/libGLcore.so.${PV}
121 usr/lib32/opengl/nvidia/lib/libnvidia-cfg.so.${PV}
122 usr/lib32/opengl/nvidia/tls/libnvidia-tls.so.${PV}
123 usr/lib32/opengl/nvidia/no-tls/libnvidia-tls.so.${PV}
124 usr/lib32/libXvMCNVIDIA.so.${PV}
125 usr/lib32/xorg/modules/drivers/nvidia_drv.so
126 usr/lib32/opengl/nvidia/extensions/libglx.so"
127
128 QA_WX_LOAD_amd64="usr/lib64/opengl/nvidia/lib/libGL.so.${PV}
129 usr/lib64/opengl/nvidia/lib/libGLcore.so.${PV}
130 usr/lib64/opengl/nvidia/extensions/libglx.so
131 usr/lib32/opengl/nvidia/lib/libGL.so.${PV}
132 usr/lib32/opengl/nvidia/lib/libGLcore.so.${PV}
133 usr/lib32/opengl/nvidia/extensions/libglx.so"
134
135 QA_EXECSTACK_amd64="usr/lib64/xorg/modules/drivers/nvidia_drv.so
136 usr/lib64/opengl/nvidia/lib/libGL.so.${PV}
137 usr/lib64/opengl/nvidia/lib/libnvidia-cfg.so.${PV}
138 usr/lib64/opengl/nvidia/extensions/libglx.so
139 usr/lib64/libXvMCNVIDIA.so.${PV}
140 usr/bin/nvidia-xconfig"
141
142 QA_EXECSTACK_x86="usr/lib/xorg/modules/drivers/nvidia_drv.so
143 usr/lib/opengl/nvidia/lib/libGL.so.${PV}
144 usr/lib/opengl/nvidia/lib/libnvidia-cfg.so.${PV}
145 usr/lib/opengl/nvidia/extensions/libglx.so
146 usr/lib/libXvMCNVIDIA.so.${PV}
147 usr/bin/nvidia-xconfig"
148
149 mtrr_check() {
150 ebegin "Checking for MTRR support"
151 linux_chkconfig_present MTRR
152 eend $?
153
154 if [[ $? -ne 0 ]] ; then
155 eerror "This version needs MTRR support for most chipsets!"
156 eerror "Please enable MTRR support in your kernel config, found at:"
157 eerror
158 eerror " Processor type and features"
159 eerror " [*] MTRR (Memory Type Range Register) support"
160 eerror
161 eerror "and recompile your kernel ..."
162 die "MTRR support not detected!"
163 fi
164 }
165
166 pkg_setup() {
167 # try to turn off distcc and ccache for people that have a problem with it
168 export DISTCC_DISABLE=1
169 export CCACHE_DISABLE=1
170
171 # use the right package
172 if use x86; then
173 NV_PACKAGE="${X86_NV_PACKAGE}"
174 elif use amd64; then
175 NV_PACKAGE="${AMD64_NV_PACKAGE}"
176 elif use x86-fbsd; then
177 NV_PACKAGE="${X86_FBSD_NV_PACKAGE}"
178 else
179 die "Could not determine proper NVIDIA package"
180 fi
181
182 # set variables to where files are in the package structure
183 if use kernel_FreeBSD; then
184 NV_DOC="${WORKDIR}/${NV_PACKAGE}/doc"
185 NV_EXEC="${WORKDIR}/${NV_PACKAGE}/obj"
186 NV_SRC="${WORKDIR}/${NV_PACKAGE}/src"
187 elif use kernel_linux; then
188 NV_DOC="${WORKDIR}/${NV_PACKAGE}/usr/share/doc"
189 NV_EXEC="${WORKDIR}/${NV_PACKAGE}/usr/bin"
190 NV_SRC="${WORKDIR}/${NV_PACKAGE}/usr/src/nv"
191 fi
192
193 if use amd64 && has_multilib_profile && [ "${DEFAULT_ABI}" != "amd64" ]; then
194 eerror "This ebuild doesn't currently support changing your default abi."
195 die "Unexpected \${DEFAULT_ABI} = ${DEFAULT_ABI}"
196 fi
197
198 if use kernel_linux; then
199 linux-mod_pkg_setup
200 MODULE_NAMES="nvidia(video:${NV_SRC})"
201 BUILD_PARAMS="IGNORE_CC_MISMATCH=yes V=1 SYSSRC=${KV_DIR} \
202 SYSOUT=${KV_OUT_DIR} HOST_CC=$(tc-getBUILD_CC)"
203 mtrr_check
204 fi
205
206 # On BSD userland it wants real make command
207 use userland_BSD && MAKE="$(get_bmake)"
208
209 # Unknown why this needs to be set
210 export _POSIX2_VERSION="199209"
211
212 # Since Nvidia ships 3 different series of drivers, we need to give the user
213 # some kind of guidance as to what version they should install. This tries
214 # to point the user in the right direction but can't be perfect. check
215 # nvidia-driver.eclass
216 nvidia-driver-check-warning
217 }
218
219 src_unpack() {
220 if use kernel_linux && kernel_is lt 2 6 7; then
221 echo
222 ewarn "Your kernel version is ${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}"
223 ewarn "This is not officially supported for ${P}. It is likely you"
224 ewarn "will not be able to compile or use the kernel module."
225 ewarn "It is recommended that you upgrade your kernel to a version >= 2.6.7"
226 echo
227 ewarn "DO NOT file bug reports for kernel versions less than 2.6.7 as they will be ignored."
228 fi
229
230 if ! use x86-fbsd; then
231 mkdir "${WORKDIR}/${NV_PACKAGE}"
232 cd "${WORKDIR}/${NV_PACKAGE}"
233 unpack_makeself
234 else
235 unpack ${A}
236 fi
237
238 # Patches go below here, add brief description
239 use x86-fbsd \
240 && cd "${NV_DOC}" \
241 || cd "${WORKDIR}/${NV_PACKAGE}"
242 # Use the correct defines to make gtkglext build work
243 epatch "${FILESDIR}"/NVIDIA_glx-defines.patch
244 # Use some more sensible gl headers and make way for new glext.h
245 epatch "${FILESDIR}"/NVIDIA_glx-glheader.patch
246
247 if use kernel_linux; then
248 # Quiet down warnings the user does not need to see
249 sed -i \
250 -e 's:-Wpointer-arith::g' \
251 -e 's:-Wsign-compare::g' \
252 "${WORKDIR}/${NV_PACKAGE}"/Makefile.kbuild
253
254 # If you set this then it's your own fault when stuff breaks :)
255 [[ -n ${USE_CRAZY_OPTS} ]] && sed -i "s:-O:${CFLAGS}:" "${NV_SRC}"/Makefile.*
256
257 # If greater than 2.6.5 use M= instead of SUBDIR=
258 convert_to_m "${NV_SRC}"/Makefile.kbuild
259 fi
260 }
261
262 src_compile() {
263 # This is already the default on Linux, as there's no toplevel Makefile, but
264 # on FreeBSD there's one and triggers the kernel module build, as we install
265 # it by itself, pass this.
266
267 cd "${NV_SRC}"
268 if use x86-fbsd; then
269 emake CC="$(tc-getCC)" LD="$(tc-getLD)" LDFLAGS="$(raw-ldflags)" \
270 CFLAGS="-Wno-sign-compare" || die "Failed to compile"
271 else
272 linux-mod_src_compile
273 fi
274 }
275
276 src_install() {
277 cd "${WORKDIR}"/${NV_PACKAGE}
278
279 if ! use x86-fbsd; then
280 linux-mod_src_install
281
282 VIDEOGROUP="$(egetent group video | cut -d ':' -f 3)"
283 if [ -z "$VIDEOGROUP" ]; then
284 eerror "Failed to determine the video group gid."
285 die "Failed to determine the video group gid."
286 fi
287
288 # Add the aliases
289 [ -f "${FILESDIR}/nvidia" ] || die "nvidia missing in FILESDIR"
290 sed -e 's:PACKAGE:'${PF}':g' \
291 -e 's:VIDEOGID:'${VIDEOGROUP}':' "${FILESDIR}"/nvidia > \
292 "${WORKDIR}"/nvidia
293 insinto /etc/modprobe.d
294 newins "${WORKDIR}"/nvidia nvidia.conf || die
295 else
296 insinto /boot/modules
297 doins "${WORKDIR}/${NV_PACKAGE}/src/nvidia.kld" || die
298
299 exeinto /boot/modules
300 doexe "${WORKDIR}/${NV_PACKAGE}/src/nvidia.ko" || die
301 fi
302
303 if has_multilib_profile ; then
304 local OABI=${ABI}
305 for ABI in $(get_install_abis) ; do
306 src_install-libs
307 done
308 ABI=${OABI}
309 unset OABI
310 elif use amd64 ; then
311 src_install-libs lib32 $(get_multilibdir)
312 src_install-libs lib $(get_libdir)
313
314 rm -rf "${D}"/usr/$(get_multilibdir)/opengl/nvidia/include
315 rm -rf "${D}"/usr/$(get_multilibdir)/opengl/nvidia/extensions
316 else
317 src_install-libs
318 fi
319
320 is_final_abi || return 0
321
322 # Documentation
323 dodoc "${NV_DOC}"/{XF86Config.sample,README}
324 dohtml "${NV_DOC}"/html/*
325 if ! use x86-fbsd; then
326 dodoc "${NV_DOC}"/NVIDIA_Changelog
327 fi
328
329 # Helper Apps
330 dobin "${NV_EXEC}"/nvidia-bug-report.sh || die
331 }
332
333 # Install nvidia library:
334 # the first parameter is the place where to install it
335 # the second parameter is the base name of the library
336 # the third parameter is the provided soversion
337 donvidia() {
338 dodir $1
339 exeinto $1
340
341 libname=$(basename $2)
342
343 doexe $2.$3
344 dosym ${libname}.$3 $1/${libname}
345
346 [[ $3 != "1" ]] && dosym ${libname}.$3 $1/${libname}.1
347 }
348
349 src_install-libs() {
350 local pkglibdir=lib
351 local inslibdir=$(get_libdir)
352
353 if [[ ${#} -eq 2 ]] ; then
354 pkglibdir=${1}
355 inslibdir=${2}
356 elif has_multilib_profile && [[ ${ABI} == "x86" ]] ; then
357 pkglibdir=lib32
358 fi
359
360 local usrpkglibdir=usr/${pkglibdir}
361 local libdir=usr/X11R6/${pkglibdir}
362 local drvdir=${libdir}/modules/drivers
363 local extdir=${libdir}/modules/extensions
364 local incdir=usr/include/GL
365 local sover=${PV}
366 local NV_ROOT="/usr/${inslibdir}/opengl/nvidia"
367 local NO_TLS_ROOT="${NV_ROOT}/no-tls"
368 local TLS_ROOT="${NV_ROOT}/tls"
369 local X11_LIB_DIR="/usr/${inslibdir}/xorg"
370
371 if ! has_version x11-base/xorg-server ; then
372 X11_LIB_DIR="/usr/${inslibdir}"
373 fi
374
375 if use x86-fbsd; then
376 # on FreeBSD everything is on obj/
377 pkglibdir=obj
378 usrpkglibdir=obj
379 x11pkglibdir=obj
380 drvdir=obj
381 extdir=obj
382
383 # don't ask me why the headers are there.. glxext.h is missing
384 incdir=doc
385
386 # on FreeBSD it has just .1 suffix
387 sover=1
388 fi
389
390 # The GLX libraries
391 donvidia ${NV_ROOT}/lib ${usrpkglibdir}/libGL.so ${sover}
392 donvidia ${NV_ROOT}/lib ${usrpkglibdir}/libGLcore.so ${sover}
393
394 dodir ${NO_TLS_ROOT}
395 donvidia ${NO_TLS_ROOT} ${usrpkglibdir}/libnvidia-tls.so ${sover}
396
397 if ! use x86-fbsd; then
398 donvidia ${TLS_ROOT} ${usrpkglibdir}/tls/libnvidia-tls.so ${sover}
399 fi
400
401 if want_tls ; then
402 dosym ../tls/libnvidia-tls.so ${NV_ROOT}/lib
403 dosym ../tls/libnvidia-tls.so.1 ${NV_ROOT}/lib
404 dosym ../tls/libnvidia-tls.so.${sover} ${NV_ROOT}/lib
405 else
406 dosym ../no-tls/libnvidia-tls.so ${NV_ROOT}/lib
407 dosym ../no-tls/libnvidia-tls.so.1 ${NV_ROOT}/lib
408 dosym ../no-tls/libnvidia-tls.so.${sover} ${NV_ROOT}/lib
409 fi
410
411 if ! use x86-fbsd; then
412 # Install the .la file for libtool, to prevent e.g. bug #176423
413 [ -f "${FILESDIR}/libGL.la-r2" ] || die "libGL.la-r2 missing in FILESDIR"
414 local ver1=$(get_version_component_range 1)
415 local ver2=$(get_version_component_range 2)
416 local ver3=$(get_version_component_range 3)
417 sed -e "s:\${PV}:${PV}:" \
418 -e "s:\${ver1}:${ver1}:" \
419 -e "s:\${ver2}:${ver2}:" \
420 -e "s:\${ver3}:${ver3}:" \
421 -e "s:\${libdir}:${inslibdir}:" \
422 "${FILESDIR}"/libGL.la-r2 > "${D}"/${NV_ROOT}/lib/libGL.la
423 fi
424
425 exeinto ${X11_LIB_DIR}/modules/drivers
426
427 [[ -f ${drvdir}/nvidia_drv.so ]] && \
428 doexe ${drvdir}/nvidia_drv.so
429
430 insinto /usr/${inslibdir}
431 [[ -f ${libdir}/libXvMCNVIDIA.a ]] && \
432 doins ${libdir}/libXvMCNVIDIA.a
433 exeinto /usr/${inslibdir}
434 # fix Bug 131315
435 [[ -f ${libdir}/libXvMCNVIDIA.so.${PV} ]] && \
436 doexe ${libdir}/libXvMCNVIDIA.so.${PV} && \
437 dosym libXvMCNVIDIA.so.${PV} \
438 /usr/${inslibdir}/libXvMCNVIDIA.so
439
440 exeinto ${NV_ROOT}/extensions
441 [[ -f ${libdir}/modules/libnvidia-wfb.so.${sover} ]] && \
442 newexe ${libdir}/modules/libnvidia-wfb.so.${sover} libwfb.so
443 [[ -f ${extdir}/libglx.so.${sover} ]] && \
444 newexe ${extdir}/libglx.so.${sover} libglx.so
445
446 # Includes
447 insinto ${NV_ROOT}/include
448 doins ${incdir}/*.h
449 }
450
451 pkg_preinst() {
452 # Clean the dynamic libGL stuff's home to ensure
453 # we dont have stale libs floating around
454 if [[ -d ${ROOT}/usr/lib/opengl/nvidia ]] ; then
455 rm -rf "${ROOT}"/usr/lib/opengl/nvidia/*
456 fi
457 # Make sure we nuke the old nvidia-glx's env.d file
458 if [[ -e ${ROOT}/etc/env.d/09nvidia ]] ; then
459 rm -f "${ROOT}"/etc/env.d/09nvidia
460 fi
461 }
462
463 pkg_postinst() {
464 if use kernel_linux; then
465 linux-mod_pkg_postinst
466 fi
467
468 # Switch to the nvidia implementation
469 eselect opengl set --use-old nvidia
470
471 echo
472 elog "To use the Nvidia GLX, run \"eselect opengl set nvidia\""
473 elog
474 elog "nVidia has requested that any bug reports submitted have the"
475 elog "output of /usr/bin/nvidia-bug-report.sh included."
476 elog
477 elog "To work with compiz, you must enable the AddARGBGLXVisuals option."
478 elog
479 elog "If you are having resolution problems, try disabling DynamicTwinView."
480 echo
481 }
482
483 want_tls() {
484 # For uclibc or anything non glibc, return false
485 has_version sys-libs/glibc || return 1
486
487 # Old versions of glibc were lt/no-tls only
488 has_version '<sys-libs/glibc-2.3.2' && return 1
489
490 if use x86 ; then
491 case ${CHOST/-*} in
492 i486|i586|i686) ;;
493 *) return 1 ;;
494 esac
495 fi
496
497 # If we've got nptl, we've got tls
498 built_with_use --missing true sys-libs/glibc nptl && return 0
499
500 # 2.3.5 turned off tls for linuxthreads glibc on i486 and i586
501 if use x86 && has_version '>=sys-libs/glibc-2.3.5' ; then
502 case ${CHOST/-*} in
503 i486|i586) return 1 ;;
504 esac
505 fi
506
507 # These versions built linuxthreads version to support tls, too
508 has_version '>=sys-libs/glibc-2.3.4.20040619-r2' && return 0
509
510 return 1
511 }
512
513 pkg_postrm() {
514 if use kernel_linux; then
515 linux-mod_pkg_postrm
516 fi
517 eselect opengl set --use-old xorg-x11
518 }