Gentoo Archives: gentoo-commits

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