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