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