--- nvidia-graphics-drivers-180-180.37.orig/debian/nvidia_supported +++ nvidia-graphics-drivers-180-180.37/debian/nvidia_supported @@ -0,0 +1,81 @@ +#!/bin/sh + +set -e + +# This is a nasty kluge, but it seems to work. Better check the output when +# upgrading to a new release of the nvidia driver, though. + +# Whenever a PCI ID is supported by both nvidia and nvidia_legacy, it is only +# listed for nvidia, as long as nvidia_legacy is *after* nvidia in the +# parameter list. + +[ -n "$1" ] || { + echo "USAGE: $0 path/to/nv/nv-kernel.o nvidia \\" >&2 + echo " path/to/nv-legacy/nv-kernel.o nvidia_legacy [...]" >&2 + exit 1 +} + +echo "# Listing generated by nvidia_supported. Do not edit manually." + +device_ids() { + local filename="$1" + + local list_prev="$(mktemp)" + local list_cur="$(mktemp)" + + # Find the symbols of the .rodata section... + objdump --section=.rodata --syms "$filename" | + sed -nr '/SYMBOL TABLE/,/^$/ { + s/^([0-9a-f]+)\s+l\s+O\s+\S+\s+([0-9a-f]+)\s+\S+.*/\1 \2/p + }' | + while read start length; do + objdump --section=.rodata --full-contents \ + --start-address="0x$start" \ + --stop-address="$((0x$start+0x$length))" "$filename" | + sed -nr 's/^ [0-9a-f]+ ([0-9a-f]{2})([0-9a-f]{2})0000.*/\2\1/p' | + sort | uniq | grep -vx "0000" >"$list_cur" + + # The consistent thing between different releases has been that there are + # two subsequent symbols with the same PCI ID list near the beginning. Find + # them. + if [ -s "$list_prev" -a -s "$list_cur" ] && + cmp -s "$list_prev" "$list_cur"; then + cat "$list_cur" + break + fi + + cp "$list_cur" "$list_prev" + done + + rm -f "$list_prev" "$list_cur" +} + +seen_ids=' ' + +while [ -n "$1" ]; do + filename="$1"; shift + modname="$1"; shift + pkgname="$1"; shift + + orig_ids="$(device_ids "$filename")" + if [ -z "$orig_ids" ]; then + echo "WARNING: No IDs were found from $filename" >&2 + fi + + for id in $orig_ids; do + case "$seen_ids" in + *" $id "*) + # Already seen the ID. + ;; + *) + # Not seen it yet. + seen_ids="${seen_ids}${id} " + + printf "alias pci:v%08Xd%08Xsv*sd*bc03sc*i* %s %s\n" \ + 0x10de "0x$id" "$modname" "$pkgname" + ;; + esac + done +done | sort + +# vim:set et sw=2 sts=2: --- nvidia-graphics-drivers-180-180.37.orig/debian/nvidia-180-kernel-source.dirs +++ nvidia-graphics-drivers-180-180.37/debian/nvidia-180-kernel-source.dirs @@ -0,0 +1 @@ +usr/src --- nvidia-graphics-drivers-180-180.37.orig/debian/nvidia-180-kernel-source.docs +++ nvidia-graphics-drivers-180-180.37/debian/nvidia-180-kernel-source.docs @@ -0,0 +1,2 @@ +NVIDIA-Linux-x86-180.18-pkg0/usr/share/doc/NVIDIA_Changelog +NVIDIA-Linux-x86-180.18-pkg0/usr/share/doc/README.txt --- nvidia-graphics-drivers-180-180.37.orig/debian/changelog +++ nvidia-graphics-drivers-180-180.37/debian/changelog @@ -0,0 +1,279 @@ +nvidia-graphics-drivers-180 (180.37-0ubuntu1) jaunty; urgency=low + + * New upstream release (LP: #335879). + - Fixed a problem that caused signals to be blocked in some applications. + - Fixed a problem that could cause Xid errors and display corruption in + certain cases when OpenGL is used to render to redirected windows, for + example when Java2D is used with the -Dsun.java2d.opengl=true option. + - glGetStringi(GL_EXTENSIONS, i) no longer returns NULL in OpenGL 3.0 + preview contexts. + - Fixed a problem that caused the screen to flicker momentarily when + OpenGL applications exit unexpectedly on GeForce 6 and 7 series GPUs. + - Fixed an X server crash when an X client attempts to draw trapezoids + and RenderAccel is disabled. + - Improved recovery from certain types of errors. + - VDPAU updates: + o Fixed corruption on some H.264 clips. + o Update documentation. + o Fixed VC-1 decoding on 64-bit platforms. + o Improved handling of invalid H.264 streams. + o Fixed a problem that caused surfaces to be marked as visible too + early when the blit presentation queue is in use. + * nvidia-glx-VER.preinst: + - Remove diversion on /usr/lib32/libGL.so.1.2 to + /usr/lib32/nvidia/libGL.so.1.2.xlibmesa instead of + /usr/lib32/nvidia/libGL.so.1.2.xserver-xorg-core (LP: #333550). + * debian.binary/patches/nvidia-rt-compat.patch: + - Restore compatibility with -rt kernels. Thanks to Alessio Igor Bogani + for the patch. + * debian/dkms.conf.in: + - Make sure that the patch for -rt kernels is applied only to 2.6.28.x + kernels. + + -- Alberto Milone Fri, 13 Mar 2009 09:27:20 +0100 + +nvidia-graphics-drivers-180 (180.35-0ubuntu1) jaunty; urgency=low + + * New upstream release (LP: #334205). + * Added support for the following GPUs: + o GeForce GT 120 + o GeForce G100 + o Quadro FX 3700M + * Fixed a bug that caused Maya to freeze when overlays are enabled. + * Fixed an interaction problem with some applications that use memory tracking + libraries. + * Added support for RG renderbuffers in OpenGL 3.0. + * Added support for OpenGL 3.0 floating-point depth buffers. + * Fixed a problem that caused Valgrind to crash when tracing a program that + uses OpenGL. + * VDPAU updates: + o VDPAU now supports VC-1/WMV acceleration on all GPUs supported by VDPAU; + see the README for details. + o Expand the documentation of VDPAU's VdpVideoMixer, in particular regarding + how to use the deinterlacing algorithms. Explicitly document "half rate" + deinterlacing, which should allow the advanced algorithms to run on more + low-end systems. See vdpau.h. + o Implement a "skip chroma deinterlace" option in VDPAU, which should allow + the advanced deinterlacing algorithms to run on more low-end systems. See + vdpau.h. + o Enhance VDPAU to correctly handle some forms of corrupt/invalid MPEG + streams on some GPUs. + o Fix VDPAU to prevent some cases of "display preemption" in the face of + missing H.264 reference frames on some GPUs. + o Fix VDPAU to correctly handle VC-1 skipped pictures with missing start + codes on some GPUs. + o Fix VDPAU to correctly handle WMV "range reduction" on some GPUs. A minor + backwards-compatible API change was made for this; see vdpau.h's + documentation for structure field VdpPictureInfoVC1.rangered. + o Fix VDPAU wrapper library to print dlerror() messages when problems occur, + which will simplify debugging of driver loading issues. + + + -- Alberto Milone (tseliot) Wed, 25 Feb 2009 11:49:59 +0100 + +nvidia-graphics-drivers-180 (180.29-0ubuntu2) jaunty; urgency=low + + * debian/control.in: + - Revert change adding dependency to nvidia-glx-180 on nvidia-180-libvdpau. + This would cause any package that built against nvidia-180-libvpdau to + depend and build depend on nvidia-glx-180. + - Add replaces to nvidia-glx-177 instead. + + -- Mario Limonciello Wed, 11 Feb 2009 11:53:50 -0600 + +nvidia-graphics-drivers-180 (180.29-0ubuntu1) jaunty; urgency=low + + * New upstream release (LP: #327690). + * Fixed a problem in VDPAU that prevented the overlay-based presentation + queue from being used on displays connected by component video. + * Fixed various problems in VDPAU that caused visual corruption when + decoding certain MPEG-2 video streams. + * Fixed a crash in VDPAU caused by certain invalid MPEG-2 streams, in + 64-bit drivers for some GPUs. + * Fixed an X driver performance problem on integrated GPUs. + * Fixed a stability problem with OpenGL applications using FSAA. + * Fixed an initialization problem that caused some AGP GPUs to be used + in PCI compatibility mode. + * Fixed a bug that could result in stability problems after changing + clock settings via the Coolbits interface. + * debian/control.in: add dependency on nvidia-glx-180 to nvidia-180-libvdpau + since nvidia-180-libvdpau can't be installed if other nvidia-glx-* packages + contain vdpau (LP: #326720). + + -- Alberto Milone (tseliot) Wed, 11 Feb 2009 11:29:09 +0100 + +nvidia-graphics-drivers-180 (180.27-0ubuntu1) jaunty; urgency=low + + * New upstream release. Supports the new X.org ABI (LP: #308410, #322416) + * Added support for the following GPUs: + o GeForce GTX 295 + o GeForce GTX 285 + o GeForce 9300 GE + o Quadro NVS 420 + * Fixed a bug that caused VDPAU to display a green screen when using the + overlay-based presentation queue with interlaced modes. + * Fixed a bug that prevented VDPAU from working correctly after X server + restarts on some GPUs. + * Improved VDPAU's handling of mode switches; eliminated a crash in its + mode switch recovery code and a hang in the blit-based presentation queue. + * Fixed a bug that caused VDPAU to crash when using DisplayPort devices. + * Fixed a potential hang in VDPAU when using the blit-based presentation + queue on systems with multiple GPUs not in SLI mode. + * Implemented missing error checking of layer data in VDPAU's VdpVideoMixerRender + function. + * Improved VDPAU's handling of setups with multiple GPUs, if a subset of the + GPUs cannot be supported due to resource limitations. + * Improved GPU video memory management coordination between the NVIDIA X driver + and VDPAU. + * Fix potential hang in VDPAU when the overlay is already in use. + * Improved workstation OpenGL performance. + * Fixed an X driver acceleration bug that resulted in Xid errors on GeForce 6 and + 7 series GPUs. + * Updated the X driver to consider GPUs it does not recognize supported, allowing + it to drive some GPUs it previously ignored. + * Added the ability to run distribution provided pre- and post- installation hooks + to 'nvidia-installer'; please see the 'nvidia-installer' manual page for details. + * Updated the X driver's metamode parser to allow mode names with periods (i.e. '.'s). + * Fixed a problem with hotkey switching on some recent mobile GPUs. + * worked around a power management regression in and improved compatibility with + recent Linux 2.6 kernels. + * Added support for OpenGL 3.0 for GeForce 8 series and newer GPUs. + * debian/nvidia-glx-180.preinst: + - Correct typo in the removal of diversions of /usr/lib/xorg/modules/extensions/libglx.so + * debian/nvidia-glx-180.postrm.in + - Do not remove libGL.so (LP: #309116) + * debian/nvidia-glx-180-dev.preinst.in: + - Add diversion on /usr/lib/libGL.so since (the postrm tries to remove it already) + * debian/scriptremove.sh: + - Remove from source. + + -- Alberto Milone (tseliot) Thu, 29 Jan 2009 12:36:09 +0100 + +nvidia-graphics-drivers-180 (180.22-0ubuntu2) jaunty; urgency=low + + * debian/control.in: + - Replaces for both the VDPAU binary packages over the old + NV packaging. (LP: #315632) + + -- Mario Limonciello Fri, 09 Jan 2009 17:24:15 -0600 + +nvidia-graphics-drivers-180 (180.22-0ubuntu1) jaunty; urgency=low + + * New upstream version. First "stable" driver in 180 series. (LP: #315169) + * Added support for the following GPUs: + o Quadro FX 2700M + o GeForce 9400M G + o GeForce 9400M + o GeForce 9800 GT + o GeForce 8200M G + o GeForce Go 7700 + o GeForce 9800M GTX + o GeForce 9800M GT + o GeForce 9800M GS + o GeForce 9500 GT + o GeForce 9700M GT + o GeForce 9650M GT + o GeForce 9500 GT + * Added initial support for PureVideo-like features via the new VDPAU API (see the vdpau.h header file installed with the driver). + * Added support for CUDA 2.1. + * Added preliminary support for OpenGL 3.0. + * Added new OpenGL workstation performance optimizations. + * Enabled the glyph cache by default and extended its support to all supported GPUs. + * Disabled shared memory X pixmaps by default; see the "AllowSHMPixmaps" option. + * Improved X pixmap placement on GeForce 8 series and later GPUs. + * Improved stability on some GeForce 8 series and newer GPUs. + * Fixed a regression that could result in window decoration corruption when running Compiz using Geforce 6 and 7 series GPUs. (LP: #306605) + * Fixed an nvidia-settings crash when xorg.conf contains Device and Screen sections but no ServerLayout section. + * Fixed a problem parsing the monitor sync range X config file options. + * Fixed a problem with the SDI sync skew controls in nvidia-settings. + * Fixed a problem that caused some SDI applications to hang or crash. + * Added support for SDI full-range color. (LP: #218736) + * Improved compatibility with recent Linux kernels. + * debian/rules: + - Create patches directory in case it wasn't present in orig.tar.gz + + -- Mario Limonciello Thu, 08 Jan 2009 14:26:09 -0600 + +nvidia-graphics-drivers-180 (180.18-0ubuntu2) jaunty; urgency=low + + * debian/control: + - Add versioned dependency for libvdpau. + + -- Mario Limonciello Wed, 07 Jan 2009 18:59:22 -0600 + +nvidia-graphics-drivers-180 (180.18-0ubuntu1) jaunty; urgency=low + + [ Thomas Cheutz ] + * Add driver 180.18 (LP: #307791) + * Fixed an X server hang rendering very large fonts. + * Added a check to nvidia-installer to not consider Compiz's libglx.so + a conflicting X extension library. + * VDPAU updates: + o Relaxed restrictions on the number of H.264 references frames. + o Fixed corruption problems in some video bitstreams. + o Fixed a problem that prevented the presentation queue from working in some + multi-display or multi-screen configurations when using overlay based presentation. + + [ Alexey Borzenkov ] + * Fix false positive when generating modaliases + + [ Mario Limonciello ] + * debian/control: + - Introduce nvidia-180-libvdpau and nvidia-180-libvdpau-dev packages so that + applications will be able to build depend and depend on libvdpau without needing + to depend on nvidia driver itself. + * debian/rules: + - Install VDPAU headers and libraries into appropriate packages. + - Don't run debhelper commands with -s as arch independent packages are ignored. + + -- Mario Limonciello Wed, 07 Jan 2009 12:58:13 -0600 + +nvidia-graphics-drivers-180 (180.11-0ubuntu1) jaunty; urgency=low + + * Add driver 180.11: + * Added support for the following new GPUs: + o GeForce 9400M + * Fixed font corruption on GeForce 6 and 7 series GPUs when the GlyphCache setting + is enabled. + * Fixed a memory leak problem when the GlyphCache setting is enabled. + * Added support for GVO full-range color. + * Fixed a problem parsing the monitor sync range X config file options. + * Improved VDPAU error detection and reporting. + * Improved VDPAU support for some video bitstreams. + + -- Alberto Milone (tseliot) Wed, 03 Dec 2008 11:07:30 +0100 + +nvidia-graphics-drivers-180 (180.08-0ubuntu1) jaunty; urgency=low + + * Add driver 180.08 (LP: #297543): + * Added support for the following new GPUs: + o Quadro NVS 450 + o Quadro FX 370 LP + o Quadro FX 5800 + o Quadro FX 4800 + o Quadro FX 470 + o Quadro CX + * Added preliminary support for OpenGL 3.0. + * Improved VDPAU error recovery on some GPUs. + * Added support for CUDA 2.1. + * Added initial support for PureVideo-like features on Linux via the new VDPAU API + (see the vdpau.h header file installed with the driver). + * Added new workstation performance optimizations. + * Enabled the X Render "GlyphCache" by default. + * Disabled shared memory X pixmaps by default; see the “AllowSHMPixmaps" option. + * Fixed a regression that could result in window decoration corruption when running + Compiz using Geforce 6 and 7 series GPUs. + * Improved X pixmap placement on GeForce 8 series and later GPUs. + * Improved compatibility with recent Linux kernels. + * Improved stability on some GeForce 8 series and newer GPUs. + * Add diversions on /usr/lib/libGL.so.1, /usr/lib/libGL.so.1.2, + /usr/lib/xorg/modules/extensions/libglx.so without checking their existence in + Ubuntu 32 bit too (LP: #287470) + * Remove quotation marks from the SOURCES varialble in + nvidia-VER-kernel-source.postinst + * Switch to DKMS patching system (in debian/rules) so as to have different + patches for different kernel versions + + -- Alberto Milone (tseliot) Sun, 30 Nov 2008 16:34:22 +0100 + + --- nvidia-graphics-drivers-180-180.37.orig/debian/copyright.in +++ nvidia-graphics-drivers-180-180.37/debian/copyright.in @@ -0,0 +1,191 @@ +This package was debianized by Randall Donald on +Mon, 31 Mar 2003 23:40:05 -0800. + +It was downloaded from +#URL# + +Upstream Author: NVIDIA + + +Copyright: + +First a note from the README file + +Q: Why does NVIDIA not provide rpms anymore? + +A: Not every Linux distribution uses rpm, and NVIDIA wanted a single + solution that would work across all Linux distributions. As indicated + in the NVIDIA Software License, Linux distributions are welcome to + repackage and redistribute the NVIDIA Linux driver in whatever package + format they wish. + +Furthermore, an email from NVIDIA: + +Greetings, Randall! Comments below: + +On 30 Jul 2003, Randall Donald wrote: + +> To whom it may concern, +> +> My name is Randall Donald and I am the maintainer for the Debian +> downloader packages nvidia-glx-src and nvidia-kernel-src. +> As stated in your license and the README file +> ( "As indicated in the NVIDIA Software License, Linux distributions +> are welcome to repackage and redistribute the NVIDIA Linux driver in +> whatever package format they wish." ) +> I wish to include packages containing the Linux driver files in the Debian archive. +> I'd like to know if it is legally permitted to distribute binary kernel modules +> compiled from the NVIDIA kernel module source and Debian kernel headers. + +This is fine; thanks for asking. + +> I am also wondering if the "No Separation of Components" clause +> ( No Separation of Components. The SOFTWARE is licensed as a +> single product. Its component parts may not be separated for use +> on more than one computer, nor otherwise used separately from the +> other parts.) applies to splitting the glx driver and kernel module source into +> multiple binary packages. + +This is also fine. I believe this section of the license was +intended to prevent users from doing things like using our Windows +control panel with a competitor's display driver (that's not actually +possible, but you get the idea...). In the case of separating the +driver into a glx package and a kernel package (like we used to +do ourselves), this is simply a packaging issue; of course users +will use the packages together when they install. + +Please feel free to redistribute the NVIDIA graphics driver. + +Thank you for doing this for the NVIDIA+Debian community! + +- Andy + + + +The NVIDIA Software Licence is as follows. + +From http://www.nvidia.com/view.asp?IO=nv_swlicense and extracted from the +installer: + + + License For Customer Use of NVIDIA Software + + +IMPORTANT NOTICE -- READ CAREFULLY: This License For Customer Use of +NVIDIA Software ("LICENSE") is the agreement which governs use of +the software of NVIDIA Corporation and its subsidiaries ("NVIDIA") +downloadable herefrom, including computer software and associated +printed materials ("SOFTWARE"). By downloading, installing, copying, +or otherwise using the SOFTWARE, you agree to be bound by the terms +of this LICENSE. If you do not agree to the terms of this LICENSE, +do not download the SOFTWARE. + +RECITALS + +Use of NVIDIA's products requires three elements: the SOFTWARE, the +hardware on a graphics controller board, and a personal computer. The +SOFTWARE is protected by copyright laws and international copyright +treaties, as well as other intellectual property laws and treaties. +The SOFTWARE is not sold, and instead is only licensed for use, +strictly in accordance with this document. The hardware is protected +by various patents, and is sold, but this agreement does not cover +that sale, since it may not necessarily be sold as a package with +the SOFTWARE. This agreement sets forth the terms and conditions +of the SOFTWARE LICENSE only. + +1. DEFINITIONS + +1.1 Customer. Customer means the entity or individual that +downloads the SOFTWARE. + +2. GRANT OF LICENSE + +2.1 Rights and Limitations of Grant. NVIDIA hereby grants Customer +the following non-exclusive, non-transferable right to use the +SOFTWARE, with the following limitations: + +2.1.1 Rights. Customer may install and use one copy of the SOFTWARE +on a single computer, and except for making one back-up copy of +the Software, may not otherwise copy the SOFTWARE. This LICENSE +of SOFTWARE may not be shared or used concurrently on different +computers. + +2.1.2 Linux Exception. Notwithstanding the foregoing terms of +Section 2.1.1, SOFTWARE designed exclusively for use on the Linux +operating system may be copied and redistributed, provided that +the binary files thereof are not modified in any way (except for +unzipping of compressed files). + +2.1.3 Limitations. + +No Reverse Engineering. Customer may not reverse engineer, +decompile, or disassemble the SOFTWARE, nor attempt in any other +manner to obtain the source code. + +No Separation of Components. The SOFTWARE is licensed as a +single product. Its component parts may not be separated for use +on more than one computer, nor otherwise used separately from the +other parts. + +No Rental. Customer may not rent or lease the SOFTWARE to someone +else. + +3. TERMINATION + +This LICENSE will automatically terminate if Customer fails to +comply with any of the terms and conditions hereof. In such event, +Customer must destroy all copies of the SOFTWARE and all of its +component parts. + +4. COPYRIGHT + +All title and copyrights in and to the SOFTWARE (including but +not limited to all images, photographs, animations, video, audio, +music, text, and other information incorporated into the SOFTWARE), +the accompanying printed materials, and any copies of the SOFTWARE, +are owned by NVIDIA, or its suppliers. The SOFTWARE is protected +by copyright laws and international treaty provisions. Accordingly, +Customer is required to treat the SOFTWARE like any other copyrighted +material, except as otherwise allowed pursuant to this LICENSE +and that it may make one copy of the SOFTWARE solely for backup or +archive purposes. + +5. APPLICABLE LAW + +This agreement shall be deemed to have been made in, and shall be +construed pursuant to, the laws of the State of California. + +6. DISCLAIMER OF WARRANTIES AND LIMITATION ON LIABILITY + +6.1 No Warranties. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE +LAW, THE SOFTWARE IS PROVIDED "AS IS" AND NVIDIA AND ITS SUPPLIERS +DISCLAIM ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT +NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +FOR A PARTICULAR PURPOSE. + +6.2 No Liability for Consequential Damages. TO THE MAXIMUM +EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT SHALL NVIDIA OR +ITS SUPPLIERS BE LIABLE FOR ANY SPECIAL, INCIDENTAL, INDIRECT, OR +CONSEQUENTIAL DAMAGES WHATSOEVER (INCLUDING, WITHOUT LIMITATION, +DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS +OF BUSINESS INFORMATION, OR ANY OTHER PECUNIARY LOSS) ARISING OUT +OF THE USE OF OR INABILITY TO USE THE SOFTWARE, EVEN IF NVIDIA HAS +BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + +7. MISCELLANEOUS + +The United Nations Convention on Contracts for the International +Sale of Goods is specifically disclaimed. If any provision of this +LICENSE is inconsistent with, or cannot be fully enforced under, +the law, such provision will be construed as limited to the extent +necessary to be consistent with and fully enforceable under the law. +This agreement is the final, complete and exclusive agreement between +the parties relating to the subject matter hereof, and supersedes +all prior or contemporaneous understandings and agreements relating +to such subject matter, whether oral or written. Customer agrees +that it will not ship, transfer or export the SOFTWARE into any +country, or use the SOFTWARE in any manner, prohibited by the +United States Bureau of Export Administration or any export laws, +restrictions or regulations. This LICENSE may only be modified in +writing signed by an authorized officer of NVIDIA. + --- nvidia-graphics-drivers-180-180.37.orig/debian/nvidia-glx-180.examples +++ nvidia-graphics-drivers-180-180.37/debian/nvidia-glx-180.examples @@ -0,0 +1,2 @@ +NVIDIA-Linux-x86-180.18-pkg0/usr/share/doc/XF86Config.sample + --- nvidia-graphics-drivers-180-180.37.orig/debian/nvidia-180-kernel-source.NEWS +++ nvidia-graphics-drivers-180-180.37/debian/nvidia-180-kernel-source.NEWS @@ -0,0 +1,44 @@ +nvidia-graphics-drivers (1.0.8174-1) unstable; urgency=low + + * LEGACY GPUs: If you have a TNT, TNT2, Vanta, GeForce 256, GeForce DDR, + Quadro, GeForce2 Pro, GeForce2 GTS, GeForce2 Ultra, GeForce2 Ti, Quadro2 + Pro, DO NOT INSTALL THIS RELEASE!!! They are no longer supported. + + -- Randall Donald Sat, 10 Dec 2005 00:01:32 -0800 + +nvidia-graphics-drivers (1.0.7667-2) unstable; urgency=low + + * LEGACY GPUs: If you have a TNT, TNT2, Vanta, GeForce 256, GeForce DDR, + Quadro, GeForce2 Pro, GeForce2 GTS, GeForce2 Ultra, GeForce2 Ti, Quadro2 + Pro, DO NOT INSTALL THIS RELEASE!!! Use the nvidia-glx-legacy, + nvidia-glx-legacy-dev, nvidia-kernel-source-legacy packages instead. + + -- Randall Donald Wed, 13 Jun 2005 00:01:32 -0700 + +nvidia-graphics-drivers (1.0.7664-1) experimental; urgency=low + + * LEGACY GPUs: If you have a TNT, TNT2, Vanta, GeForce 256, GeForce DDR, + Quadro, GeForce2 Pro, GeForce2 GTS, GeForce2 Ultra, GeForce2 Ti, Quadro2 Pro, + DO NOT INSTALL THIS RELEASE!!! NVIDIA will be supporting these cards in a + special legacy driver (as yet unreleased and not included in this package). + So if you have the one of the above listed GPUs, + remain with the 1.0.7174-3 release. + + -- Randall Donald Tue, 21 Jun 2005 00:01:32 -0700 + +nvidia-graphics-drivers (1.0.5336-1) unstable; urgency=low + + With this upstream release, no more patching for 2.6.0 kernels + is neccessary. + + -- Randall Donald Tue, 27 Jan 2004 00:01:32 -0800 + +nvidia-graphics-drivers (1.0.5328-1) unstable; urgency=low + + This release now applies the minion.de patch automatically at build time + on nvidia-kernel-source. It should work for both 2.4 and 2.6 kernels. It + also provides a fix for some newer Via chips where an oops would occur + upon X startup. To bypass this patching set the DO_NOT_PATCH_NV environment + variable. + + -- Randall Donald Mon, 22 Dec 2003 01:21:58 -0800 --- nvidia-graphics-drivers-180-180.37.orig/debian/nvidia-glx-180.dirs +++ nvidia-graphics-drivers-180-180.37/debian/nvidia-glx-180.dirs @@ -0,0 +1,13 @@ +usr/bin +usr/lib +usr/share/applications +usr/share/man/man1 +usr/share/lintian/overrides +usr/share/pixmaps +usr/lib/xorg/modules/drivers +usr/lib/xorg/modules/extensions +usr/lib/tls +usr/lib32/tls +usr/lib/nvidia +usr/lib32/nvidia +usr/share/bug/nvidia-glx-177 --- nvidia-graphics-drivers-180-180.37.orig/debian/nvidia-glx-180.links.in +++ nvidia-graphics-drivers-180-180.37/debian/nvidia-glx-180.links.in @@ -0,0 +1,10 @@ +usr/lib/libGL.so.#VERSION# usr/lib/libGL.so.1 +usr/lib/libGLcore.so.#VERSION# usr/lib/libGLcore.so.1 +usr/lib/libnvidia-cfg.so.#VERSION# usr/lib/libnvidia-cfg.so.1 +usr/lib/libnvidia-tls.so.#VERSION# usr/lib/libnvidia-tls.so.1 +usr/lib/xorg/modules/extensions/libglx.so.#VERSION# usr/lib/xorg/modules/extensions/libglx.so +usr/lib/libXvMCNVIDIA.so.#VERSION# usr/lib/libXvMCNVIDIA.so +usr/lib/libXvMCNVIDIA.so.#VERSION# usr/lib/libXvMCNVIDIA.so.1 +usr/lib/libXvMCNVIDIA.so.#VERSION# usr/lib/libXvMCNVIDIA_dynamic.so.1 +usr/lib/libcuda.so.#VERSION# usr/lib/libcuda.so +usr/lib/libcuda.so.#VERSION# usr/lib/libcuda.so.1 --- nvidia-graphics-drivers-180-180.37.orig/debian/dkms.conf +++ nvidia-graphics-drivers-180-180.37/debian/dkms.conf @@ -0,0 +1,7 @@ +PACKAGE_NAME="nvidia" +PACKAGE_VERSION="180.18" +CLEAN="make clean" +BUILT_MODULE_NAME[0]="nvidia" +MAKE[0]="make module KERNDIR=/lib/modules/$kernelver IGNORE_XEN_PRESENCE=1 IGNORE_CC_MISMATCH=1 SYSSRC=$kernel_source_dir" +DEST_MODULE_LOCATION[0]="/kernel/drivers/video/nvidia" +AUTOINSTALL="yes" --- nvidia-graphics-drivers-180-180.37.orig/debian/control.in +++ nvidia-graphics-drivers-180-180.37/debian/control.in @@ -0,0 +1,156 @@ +Source: nvidia-graphics-drivers-180 +Section: restricted/misc +Priority: optional +Maintainer: Ubuntu Core Developers +XSBC-Original-Maintainer: Debian NVIDIA Maintainers +Uploaders: Randall Donald +XS-Vcs-Svn: svn://svn.debian.org/svn/pkg-nvidia/packages/nvidia-graphics-drivers +XS-Vcs-Browser: http://svn.debian.org/wsvn/pkg-nvidia/packages/nvidia-graphics-drivers +Build-Depends: debhelper (>> 4.0.0), sed (>> 3.0), libxext6, bzip2, xserver-xorg-dev (>= 2:1.4) +Standards-Version: 3.8.0 + +Package: nvidia-glx-180 +Architecture: i386 amd64 +Depends: nvidia-180-kernel-source (>= #VERSION#), nvidia-180-libvdpau (>= #VERSION#), x11-common (>= 1:7.0.0), ${shlibs:Depends} +Recommends: nvidia-settings +Conflicts: nvidia-glx-src, nvidia-glx, xorg-driver-fglrx +Provides: ${xviddriver:Provides}, nvidia-glx +Replaces: nvidia-glx-src, nvidia-glx, nvidia-glx-new, nvidia-glx-legacy, + nvidia-glx-envy, nvidia-glx-new-envy, nvidia-glx-legacy-envy, + nvidia-glx-180, nvidia-glx-177, nvidia-glx-173, nvidia-glx-96, nvidia-glx-71 +Description: NVIDIA binary Xorg driver + These binary drivers provide optimized hardware + acceleration of OpenGL applications via a direct-rendering X Server. + AGP, PCIe, SLI, TV-out and flat panel displays are also supported. + . + Please see the nvidia-180-kernel-source package for building the kernel module + required by this package. This will provide nvidia-kernel- + . + The following GPUs are supported: + GeForce 6800 Ultra, GeForce 6800, GeForce 6800 LE, GeForce + 6800 XE, GeForce 6800 XT, GeForce 6800 GT, GeForce 6800 GT, + GeForce 6800 GS, GeForce 6800 XT, GeForce 7800 GTX, GeForce + 7800 GTX, GeForce 7800 GT, GeForce 7800 GS, GeForce 7800 SLI + , GeForce Go 7800, GeForce Go 7800 GTX, GeForce 6800 GS, GeF + orce 6800, GeForce 6800 LE, GeForce 6800 XT, GeForce Go 6800 + , GeForce Go 6800 Ultra, GeForce 6800, GeForce 6600 GT, GeFo + rce 6600, GeForce 6200, GeForce 6600 LE, GeForce 7800 GS, Ge + Force 6800 GS, GeForce 6800 Ultra, GeForce 6600 GT, GeForce + 6600, GeForce 6600 LE, GeForce 6600 VE, GeForce Go 6600, GeF + orce 6610 XL, GeForce Go 6600 TE/6200 TE, GeForce 6700 XL, G + eForce Go 6600, GeForce Go 6600 GT, GeForce 6200, GeForce 65 + 00, GeForce 6200 TurboCache(TM), GeForce 6200SE TurboCache(T + M), GeForce 6200 LE, GeForce Go 6200, GeForce Go 6400, GeFor + ce Go 6200, GeForce Go 6400, GeForce 6250, GeForce 7100 GS, + GeForce 8800 GTX, GeForce 8800 GTS, GeForce 8800 Ultra, Tesl + a C870, GeForce 7350 LE, GeForce 7300 LE, GeForce 7300 SE/72 + 00 GS, GeForce Go 7200, GeForce Go 7300, GeForce Go 7400, Ge + Force 7500 LE, GeForce 7300 GS, GeForce 6800, GeForce 6800 L + E, GeForce 6800 GT, GeForce 6800 XT, GeForce 6200, GeForce 6 + 200 A-LE, GeForce 6150, GeForce 6150 LE, GeForce 6100, GeFor + ce Go 6150, GeForce Go 6100, GeForce 7900 GTX, GeForce 7900 + GT/GTO, GeForce 7900 GS, GeForce 7950 GX2, GeForce 7950 GX2, + GeForce 7950 GT, GeForce Go 7950 GTX, GeForce Go 7900 GS, G + eForce Go 7900 GTX, GeForce 7600 GT, GeForce 7600 GS, GeForc + e 7900 GS, GeForce 7950 GT, GeForce 7650 GS, GeForce 7600 GT + , GeForce 7600 GS, GeForce 7300 GT, GeForce 7600 LE, GeForce + 7300 GT, GeForce Go 7600, GeForce Go 7600 GT, GeForce 6150S + E nForce 430, GeForce 6100 nForce 405, GeForce 6100 nForce 4 + 00, GeForce 6100 nForce 420, GeForce 8600 GTS, GeForce 8600 + GT, GeForce 8600 GT, GeForce 8400 GS, GeForce 9500M GS, GeFo + rce 8600M GT, GeForce 8700M GT, GeForce 8400 SE, GeForce 850 + 0 GT, GeForce 8400 GS, GeForce 8300 GS, GeForce 8400 GS, GeF + orce 8600M GS, GeForce 8400M GT, GeForce 8400M GS, GeForce 8 + 400M G, GeForce 9400 GT, GeForce 7150M / nForce 630M, GeForc + e 7000M / nForce 610M, GeForce 7050 PV / NVIDIA nForce 630a, + GeForce 7050 PV / NVIDIA nForce 630a, GeForce 7025 / NVIDIA + nForce 630a, GeForce GTX 280, GeForce GTX 260, GeForce 8800 + GTS 512, GeForce 8800 GT, GeForce 9800 GX2, GeForce 8800 GS + , GeForce 8800M GTS, GeForce 8800M GTX, GeForce 8800 GS, GeF + orce 9600 GSO, GeForce 8800 GT, GeForce 9800 GTX, GeForce 96 + 00 GT, GeForce 9600 GS, GeForce 9800M GTS, GeForce 9800M GTS + , GeForce 9600M GT, GeForce 9600M GS, GeForce 9500M G, GeFor + ce 9300 GS, GeForce 8400 GS, GeForce 9300M GS, GeForce 7150 + / NVIDIA nForce 630i, GeForce 7100 / NVIDIA nForce 630i, GeF + orce 7050 / NVIDIA nForce 610i, GeForce 8300, GeForce 8200, + nForce 730a, GeForce 8200, GeForce 8100 / nForce 720a, Quadr + o FX 4000, Quadro FX 4500, Quadro FX Go1400, Quadro FX 3450/ + 4000 SDI, Quadro FX 1400, Quadro FX 4400/Quadro FX 3400, Qua + dro NVS 440, Quadro FX 540M, Quadro FX 550, Quadro FX 540, Q + uadro NVS 285, Quadro FX 5600, Quadro FX 4600, Quadro NVS 11 + 0M, Quadro NVS 110M, Quadro NVS 120M, Quadro FX 350M, Quadro + FX 350, Quadro NVS 210S / NVIDIA GeForce 6150LE, Quadro FX + 2500M, Quadro FX 1500M, Quadro FX 5500, Quadro FX 3500, Quad + ro FX 1500, Quadro FX 4500 X2, Quadro FX 560, Quadro FX 370, + Quadro NVS 320M, Quadro FX 570M, Quadro FX 1600M, Quadro FX + 570, Quadro FX 1700, Quadro NVS 140M, Quadro NVS 130M, Quad + ro NVS 135M, Quadro FX 360M, Quadro NVS 290, Quadro FX 3700, + Quadro FX 3600M + . + See /usr/share/doc/nvidia-glx/README.txt.gz for a complete list + of supported GPUs and PCIIDs + . + +Package: nvidia-glx-180-dev +Architecture: i386 amd64 +Depends: nvidia-glx-180 (>= #VERSION#) +Provides: libgl-dev, libgl1-mesa-dev, mesa-common-dev, nvidia-glx-dev +Conflicts: nvidia-glx-180 (>= #NEXTVER#), libgl-dev, libgl1-mesa-dev, + mesa-common-dev, nvidia-glx-dev, nvidia-glx-dev-new, nvidia-glx-dev-legacy +Replaces: libgl-dev, libgl1-mesa-dev, mesa-common-dev, nvidia-glx-dev-new, + nvidia-glx-dev, nvidia-glx-dev-legacy, nvidia-glx-lrm-dev, nvidia-glx-180-dev, + nvidia-glx-177-dev, nvidia-glx-173-dev, nvidia-glx-96-dev, nvidia-glx-71-dev, + nvidia-glx-dev-new-envy, nvidia-glx-dev-envy, nvidia-glx-dev-legacy-envy +Description: NVIDIA binary Xorg driver development files + This package contains the NVIDIA binary Xorg driver + development files. + . + For more information on this source package visit NVIDIA's homepage + at http://www.nvidia.com/ . + +Package: nvidia-180-kernel-source +Architecture: i386 amd64 +Depends: make, sed (>> 3.0), dkms, linux-libc-dev, libc6-dev, linux-headers-generic | linux-headers +Recommends: nvidia-glx-180 (>= #VERSION#) +Provides: nvidia-kernel-source +Conflicts: nvidia-kernel-src, nvidia-kernel-source +Replaces: nvidia-kernel-src, nvidia-180-kernel-source, + nvidia-177-kernel-source, nvidia-173-kernel-source, nvidia-96-kernel-source, + nvidia-71-kernel-source, nvidia-kernel-source, nvidia-new-kernel-source, + nvidia-legacy-kernel-source, nvidia-kernel-source-envy, + nvidia-new-kernel-source-envy, nvidia-legacy-kernel-source-envy +Description: NVIDIA binary kernel module source + This package builds the NVIDIA Xorg binary kernel module + needed by nvidia-glx. The drivers provide optimized hardware acceleration + of OpenGL applications via a direct-rendering X Server AGP, + PCIe, SLI, TV-out, and flat panel displays are also supported. + . + PLEASE read /usr/share/doc/nvidia-kernel-source/README.Debian for building + information. + . + +Package: nvidia-180-modaliases +Architecture: i386 amd64 +Description: Modaliases for the NVIDIA binary X.Org driver + The modaliases provide a list of pci id's which makes it possible to + detect the model of a graphic card. + +Package: nvidia-180-libvdpau +Architecture: i386 amd64 +Replaces: nvidia-glx-177, nvidia-glx-180 (<= 180.22) +Description: Video Decode and Presentation API for Unix + This library provides NVIDIA's implementation of the Video Decode + and presentation API. It provides acceleration for NVIDIA 7 and later + series cards for h264 video. + +Package: nvidia-180-libvdpau-dev +Architecture: all +Depends: nvidia-180-libvdpau (>= #VERSION#) +Replaces: nvidia-glx-180-dev (<= 180.22) +Description: Video Decode and Presentation API for Unix development files + This library provides NVIDIA's implementation of the Video Decode + and presentation API. It provides acceleration for NVIDIA 7 and later + series cards for h264 video. + . + This provides the necessary headers for applications to enable VDPAU + support. --- nvidia-graphics-drivers-180-180.37.orig/debian/nvidia-glx-180-dev.postrm +++ nvidia-graphics-drivers-180-180.37/debian/nvidia-glx-180-dev.postrm @@ -0,0 +1,61 @@ +#! /bin/sh +# postrm script for nvidia-glx-180 +# +# see: dh_installdeb(1) + +set -e + +case "$1" in + remove|purge) + if [ "$(dpkg-divert --list /usr/lib/nvidia/libGL.so.xlibmesa | awk '{ print $7 }')" = "nvidia-glx-180" ]; then + dpkg-divert --remove --rename --package nvidia-glx-180-dev --divert /usr/lib/nvidia/libGL.so.xlibmesa /usr/lib/libGL.so > /dev/null + fi + if [ "$(dpkg-divert --list /usr/lib/nvidia/libGL.a.xlibmesa | awk '{ print $7 }')" = "nvidia-glx-180" ]; then + dpkg-divert --remove --rename --package nvidia-glx-180-dev --divert /usr/lib/nvidia/libGL.a.xlibmesa /usr/lib/libGL.a > /dev/null + fi + if [ "$(dpkg-divert --list /usr/lib/libGL.so | awk '{ print $7 }')" = "nvidia-glx-180-dev" ]; then + dpkg-divert --remove --rename --package nvidia-glx-180-dev --divert /usr/lib/nvidia/libGL.so.xlibmesa /usr/lib/libGL.so > /dev/null + fi + if [ "$(dpkg-divert --list /usr/lib/libGL.a | awk '{ print $7 }')" = "nvidia-glx-180-dev" ]; then + dpkg-divert --remove --rename --package nvidia-glx-180-dev --divert /usr/lib/nvidia/libGL.a.xlibmesa /usr/lib/libGL.a > /dev/null + fi + +# dpkg-divert --remove --rename --package nvidia-glx-180-dev --divert /usr/lib/nvidia/libGL.so.xlibmesa /usr/lib/libGL.so > /dev/null +# dpkg-divert --remove --rename --package nvidia-glx-180-dev --divert /usr/lib/nvidia/libGL.so.xlibmesa /usr/lib/libGL.so > /dev/null +# rm /usr/lib/libGL.so || true +# /etc/init.d/nvidia-glx-180 start || true +# ln -s /usr/lib/nvidia/libGL.so.1.2.xlibmesa /usr/lib/libGL.so + + +# dpkg-divert --remove --rename --package nvidia-glx-180-dev --divert /usr/lib/nvidia/libGL.a.xlibmesa /usr/lib/libGL.a > /dev/null + +# dpkg-divert --remove --rename --package nvidia-glx-180-dev --divert /usr/share/nvidia-glx-180/diversions/gl.h /usr/include/GL/gl.h > /dev/null +# dpkg-divert --remove --rename --package nvidia-glx-180-dev --divert /usr/share/nvidia-glx-180/diversions/glx.h /usr/include/GL/glx.h > /dev/null +# dpkg-divert --remove --rename --package nvidia-glx-180-dev --divert /usr/share/nvidia-glx-180/diversions/glxtokens.h /usr/include/GL/glxtokens.h > /dev/null + +# dpkg-divert --remove --rename --package nvidia-glx-180-dev --divert /usr/share/nvidia-glx-180/diversions/gl.h /usr/include/GL/gl.h > /dev/null +# dpkg-divert --remove --rename --package nvidia-glx-180-dev --divert /usr/share/nvidia-glx-180/diversions/glx.h /usr/include/GL/glx.h > /dev/null +# dpkg-divert --remove --rename --package nvidia-glx-180-dev --divert /usr/share/nvidia-glx-180/diversions/glxtokens.h /usr/include/GL/glxtokens.h > /dev/null + + if [ -d /usr/lib/nvidia/ ]; then + rmdir /usr/lib/nvidia || true; + + fi + + ;; + + upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + + + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 0 + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# --- nvidia-graphics-drivers-180-180.37.orig/debian/upstream_info +++ nvidia-graphics-drivers-180-180.37/debian/upstream_info @@ -0,0 +1,69 @@ +eval `dpkg-architecture` + +#BASE_VERSION=1.0 +RELEASE=180.37 +NEXTVER=180.38 + +if [ "$DEB_BUILD_ARCH" = "amd64" ] ; then + BASE_URL=ftp://download.nvidia.com/XFree86/Linux-x86_64/${RELEASE} + DIRNAME=NVIDIA-Linux-x86_64-${RELEASE}-pkg2 + # change this on next version release + FILENAME=$DIRNAME.run +elif [ "$DEB_BUILD_ARCH" = "i386" ] ; then + BASE_URL=ftp://download.nvidia.com/XFree86/Linux-x86/${RELEASE} + DIRNAME=NVIDIA-Linux-x86-${RELEASE}-pkg0 + FILENAME="$DIRNAME.run" +else + echo "huh? dont know about a version of this driver for your architecture." + exit 1 +fi +FILENAME_X86=NVIDIA-Linux-x86-${RELEASE}-pkg0.run +FILENAME_X86_64=NVIDIA-Linux-x86_64-${RELEASE}-pkg2.run +DIRNAME_X86=NVIDIA-Linux-x86-${RELEASE}-pkg0 +DIRNAME_X86_64=NVIDIA-Linux-x86_64-${RELEASE}-pkg2 + +VERSION=${RELEASE} +UPSTREAMVERSION=${RELEASE} +URL=${BASE_URL}/${FILENAME} + +case "$1" in + BASE_VERSION) + echo "${BASE_VERSION}" + ;; + RELEASE) + echo "$RELEASE" + ;; + VERSION) + echo "$VERSION" + ;; + NEXTVER) + echo "$NEXTVER" + ;; + URL) + echo "$URL" + ;; + FILENAME) + echo "$FILENAME" + ;; + FILENAME_X86_64) + echo "$FILENAME_X86_64" + ;; + FILENAME_X86) + echo "$FILENAME_X86" + ;; + DIRNAME_X86_64) + echo "$DIRNAME_X86_64" + ;; + DIRNAME_X86) + echo "$DIRNAME_X86" + ;; + DIRNAME) + echo "$DIRNAME" + ;; + UPSTREAMVERSION) + echo "$UPSTREAMVERSION" + ;; + +esac + +exit 0 --- nvidia-graphics-drivers-180-180.37.orig/debian/nvidia-glx-180.postrm +++ nvidia-graphics-drivers-180-180.37/debian/nvidia-glx-180.postrm @@ -0,0 +1,79 @@ +#! /bin/sh +# postrm script for nvidia-glx-180 +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' overwrit>r> +# for details, see /usr/share/doc/packaging-manual/ + +case "$1" in + remove|purge) + # remove file created by init script + rm /usr/lib/libGL.so 2> /dev/null || true + if [ "$(dpkg-divert --list /usr/lib/libGL.so.1 | awk '{ print $7 }')" = "nvidia-glx-180" ]; then + dpkg-divert --remove --rename --package nvidia-glx-180 --divert /usr/lib/nvidia/libGL.so.1.xlibmesa /usr/lib/libGL.so.1 > /dev/null + dpkg-divert --remove --rename --package nvidia-glx-180 --divert /usr/lib/nvidia/libGL.so.1.2.xlibmesa /usr/lib/libGL.so.1.2 > /dev/null + fi + if [ "$(dpkg-divert --list /usr/lib/xorg/modules/extensions/libGLcore.so | awk '{ print $7 }')" = "nvidia-glx-180" ]; then + dpkg-divert --remove --rename --package nvidia-glx-180 --divert /usr/lib/nvidia/libGLcore.so.xlibmesa /usr/lib/xorg/modules/extensions/libGLcore.so > /dev/null + fi + if [ "$(dpkg-divert --list /usr/lib/xorg/modules/extensions/libglx.so | awk '{ print $7 }')" = "nvidia-glx-180" ]; then + dpkg-divert --remove --rename --package nvidia-glx-180 --divert /usr/lib/nvidia/libglx.so.xserver-xorg-core /usr/lib/xorg/modules/extensions/libglx.so > /dev/null + fi + + if [ "$(dpkg-divert --list /usr/lib32/libGL.so | awk '{ print $7 }')" = "nvidia-glx-180" ]; then + rm -f /usr/lib32/libGL.so > /dev/null || true + dpkg-divert --remove --rename --package nvidia-glx-180 --divert /usr/lib32/nvidia/libGL.so.xlibmesa /usr/lib32/libGL.so > /dev/null + fi + + if [ "$(dpkg-divert --list /usr/lib32/libGL.so.1 | awk '{ print $7 }')" = "nvidia-glx-180" ]; then + rm -f /usr/lib32/libGL.so.1 > /dev/null || true + dpkg-divert --remove --rename --package nvidia-glx-180 --divert /usr/lib32/nvidia/libGL.so.1.xlibmesa /usr/lib32/libGL.so.1 > /dev/null + fi + if [ "$(dpkg-divert --list /usr/lib32/libGL.so.1.2 | awk '{ print $7 }')" = "nvidia-glx-180" ]; then + rm -f /usr/lib32/libGL.so.1.2 > /dev/null || true + dpkg-divert --remove --rename --package nvidia-glx-180 --divert /usr/lib32/nvidia/libGL.so.1.2.xlibmesa /usr/lib32/libGL.so.1.2 > /dev/null + fi + + rm -f /usr/lib/xorg/modules/extensions/libglx.so.180.18 2> /dev/null || true + if [ -d /usr/lib/nvidia ]; then + rmdir /usr/lib/nvidia/ 2> /dev/null || true; + fi + if [ -d /usr/lib32/nvidia ]; then + rmdir /usr/lib32/nvidia 2> /dev/null || true; + fi + ldconfig + + ;; + + upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + + + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 0 + +esac + + +#rm -f /usr/lib/xorg/modules/extensions/libglx.so.180.18 2> /dev/null || true + + + + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# --- nvidia-graphics-drivers-180-180.37.orig/debian/nvidia-glx-180.README.Debian +++ nvidia-graphics-drivers-180-180.37/debian/nvidia-glx-180.README.Debian @@ -0,0 +1,75 @@ +nvidia-graphics-drivers for Ubuntu +---------------------------------- + + +INTRODUCTION: +----------------------------------------------------------------------- + +Welcome to the Ubuntu NVIDIA packages. This document has notes on the +X Server and GL libraries of the NVIDIA driver offering. + + +A Note about Thread Local Storage (TLS): +---------------------------------------- +Under 2.6.x kernels a new TLS method is used and different libraries are +required. NVIDIA provides these libraries and at boot time (via +/etc/init.d/nvidia-glx) a test is performed on your system to see if +your require these extra libraries. Having the TLS libraries installed +(in /usr/lib/tls and libglx.so) running under a 2.4.x kernel will cause +problems when running GL applications. Likewise, not having these libraries +installed under 2.6.x might prevent X from starting at all. + +Simple Explanation: +To switch back and forth between the two systems simply run: + + /etc/init.d/nvidia-glx start + + This is run automatically at boot time. + +To force a certain setting (e.g. you may have a 2.4 kernel patched for +NPTL) place USE_TLS=1 in /etc/defaults/nvidia-glx for using the nvidia tls +libraries. USE_TLS=0 for not using tls libraries. This isn't normally +necessary for most users. + + +What Happens: +Symlinks are created in /usr/lib/tls from libraries installed in +/usr/lib/nvidia. + + +For any news on this package check http://people.debian.org/~rdonald and +http://bugs.debian.org/nvidia-glx + + +NOTES ABOUT GLX DRIVER AND OPENGL: +----------------------------------------------------------------------- + +Using the nvidia X driver requires some user modification. + + First, modify your /etc/X11/xorg.conf + + Minimum requirements: + In Section "Device" + Change Driver "nv" to Driver "nvidia" + + See /usr/share/doc/nvidia-glx/README.gz and + /usr/share/doc/nvidia-glx/examples/XF86Config.sample.gz + for descriptions of all supported options. + Appendix F: CONFIGURING AGP is an important section. + + +Note about OpenGL headers: The header files are not installed to +/usr/include/GL but to /usr/share/doc/nvidia-glx-dev/include/GL. +This allows use of and not overwriting of the +preinstalled headers (e.g. xlibmesa-dev). If you wish to use the NVIDIA +supplied headers (e.g. you require NVIDIA GL extensions) you must copy them to +/usr/include/GL yourself or include /usr/share/doc/nvidia-glx-dev/include in +your includes path when compiling. + + +Also note all users using GLX must be in group video. (i.e. adduser +video) + + + + -- Randall Donald , Mon, 31 Mar 2003 23:40:05 -0800 --- nvidia-graphics-drivers-180-180.37.orig/debian/nvidia-glx-180.override.in +++ nvidia-graphics-drivers-180-180.37/debian/nvidia-glx-180.override.in @@ -0,0 +1,13 @@ +nvidia-glx: library-not-linked-against-libc ./usr/lib/libGL.so.#VERSION# + +nvidia-glx: shared-lib-without-dependency-information ./usr/lib/libGLcore.so.#VERSION# + +nvidia-glx: library-not-linked-against-libc ./usr/lib/xorg/modules/extensions/libglx.so.#VERSION# + +nvidia-glx: shlib-with-non-pic-code usr/lib/libGL.so.#VERSION# +nvidia-glx: shlib-with-non-pic-code usr/lib/libGLcore.so.#VERSION# +nvidia-glx: shlib-with-non-pic-code usr/lib/xorg/modules/extensions/libglx.so.#VERSION# +nvidia-glx: shlib-with-non-pic-code usr/lib/libXvMCNVIDIA.so.#VERSION# + +nvidia-glx: non-dev-pkg-with-shlib-symlink usr/lib/libGL.so.#VERSION# usr/lib/libGL.so +nvidia-glx: non-dev-pkg-with-shlib-symlink usr/lib/xorg/modules/extensions/libglx.so.#VERSION# usr/lib/xorg/modules/extensions/libglx.so --- nvidia-graphics-drivers-180-180.37.orig/debian/nvidia-180-kernel-source.postinst +++ nvidia-graphics-drivers-180-180.37/debian/nvidia-180-kernel-source.postinst @@ -0,0 +1,49 @@ +#!/bin/sh +# Copyright (C) 2002-2005 Flavio Stanchina +# Copyright (C) 2005-2006 Aric Cyr +# Copyright (C) 2007 Mario Limonciello +# Copyright (C) 2007 Alberto Milone + +#DEBHELPER# + +PKGVER=`dpkg-query -W -f='${Version}' nvidia-180-kernel-source | awk -F "-" '{print $1}'` +PKGVER=${PKGVER#*:} + +SOURCES=/var/lib/dkms/nvidia/ +VERSION=180.71 +STATUS=$(dpkg --compare-versions "$PKGVER" lt "$VERSION" && echo "True" || echo "False") + +case "$1" in + configure) + # act only if the version of the current package is lower than $VERSION + if [ "$STATUS" = "True" ] && [ -d $SOURCES ]; then + echo "Cleaning up the DKMS tree" + for directory in $(ls $SOURCES); do + kind=$(echo "$directory" | awk '$1 ~ /.*[a-z].*$/ { print "alpha"; next } { print "num" }') + # the names of the directories containing the version of the driver are digits (e.g. 177.70) + if [ "$kind" = "num" ]; then + comparison=$(echo "$directory" | awk -v Version="$PKGVER" '($1 != Version) { print "yes"; next } { print "no" }') + # if the version is less than $VERSION + if [ "$comparison" = "yes" ]; then + rm -rf $SOURCES$directory 2>/dev/null + fi + fi + done + echo "Done." + fi + + echo "Removing all DKMS Modules" + dkms remove -m nvidia -v $PKGVER --all -q > /dev/null + echo "Done." + echo "Adding Module to DKMS build system" + echo "driver version= $PKGVER" + dkms add -m nvidia -v $PKGVER > /dev/null + echo "Doing initial module build" + dkms build -m nvidia -v $PKGVER > /dev/null + echo "Installing initial module" + dkms install -m nvidia -v $PKGVER > /dev/null + echo "Done." + ;; +esac + + --- nvidia-graphics-drivers-180-180.37.orig/debian/nvidia-glx-180.docs +++ nvidia-graphics-drivers-180-180.37/debian/nvidia-glx-180.docs @@ -0,0 +1,2 @@ +NVIDIA-Linux-x86-180.18-pkg0/usr/share/doc/NVIDIA_Changelog +NVIDIA-Linux-x86-180.18-pkg0/usr/share/doc/README.txt --- nvidia-graphics-drivers-180-180.37.orig/debian/nvidia-settings.dirs +++ nvidia-graphics-drivers-180-180.37/debian/nvidia-settings.dirs @@ -0,0 +1,2 @@ +usr/bin +usr/share/doc/nvidia-settings --- nvidia-graphics-drivers-180-180.37.orig/debian/nvidia-settings.substvars +++ nvidia-graphics-drivers-180-180.37/debian/nvidia-settings.substvars @@ -0,0 +1 @@ +shlibs:Depends=libatk1.0-0 (>= 1.6.0), libc6 (>= 2.3.2.ds1-4), libglib2.0-0 (>= 2.4.1), libgtk2.0-0 (>= 2.4.3), libpango1.0-0 (>= 1.4.0), libx11-6 | xlibs (>> 4.1.0), libxext6 | xlibs (>> 4.1.0) --- nvidia-graphics-drivers-180-180.37.orig/debian/nvidia-180-kernel-source.docs.in +++ nvidia-graphics-drivers-180-180.37/debian/nvidia-180-kernel-source.docs.in @@ -0,0 +1,2 @@ +#DIRNAME#/usr/share/doc/NVIDIA_Changelog +#DIRNAME#/usr/share/doc/README.txt --- nvidia-graphics-drivers-180-180.37.orig/debian/nvidia-glx-180-dev.links.in +++ nvidia-graphics-drivers-180-180.37/debian/nvidia-glx-180-dev.links.in @@ -0,0 +1,2 @@ +usr/lib/libGL.so.#VERSION# usr/lib/libGL.so +usr/share/nvidia/include /usr/share/doc/nvidia-glx-180-dev/include --- nvidia-graphics-drivers-180-180.37.orig/debian/rules +++ nvidia-graphics-drivers-180-180.37/debian/rules @@ -0,0 +1,448 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. +# +# Modified to make a template file for a multi-binary package with separated +# build-arch and build-indep targets by Bill Allombert 2001 + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# dpkg-buildpackage passes options that are incompatible +# with the kernel build. +unexport CFLAGS +unexport LDFLAGS + +SHELL := sh -e + +# This has to be exported to make some magic below work. +export DH_OPTIONS + +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +SERVERMINVERS = $(shell cat /usr/share/xserver-xorg/serverminver 2>/dev/null) +VIDEOABI = $(shell cat /usr/share/xserver-xorg/videoabiver 2>/dev/null) +INPUTABI = $(shell cat /usr/share/xserver-xorg/inputabiver 2>/dev/null) +SERVER_DEPENDS = xserver-xorg-core (>= $(SERVERMINVERS)) +VIDDRIVER_PROVIDES = xserver-xorg-video-$(VIDEOABI) +ifeq ($(PACKAGE),) +PACKAGE=nvidia-glx-180 +endif + + +base_version:=$(shell sh debian/upstream_info BASE_VERSION) +release:=$(shell sh debian/upstream_info RELEASE) +version:=$(shell sh debian/upstream_info VERSION) +nextver:=$(shell sh debian/upstream_info NEXTVER) +upstreamversion:=$(shell sh debian/upstream_info UPSTREAMVERSION) +url:=$(shell sh debian/upstream_info URL) +dirname:=$(shell sh debian/upstream_info DIRNAME) +filename:=$(shell sh debian/upstream_info FILENAME) +filename_x86:=$(shell sh debian/upstream_info FILENAME_X86) +filename_x86_64:=$(shell sh debian/upstream_info FILENAME_X86_64) +dirname_x86:=$(shell sh debian/upstream_info DIRNAME_X86) +dirname_x86_64:=$(shell sh debian/upstream_info DIRNAME_X86_64) + +AUTOGEN=debian/nvidia-180-kernel-source.README.Debian debian/control \ +debian/copyright debian/nvidia-glx-180.links debian/nvidia-glx-180-dev.links \ +debian/nvidia-glx-180.override \ +debian/nvidia-glx-180.docs debian/nvidia-glx-180.examples \ +debian/nvidia-glx-180.postrm debian/nvidia-glx-180-dev.preinst \ +debian/nvidia-180-kernel-source.docs debian/dkms.conf + +#debian/nvidia-glx-180-ia32.override debian/nvidia-glx-180-ia32.links \ + +CFLAGS = -Wall -g + +pkgver:=$(shell dpkg-parsechangelog | grep ^Version | awk '{print $$2}') + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +version-change: version-clean $(AUTOGEN) clean + +configure: configure-stamp + +.PHONY: configure-stamp +configure-stamp: version-clean $(AUTOGEN) + dh_testdir + chmod +x ${filename_x86} + chmod +x ${filename_x86_64} + # extract both so we can fetch the kernel object code for both arches + ./${filename_x86} --extract-only + ./${filename_x86_64} --extract-only + #if test -d $(CURDIR)/patches; \ + if test -d $(CURDIR)/debian.binary/patches; \ + then \ + cp -R $(CURDIR)/debian.binary/patches $(dirname)/usr/src/nv/ \ +# pwd; \ +# ls -al; \ +# cd $(dirname)/usr/src/nv; \ +# #for i in $(CURDIR)/patches/*; \ +# for i in $(CURDIR)/debian.binary/patches/*; \ +# do \ +# if [ -f $$i ]; then \ +# echo $$i; patch -p3 <$$i; \ +# fi; \ +# done; \ + fi + cp $(dirname)/usr/src/nv/nv.c $(dirname)/usr/src/nv/nv1.c + cp $(dirname)/usr/src/nv/nv-linux.h $(dirname)/usr/src/nv/nv-linux1.h + sed 's/CONFIG_XEN/CONFIG_ALB/g' $(dirname)/usr/src/nv/nv1.c > $(dirname)/usr/src/nv/nv.c + sed 's/CONFIG_XEN/CONFIG_ALB/g' $(dirname)/usr/src/nv/nv-linux1.h > $(dirname)/usr/src/nv/nv-linux.h + rm $(dirname)/usr/src/nv/nv1.c + rm $(dirname)/usr/src/nv/nv-linux1.h + sed 's/^nvidia-graphics-drivers-180/nvidia-kernel-180/g' debian/changelog > debian.binary/changelog + + + touch configure-stamp + +.PHONY: build +build: configure-stamp build-stamp + +.PHONY: build-stamp +build-stamp: + touch build-stamp + +.PHONY: build-kernel +build-kernel: + +.PHONY: serverabi +serverabi: +ifeq ($(SERVERMINVERS),) + @echo error: xserver-xorg-dev needs to be installed + @exit 1 +else + echo "xserver:Depends=$(SERVER_DEPENDS)" >> debian/$(PACKAGE).substvars + echo "xviddriver:Provides=$(VIDDRIVER_PROVIDES)" >> debian/$(PACKAGE).substvars + echo "xinpdriver:Provides=$(INPDRIVER_PROVIDES)" >> debian/$(PACKAGE).substvars +endif + +.PHONY: build-kernel-stamp +build-kernel-stamp: + dh_testroot + dh_testdir + + + # build kernel module source tarball + mkdir -p $(CURDIR)/debian/temp/modules/nvidia-kernel/debian/ + mkdir -p $(CURDIR)/debian/temp/modules/nvidia-kernel/nv + cp -a $(CURDIR)/debian.binary/* $(CURDIR)/debian/temp/modules/nvidia-kernel/debian + + for f in `ls $(CURDIR)/debian.binary` ; do \ + if [ -f $$f ]; then \ + perl -p \ + -e 's{#BASE_VERSION#}{$(base_version)}g;' \ + -e 's{#RELEASE#}{$(release)}g;' \ + -e 's{#VERSION#}{$(version)}g;' \ + -e 's{#UPSTREAMVERSION#}{$(upstreamversion)}g;' \ + -e 's{#URL#}{$(url)}g' \ + < $(CURDIR)/debian.binary/$$f > $(CURDIR)/debian/temp/modules/nvidia-kernel/debian/$$f ; \ + chmod 0644 $(CURDIR)/debian/temp/modules/nvidia-kernel/debian/$$f ; \ + fi; \ + done + mkdir -p $(CURDIR)/debian/temp/modules/nvidia-kernel/debian/patches + chmod 775 $(CURDIR)/debian/temp/modules/nvidia-kernel/debian/patches + cp -R $(CURDIR)/$(dirname)/usr/src/nv $(CURDIR)/debian/temp/modules/nvidia-kernel/ +#not yet cp $(CURDIR)/Makefile $(CURDIR)/debian/temp/modules/nvidia-kernel/ || true + #cp $(CURDIR)/$(dirname_x86_64)/usr/src/nv/nv-kernel.o $(CURDIR)/debian/temp/modules/nvidia-kernel/nv/nv-kernel.o.x86_64 || true + cp $(CURDIR)/debian/temp/modules/nvidia-kernel/nv/Makefile.kbuild $(CURDIR)/debian/temp/modules/nvidia-kernel/nv/Makefile + chmod 755 $(CURDIR)/debian/temp/modules/nvidia-kernel/debian/rules + chown -R root:src $(CURDIR)/debian/temp/modules + + #tar -jcvf $(CURDIR)/nvidia-kernel.tar.bz2 -C $(CURDIR)/debian/temp modules + + + #rm -rf debian/temp + touch build-kernel-stamp + +.PHONY: clean +clean: + dh_testdir + dh_testroot + rm -f build-stamp build-kernel-stamp configure-stamp + dh_clean + + rm -fr $(dirname_x86) $(dirname_x86_64) + + + +.PHONY: install +install: build-stamp build-kernel-stamp + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + #install -m 644 $(CURDIR)/nvidia-kernel.tar.bz2 $(CURDIR)/debian/nvidia-180-kernel-source/usr/src + mkdir -p $(CURDIR)/debian/nvidia-180-kernel-source/usr/src/nvidia-$(version) + cp -a $(CURDIR)/debian/temp/modules/nvidia-kernel/nv/* \ + $(CURDIR)/debian/nvidia-180-kernel-source/usr/src/nvidia-$(version)/ + + install -m 644 $(CURDIR)/debian/dkms.conf $(CURDIR)/debian/nvidia-180-kernel-source/usr/src/nvidia-$(version) + rm -rf debian/temp + + + install -m 0644 $(dirname)/usr/X11R6/lib/modules/drivers/nvidia_drv.so \ + $(CURDIR)/debian/nvidia-glx-180/usr/lib/xorg/modules/drivers + + + + install $(dirname)/usr/X11R6/lib/libXvMCNVIDIA.a $(CURDIR)/debian/nvidia-glx-180-dev/usr/lib/libXvMCNVIDIA.a; + install $(dirname)/usr/X11R6/lib/libXvMCNVIDIA.so.${version} $(CURDIR)/debian/nvidia-glx-180/usr/lib/libXvMCNVIDIA.so.${version}; + + + + + install -m 0644 $(dirname)/usr/include/GL/gl.h \ + $(CURDIR)/debian/nvidia-glx-180-dev/usr/include/GL + install -m 0644 $(dirname)/usr/include/GL/glext.h \ + $(CURDIR)/debian/nvidia-glx-180-dev/usr/include/GL + + #CUDA + install -m 0644 $(dirname)/usr/include/cuda/cuda.h \ + $(CURDIR)/debian/nvidia-glx-180-dev/usr/include/cuda + install -m 0644 $(dirname)/usr/include/cuda/cudaGL.h \ + $(CURDIR)/debian/nvidia-glx-180-dev/usr/include/cuda + + install -m 0644 $(dirname)/usr/include/GL/glx.h \ + $(CURDIR)/debian/nvidia-glx-180-dev/usr/include/GL + install -m 0644 $(dirname)/usr/include/GL/glxext.h \ + $(CURDIR)/debian/nvidia-glx-180-dev/usr/include/GL + + #VDPAU + mkdir -p $(CURDIR)/debian/nvidia-180-libvdpau-dev/usr/include/vdpau + install -m 0644 $(dirname)/usr/include/vdpau/vdpau.h \ + $(CURDIR)/debian/nvidia-180-libvdpau-dev/usr/include/vdpau + install -m 0644 $(dirname)/usr/include/vdpau/vdpau_x11.h \ + $(CURDIR)/debian/nvidia-180-libvdpau-dev/usr/include/vdpau + + + install -m 0644 $(dirname)/usr/lib/libGL.so.${version} \ + $(CURDIR)/debian/nvidia-glx-180/usr/lib + install -m 0644 $(dirname)/usr/lib/libGLcore.so.${version} \ + $(CURDIR)/debian/nvidia-glx-180/usr/lib + + #CUDA 32bit libs and links + install -m 0644 $(dirname)/usr/lib/libcuda.so.${version} \ + $(CURDIR)/debian/nvidia-glx-180/usr/lib + ln -s libcuda.so.${version} \ + $(CURDIR)/debian/nvidia-glx-180/usr/lib/libcuda.so; \ + ln -s libcuda.so.${version} \ + $(CURDIR)/debian/nvidia-glx-180/usr/lib/libcuda.so.1; \ + + #VDPAU 32bit libs and links + mkdir -p $(CURDIR)/debian/nvidia-180-libvdpau/usr/lib + install -m 0644 $(dirname)/usr/lib/libvdpau.so.${version} \ + $(CURDIR)/debian/nvidia-180-libvdpau/usr/lib + ln -s libvdpau.so.${version} \ + $(CURDIR)/debian/nvidia-180-libvdpau/usr/lib/libvdpau.so.1; \ + ln -s libvdpau.so.1 \ + $(CURDIR)/debian/nvidia-180-libvdpau/usr/lib/libvdpau.so; \ + + install -m 0644 $(dirname)/usr/lib/libvdpau_trace.so.${version} \ + $(CURDIR)/debian/nvidia-180-libvdpau/usr/lib + ln -s libvdpau_trace.so.${version} \ + $(CURDIR)/debian/nvidia-180-libvdpau/usr/lib/libvdpau_trace.so; \ + + install -m 0644 $(dirname)/usr/lib/libvdpau_nvidia.so.${version} \ + $(CURDIR)/debian/nvidia-180-libvdpau/usr/lib + ln -s libvdpau_nvidia.so.${version} \ + $(CURDIR)/debian/nvidia-180-libvdpau/usr/lib/libvdpau_nvidia.so; \ + + + + + sed "s/__GENERATED_BY__/Ubuntu nvidia-graphics-drivers-180/" $(dirname)/usr/lib/libGL.la | sed "s/__LIBGL_PATH__/\/usr\/lib/" > $(CURDIR)/debian/nvidia-glx-180-dev/usr/lib/libGL.la + # install -m 0644 $(dirname)/usr/lib/libGL.la $(CURDIR)/debian/nvidia-glx-180/usr/lib/libGL.la + + # TLS for 32bit + install $(dirname)/usr/lib/libnvidia-tls.so.${version} $(CURDIR)/debian/nvidia-glx-180/usr/lib/ + install $(dirname)/usr/lib/tls/libnvidia-tls.so.${version} $(CURDIR)/debian/nvidia-glx-180/usr/lib/tls/ + install $(dirname)/usr/bin/tls_test $(CURDIR)/debian/nvidia-glx-180/usr/lib/nvidia + install $(dirname)/usr/bin/tls_test_dso.so $(CURDIR)/debian/nvidia-glx-180/usr/lib/nvidia + + #sed "s/__GENERATED_BY__/Debian nvidia-graphics-drivers/" $(dirname)/usr/lib/tls/libGL.la | sed "s/__LIBGL_PATH__/\/usr\/lib\/tls/" > $(CURDIR)/debian/nvidia-glx-180-dev/usr/lib/nvidia/libGL.la + # install -m 0644 $(dirname)/usr/lib/tls/libGL.la $(CURDIR)/debian/nvidia-glx-180/usr/lib/nvidia/libGL.la + + install -m 0644 $(dirname)/usr/lib/libnvidia-cfg.so.${version} $(CURDIR)/debian/nvidia-glx-180/usr/lib/nvidia/ + + + install $(dirname)/usr/X11R6/lib/modules/extensions/libglx.so.${version} $(CURDIR)/debian/nvidia-glx-180/usr/lib/xorg/modules/extensions/ +# install $(dirname)/usr/X11R6/lib/modules/libnvidia-wfb.so.${version} $(CURDIR)/debian/nvidia-glx-180/usr/lib/xorg/modules/ + + install -d $(CURDIR)/debian/nvidia-glx-180/usr/share/lintian/overrides + install -m 0644 debian/nvidia-glx-180.override \ + $(CURDIR)/debian/nvidia-glx-180/usr/share/lintian/overrides/nvidia-glx-180 + + #the links for the 32bit compatibility libraries are set here + if [ "$(DEB_BUILD_ARCH)" = "amd64" ] ; then \ + install -d $(CURDIR)/debian/nvidia-glx-180/usr/lib32 \ + $(CURDIR)/debian/nvidia-glx-180-dev/usr/lib32; \ + install $(dirname)/usr/lib32/libGLcore.so.${version} \ + $(CURDIR)/debian/nvidia-glx-180/usr/lib32 ; \ + ln -s libGLcore.so.${version} \ + $(CURDIR)/debian/nvidia-glx-180/usr/lib32/libGLcore.so; \ + install $(dirname)/usr/lib32/libGL.so.${version} \ + $(CURDIR)/debian/nvidia-glx-180/usr/lib32 ; \ + ln -s libGL.so.${version} \ + $(CURDIR)/debian/nvidia-glx-180/usr/lib32/libGL.so; \ + ln -s libGL.so.${version} \ + $(CURDIR)/debian/nvidia-glx-180/usr/lib32/libGL.so.1; \ + sed "s/__GENERATED_BY__/Ubuntu nvidia-graphics-drivers/;s/__LIBGL_PATH__/\/usr\/lib32/" $(dirname)/usr/lib32/libGL.la | \ + > $(CURDIR)/debian/nvidia-glx-180-dev/usr/lib32/libGL.la ; \ + #CUDA \ + if [ -e $(dirname)/usr/lib32/libcuda.so.${version} ]; then \ + install $(dirname)/usr/lib32/libcuda.so.${version} \ + $(CURDIR)/debian/nvidia-glx-180/usr/lib32 ; \ + ln -s libcuda.so.${version} \ + $(CURDIR)/debian/nvidia-glx-180/usr/lib32/libcuda.so; \ + ln -s libcuda.so.${version} \ + $(CURDIR)/debian/nvidia-glx-180/usr/lib32/libcuda.so.1; \ + fi; \ + if [ -e $(dirname)/usr/lib32/libnvidia-cfg.so.${version} ]; then \ + install $(dirname)/usr/lib32/libnvidia-cfg.so.${version} \ + $(CURDIR)/debian/nvidia-glx-180/usr/lib32 ; \ + ln -s libnvidia-cfg.so.${version} \ + $(CURDIR)/debian/nvidia-glx-180/usr/lib32/libnvidia-cfg.so.1; \ + fi; \ + #VDPAU 32bit libs and links \ + if [ -e $(dirname)/usr/lib32/libvdpau.so.${version} ]; then \ + mkdir -p $(CURDIR)/debian/nvidia-180-libvdpau/usr/lib32/; \ + install -m 0644 $(dirname)/usr/lib32/libvdpau.so.${version} \ + $(CURDIR)/debian/nvidia-180-libvdpau/usr/lib32; \ + ln -s libvdpau.so.${version} \ + $(CURDIR)/debian/nvidia-180-libvdpau/usr/lib32/libvdpau.so.1; \ + ln -s libvdpau.so.1 \ + $(CURDIR)/debian/nvidia-180-libvdpau/usr/lib32/libvdpau.so; \ + fi; \ + if [ -e $(dirname)/usr/lib32/libvdpau_trace.so.${version} ]; then \ + mkdir -p $(CURDIR)/debian/nvidia-180-libvdpau/usr/lib32/; \ + install -m 0644 $(dirname)/usr/lib32/libvdpau_trace.so.${version} \ + $(CURDIR)/debian/nvidia-180-libvdpau/usr/lib32; \ + ln -s libvdpau_trace.so.${version} \ + $(CURDIR)/debian/nvidia-180-libvdpau/usr/lib32/libvdpau_trace.so; \ + fi; \ + if [ -e $(dirname)/usr/lib32/libvdpau_nvidia.so.${version} ]; then \ + mkdir -p $(CURDIR)/debian/nvidia-180-libvdpau/usr/lib32/; \ + install -m 0644 $(dirname)/usr/lib32/libvdpau_nvidia.so.${version} \ + $(CURDIR)/debian/nvidia-180-libvdpau/usr/lib32; \ + ln -s libvdpau_nvidia.so.${version} \ + $(CURDIR)/debian/nvidia-180-libvdpau/usr/lib32/libvdpau_nvidia.so; \ + fi; \ + #TLS \ + install $(dirname)/usr/lib32/libnvidia-tls.so.${version} \ + $(CURDIR)/debian/nvidia-glx-180/usr/lib32 ; \ + install $(dirname)/usr/lib32/tls/libnvidia-tls.so.${version} \ + $(CURDIR)/debian/nvidia-glx-180/usr/lib32/tls ; \ + ln -s libnvidia-tls.so.${version} \ + $(CURDIR)/debian/nvidia-glx-180/usr/lib32/libnvidia-tls.so.1; \ + fi + + + install -m 755 $(dirname)/usr/bin/nvidia-bug-report.sh $(CURDIR)/debian/nvidia-glx-180/usr/bin/ + # use separate package + install -m 755 $(dirname)/usr/bin/nvidia-xconfig $(CURDIR)/debian/nvidia-glx-180/usr/bin/ + if [ -e $(dirname)/usr/share/man/man1/nvidia-xconfig.1.gz ]; then \ + install -m 755 $(dirname)/usr/bin/nvidia-xconfig \ + $(CURDIR)/debian/nvidia-glx-180/usr/bin/ ; \ + install -m 644 $(dirname)/usr/share/man/man1/nvidia-xconfig.1.gz \ + $(CURDIR)/debian/nvidia-glx-180/usr/share/man/man1/ ; \ + fi + # use separate source package instead + #install -m 755 $(dirname)/usr/bin/nvidia-settings $(CURDIR)/debian/nvidia-settings/usr/bin/ + #install -m 644 $(dirname)/usr/share/doc/nvidia-settings-user-guide.txt $(CURDIR)/debian/nvidia-settings/usr/share/doc/nvidia-settings + + mkdir -p $(CURDIR)/debian/nvidia-glx-180/usr/share/pixmaps/ + install $(dirname)/usr/share/pixmaps/nvidia-settings.png $(CURDIR)/debian/nvidia-glx-180/usr/share/pixmaps/ + + mkdir -p $(CURDIR)/debian/nvidia-180-modaliases/usr/share/jockey/modaliases/ + + $(SHELL) $(CURDIR)/debian/nvidia_supported \ + $(dirname)/usr/src/nv/nv-kernel.o nvidia nvidia-glx-180 \ + > $(CURDIR)/debian/nvidia-180-modaliases/usr/share/jockey/modaliases/nvidia-180 + + install $(CURDIR)/script $(CURDIR)/debian/nvidia-glx-180/usr/share/bug/nvidia-glx-180 + + dh_install + + +# Must not depend on anything. This is to be called by +# binary-arch/binary-multi +# in another 'make' thread. +.PHONY: binary-common +binary-common: + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs -s + dh_installexamples +# dh_installmenu + dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime + dh_installinit +# dh_installcron +# dh_installinfo + dh_installman + dh_link +# dh_strip + dh_compress -X.h -X README.Debian + dh_fixperms +# dh_perl +# dh_python + dh_makeshlibs + dh_installdeb + dh_shlibdeps -Xlib32 -Xtls -l$(CURDIR)/debian/nvidia-glx-180/usr/lib + dh_shlibdeps -Xlib32 -Xtls -l$(CURDIR)/debian/nvidia-180-libvdpau/usr/lib + # quickhack! remove me :-/ + # as you wish + #perl -pi.bak -e 's/,\s+nvidia-glx-180-ia32//;' $(CURDIR)/debian/nvidia-glx-180.substvars + #dh_gencontrol -s + + # Exclude packages we handle special + dh_gencontrol -Nnvidia-glx-180 -Nnvidia-glx-180-dev -Nnvidia-180-kernel-source + + # build with different version numbers + dh_gencontrol -v -pnvidia-glx-180 -- -v$(pkgver) -Vnvidia:Version=$(version) + dh_gencontrol -v -pnvidia-glx-180-dev -- -v$(pkgver) -Vnvidia:Version=$(version) + dh_gencontrol -v -pnvidia-180-kernel-source -- -v$(pkgver) -Vnvidia:Version=$(version) + + dh_md5sums + dh_builddeb + + +%: %.in debian/upstream_info + perl -p \ + -e 's{#BASE_VERSION#}{$(base_version)}g;' \ + -e 's{#RELEASE#}{$(release)}g;' \ + -e 's{#VERSION#}{$(version)}g;' \ + -e 's{#NEXTVER#}{$(nextver)}g;' \ + -e 's{#UPSTREAMVERSION#}{$(upstreamversion)}g;' \ + -e 's{#DIRNAME#}{$(dirname)}g;' \ + -e 's{#FILENAME#}{$(filename)}g;' \ + -e 's{#URL#}{$(url)}g' \ + < $< > $@ + + +# Build architecture dependant packages using the common target. +.PHONY: binary-arch +binary-arch: build-stamp build-kernel-stamp install serverabi + $(MAKE) -f debian/rules binary-common + +.PHONY: binary +binary: binary-arch + +.PHONY: version-clean +version-clean: + rm -f ${AUTOGEN} || true + --- nvidia-graphics-drivers-180-180.37.orig/debian/nvidia-glx-180.shlibs +++ nvidia-graphics-drivers-180-180.37/debian/nvidia-glx-180.shlibs @@ -0,0 +1,4 @@ +libGL 1 libgl1-mesa | libgl1 +libGLcore 1 libgl1-mesa | libgl1 +libXvMCNVIDIA_dynamic 1 nvidia-glx +libnvidia-tls 1 nvidia-glx --- nvidia-graphics-drivers-180-180.37.orig/debian/nvidia-glx-180-dev.dirs +++ nvidia-graphics-drivers-180-180.37/debian/nvidia-glx-180-dev.dirs @@ -0,0 +1,4 @@ +usr/include/GL +usr/include/cuda +usr/include/vdpau +usr/lib/nvidia --- nvidia-graphics-drivers-180-180.37.orig/debian/nvidia-180-kernel-source.README.Debian +++ nvidia-graphics-drivers-180-180.37/debian/nvidia-180-kernel-source.README.Debian @@ -0,0 +1,171 @@ +nvidia-graphics-drivers for Debian +---------------------------------- + + +INTRODUCTION: +----------------------------------------------------------------------- + +Welcome to Debian NVIDIA packages. This document contains notes on the +kernel module interface for the NVIDIA driver offering. + + +KERNEL MODULE INSTRUCTIONS: +----------------------------------------------------------------------- + +There are TWO ways to build the nvidia-kernel package. Which one depends on +your situation with your kernel. + + METHOD #1: You are running a Debian suppiled kernel or built a + linux-headers package along with your own self-built kernel. + + METHOD #2: You are running your own self-built kernel built from kernel + source. + +*** An additional method is to use module-assistant +(e.g. module-assistant auto-install nvidia) +For more information on module-assistant, see it's man page and package +documentation, + +Which method you choose really depends on what kernel headers you wish to +use, those from a kernel-headers package or those from kernel +source (from which you built your own kernel). + +As mentioned above, if you are running a Debian supplied kernel you will +probably want to choose METHOD #1. If you compile your own kernels, METHOD #2. + + + +PRELIMINARY: +- Decide where you want to build your module. By default it +will build under /usr/src like other kernel modules but you may choose +to build it under your home directory as some people prefer and writing to +/usr violates the FHS. + + +SUPPORT FOR 2.6 KERNELS: +------------------------ +As of 1.0.5336-1, NVIDIA includes support for a 2.6 kernel. No extra steps are +required. + + +HOTPLUG SUPPORT: +------------------------ +As of version 1.0.5336-8 there is hotplug/udev module loading support provided. + + +METHOD #1 Using a linux-headers or kernel-headers package +*********************************************************************** + +As root (or using fakeroot) +1. cd /usr/src + tar xjvf nvidia-kernel.tar.bz2 -C + (It will install in /modules) + - or - + tar xjvf nvidia-kernel.tar.bz2 (if building in /usr/src) + + The standard build location is /usr/src + +2. Find out your kernel version: + + uname -r For example: 2.6.14-2-k7 + +3. Download and install package: linux-headers-2.6.14-2-k7 + It will install in /usr/src/ + Note that packages prior to 2.6.12 used the kernel- prefix rather than + linux- + + Make sure your kernel image and headers have matching release numbers to + avoid possible problems in packages built from different sources. + +4. Set some environment variables (if bash is your shell): + + export KSRC=/usr/src/linux-headers-2.6.14-2-k7 + export KVERS=2.6.14-2-k7 + +5. Then build nvidia-kernel package: + + cd /modules/nvidia-kernel + debian/rules binary_modules + +(You can also combine step 4 and 5 into one line: +KSRC=/usr/src/linux-headers-2.6.14-k7 KVERS=2.6.14-4-k7 debian/rules binary_modules) + +6. Install nvidia-kernel-common on the machine where the module will be +deployed: + + If not installed already + apt-get install nvidia-kernel-common + +7. Install the nvidia-kernel package: + + dpkg -i ../nvidia-kernel-2.6.14-2-k7_180.18-1+_.Custom_i386.deb + ( or similar filename ) + +Now see GENERAL NOTES below method #2 + +METHOD #2: Using your own kernel source headers +*********************************************************************** + +To build the nvidia-kernel deb you need to first make sure you have +kernel-package installed, then do the following: + +As root +1. cd /usr/src + tar xjvf nvidia-kernel.tar.bz2 -C + (It will install in /modules) + - or - + tar xjvf nvidia-kernel.tar.bz2 (if building in /usr/src) + +2. If you are NOT using the default modules location /usr/src/modules + then you must set an environment variable that points to your modules + location. + + export MODULE_LOC=/modules + + This is needed by make-kpkg which is used later. If + is /usr/src there is no need to set this. + +3. Build the modules under MODULE_LOC i.e. /modules + + cd linux (or your kernel source directory) + make-kpkg modules_image + +4. Install nvidia-kernel-common on the machine where the module will be +installed: + + apt-get install nvidia-kernel-common + +5. Install the nvidia-kernel package: + + cd (e.g. /usr/src) + dpkg -i nvidia-kernel-KVER*.deb + +Notes for method #2: + +- It is advised not to clean the kernel source tree between +"make-kpkg kernel_image" and "make-kpkg modules_image". + +- The Riva framebuffer is known to conflict with the nvidia X driver. If you +are using X it would be wise not to compile it in. The vesa framebuffer is +known to work in some cases, and not in others. (people have recently been +having problems with the vesa driver as well) + +GENERAL NOTES: + +Also you must add any users who wish to use OpenGL applications to the group +video. You can do this with: + + adduser username video + +Also note for AGP issues and further information please see the NVIDIA +README file (README.gz) in the nvidia-glx package + +An old nvidia.o might be already loaded (run 'lsmod' to check) so +do 'rmmod nvidia.o' to remove the module from memory. + + +For any news on this package check http://people.debian.org/~rdonald and +http://bugs.debian.org/nvidia-kernel-source + + + -- Randall Donald , Fri, 30 Apr 2004 19:02:04 -0700 --- nvidia-graphics-drivers-180-180.37.orig/debian/nvidia-glx-180.examples.in +++ nvidia-graphics-drivers-180-180.37/debian/nvidia-glx-180.examples.in @@ -0,0 +1,2 @@ +#DIRNAME#/usr/share/doc/XF86Config.sample + --- nvidia-graphics-drivers-180-180.37.orig/debian/nvidia-180-kernel-source.prerm +++ nvidia-graphics-drivers-180-180.37/debian/nvidia-180-kernel-source.prerm @@ -0,0 +1,20 @@ +#!/bin/sh +# Copyright (C) 2002-2005 Flavio Stanchina +# Copyright (C) 2005-2006 Aric Cyr +# Copyright (C) 2007 Mario Limonciello +# Copyright (C) 2007 Alberto Milone + +#DEBHELPER# + +PKGVER=`dpkg-query -W -f='${Version}' nvidia-180-kernel-source | awk -F "-" '{print $1}'` +PKGVER=${PKGVER#*:} + +case "$1" in + remove|upgrade) + echo "Removing all DKMS Modules" + dkms remove -m nvidia -v $PKGVER --all > /dev/null + echo "Done." + ;; +esac + + --- nvidia-graphics-drivers-180-180.37.orig/debian/copyright +++ nvidia-graphics-drivers-180-180.37/debian/copyright @@ -0,0 +1,191 @@ +This package was debianized by Randall Donald on +Mon, 31 Mar 2003 23:40:05 -0800. + +It was downloaded from +ftp://download.nvidia.com/XFree86/Linux-x86/180.18/NVIDIA-Linux-x86-180.18-pkg0.run + +Upstream Author: NVIDIA + + +Copyright: + +First a note from the README file + +Q: Why does NVIDIA not provide rpms anymore? + +A: Not every Linux distribution uses rpm, and NVIDIA wanted a single + solution that would work across all Linux distributions. As indicated + in the NVIDIA Software License, Linux distributions are welcome to + repackage and redistribute the NVIDIA Linux driver in whatever package + format they wish. + +Furthermore, an email from NVIDIA: + +Greetings, Randall! Comments below: + +On 30 Jul 2003, Randall Donald wrote: + +> To whom it may concern, +> +> My name is Randall Donald and I am the maintainer for the Debian +> downloader packages nvidia-glx-src and nvidia-kernel-src. +> As stated in your license and the README file +> ( "As indicated in the NVIDIA Software License, Linux distributions +> are welcome to repackage and redistribute the NVIDIA Linux driver in +> whatever package format they wish." ) +> I wish to include packages containing the Linux driver files in the Debian archive. +> I'd like to know if it is legally permitted to distribute binary kernel modules +> compiled from the NVIDIA kernel module source and Debian kernel headers. + +This is fine; thanks for asking. + +> I am also wondering if the "No Separation of Components" clause +> ( No Separation of Components. The SOFTWARE is licensed as a +> single product. Its component parts may not be separated for use +> on more than one computer, nor otherwise used separately from the +> other parts.) applies to splitting the glx driver and kernel module source into +> multiple binary packages. + +This is also fine. I believe this section of the license was +intended to prevent users from doing things like using our Windows +control panel with a competitor's display driver (that's not actually +possible, but you get the idea...). In the case of separating the +driver into a glx package and a kernel package (like we used to +do ourselves), this is simply a packaging issue; of course users +will use the packages together when they install. + +Please feel free to redistribute the NVIDIA graphics driver. + +Thank you for doing this for the NVIDIA+Debian community! + +- Andy + + + +The NVIDIA Software Licence is as follows. + +From http://www.nvidia.com/view.asp?IO=nv_swlicense and extracted from the +installer: + + + License For Customer Use of NVIDIA Software + + +IMPORTANT NOTICE -- READ CAREFULLY: This License For Customer Use of +NVIDIA Software ("LICENSE") is the agreement which governs use of +the software of NVIDIA Corporation and its subsidiaries ("NVIDIA") +downloadable herefrom, including computer software and associated +printed materials ("SOFTWARE"). By downloading, installing, copying, +or otherwise using the SOFTWARE, you agree to be bound by the terms +of this LICENSE. If you do not agree to the terms of this LICENSE, +do not download the SOFTWARE. + +RECITALS + +Use of NVIDIA's products requires three elements: the SOFTWARE, the +hardware on a graphics controller board, and a personal computer. The +SOFTWARE is protected by copyright laws and international copyright +treaties, as well as other intellectual property laws and treaties. +The SOFTWARE is not sold, and instead is only licensed for use, +strictly in accordance with this document. The hardware is protected +by various patents, and is sold, but this agreement does not cover +that sale, since it may not necessarily be sold as a package with +the SOFTWARE. This agreement sets forth the terms and conditions +of the SOFTWARE LICENSE only. + +1. DEFINITIONS + +1.1 Customer. Customer means the entity or individual that +downloads the SOFTWARE. + +2. GRANT OF LICENSE + +2.1 Rights and Limitations of Grant. NVIDIA hereby grants Customer +the following non-exclusive, non-transferable right to use the +SOFTWARE, with the following limitations: + +2.1.1 Rights. Customer may install and use one copy of the SOFTWARE +on a single computer, and except for making one back-up copy of +the Software, may not otherwise copy the SOFTWARE. This LICENSE +of SOFTWARE may not be shared or used concurrently on different +computers. + +2.1.2 Linux Exception. Notwithstanding the foregoing terms of +Section 2.1.1, SOFTWARE designed exclusively for use on the Linux +operating system may be copied and redistributed, provided that +the binary files thereof are not modified in any way (except for +unzipping of compressed files). + +2.1.3 Limitations. + +No Reverse Engineering. Customer may not reverse engineer, +decompile, or disassemble the SOFTWARE, nor attempt in any other +manner to obtain the source code. + +No Separation of Components. The SOFTWARE is licensed as a +single product. Its component parts may not be separated for use +on more than one computer, nor otherwise used separately from the +other parts. + +No Rental. Customer may not rent or lease the SOFTWARE to someone +else. + +3. TERMINATION + +This LICENSE will automatically terminate if Customer fails to +comply with any of the terms and conditions hereof. In such event, +Customer must destroy all copies of the SOFTWARE and all of its +component parts. + +4. COPYRIGHT + +All title and copyrights in and to the SOFTWARE (including but +not limited to all images, photographs, animations, video, audio, +music, text, and other information incorporated into the SOFTWARE), +the accompanying printed materials, and any copies of the SOFTWARE, +are owned by NVIDIA, or its suppliers. The SOFTWARE is protected +by copyright laws and international treaty provisions. Accordingly, +Customer is required to treat the SOFTWARE like any other copyrighted +material, except as otherwise allowed pursuant to this LICENSE +and that it may make one copy of the SOFTWARE solely for backup or +archive purposes. + +5. APPLICABLE LAW + +This agreement shall be deemed to have been made in, and shall be +construed pursuant to, the laws of the State of California. + +6. DISCLAIMER OF WARRANTIES AND LIMITATION ON LIABILITY + +6.1 No Warranties. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE +LAW, THE SOFTWARE IS PROVIDED "AS IS" AND NVIDIA AND ITS SUPPLIERS +DISCLAIM ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT +NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +FOR A PARTICULAR PURPOSE. + +6.2 No Liability for Consequential Damages. TO THE MAXIMUM +EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT SHALL NVIDIA OR +ITS SUPPLIERS BE LIABLE FOR ANY SPECIAL, INCIDENTAL, INDIRECT, OR +CONSEQUENTIAL DAMAGES WHATSOEVER (INCLUDING, WITHOUT LIMITATION, +DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS +OF BUSINESS INFORMATION, OR ANY OTHER PECUNIARY LOSS) ARISING OUT +OF THE USE OF OR INABILITY TO USE THE SOFTWARE, EVEN IF NVIDIA HAS +BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + +7. MISCELLANEOUS + +The United Nations Convention on Contracts for the International +Sale of Goods is specifically disclaimed. If any provision of this +LICENSE is inconsistent with, or cannot be fully enforced under, +the law, such provision will be construed as limited to the extent +necessary to be consistent with and fully enforceable under the law. +This agreement is the final, complete and exclusive agreement between +the parties relating to the subject matter hereof, and supersedes +all prior or contemporaneous understandings and agreements relating +to such subject matter, whether oral or written. Customer agrees +that it will not ship, transfer or export the SOFTWARE into any +country, or use the SOFTWARE in any manner, prohibited by the +United States Bureau of Export Administration or any export laws, +restrictions or regulations. This LICENSE may only be modified in +writing signed by an authorized officer of NVIDIA. + --- nvidia-graphics-drivers-180-180.37.orig/debian/nvidia-glx-180.override +++ nvidia-graphics-drivers-180-180.37/debian/nvidia-glx-180.override @@ -0,0 +1,13 @@ +nvidia-glx: library-not-linked-against-libc ./usr/lib/libGL.so.180.18 + +nvidia-glx: shared-lib-without-dependency-information ./usr/lib/libGLcore.so.180.18 + +nvidia-glx: library-not-linked-against-libc ./usr/lib/xorg/modules/extensions/libglx.so.180.18 + +nvidia-glx: shlib-with-non-pic-code usr/lib/libGL.so.180.18 +nvidia-glx: shlib-with-non-pic-code usr/lib/libGLcore.so.180.18 +nvidia-glx: shlib-with-non-pic-code usr/lib/xorg/modules/extensions/libglx.so.180.18 +nvidia-glx: shlib-with-non-pic-code usr/lib/libXvMCNVIDIA.so.180.18 + +nvidia-glx: non-dev-pkg-with-shlib-symlink usr/lib/libGL.so.180.18 usr/lib/libGL.so +nvidia-glx: non-dev-pkg-with-shlib-symlink usr/lib/xorg/modules/extensions/libglx.so.180.18 usr/lib/xorg/modules/extensions/libglx.so --- nvidia-graphics-drivers-180-180.37.orig/debian/nvidia-glx-180.NEWS +++ nvidia-graphics-drivers-180-180.37/debian/nvidia-glx-180.NEWS @@ -0,0 +1,27 @@ +nvidia-graphics-drivers (1.0.8174-1) unstable; urgency=low + + * LEGACY GPUs: If you have a TNT, TNT2, Vanta, GeForce 256, GeForce DDR, + Quadro, GeForce2 Pro, GeForce2 GTS, GeForce2 Ultra, GeForce2 Ti, Quadro2 Pro, + DO NOT INSTALL THIS RELEASE!!! They are no longer supported. + + -- Randall Donald Sat, 10 Dec 2005 00:01:32 -0800 + +nvidia-graphics-drivers (1.0.7667-2) unstable; urgency=low + + * LEGACY GPUs: If you have a TNT, TNT2, Vanta, GeForce 256, GeForce DDR, + Quadro, GeForce2 Pro, GeForce2 GTS, GeForce2 Ultra, GeForce2 Ti, Quadro2 Pro, + DO NOT INSTALL THIS RELEASE!!! Use the nvidia-glx-legacy, + nvidia-glx-legacy-dev, nvidia-kernel-source-legacy packages instead. + + -- Randall Donald Wed, 13 Jun 2005 00:01:32 -0700 + +nvidia-graphics-drivers (1.0.7664-1) experimental; urgency=low + + * LEGACY GPUs: If you have a TNT, TNT2, Vanta, GeForce 256, GeForce DDR, + Quadro, GeForce2 Pro, GeForce2 GTS, GeForce2 Ultra, GeForce2 Ti, Quadro2 Pro, + DO NOT INSTALL THIS RELEASE!!! NVIDIA will be supporting these cards in a + special legacy driver (as yet unreleased and not included in this package). + So if you have the one of the above listed GPUs, + remain with the 1.0.7174-3 release. + + -- Randall Donald Tue, 21 Jun 2005 00:01:32 -0700 --- nvidia-graphics-drivers-180-180.37.orig/debian/nvidia-glx-180.postrm.in +++ nvidia-graphics-drivers-180-180.37/debian/nvidia-glx-180.postrm.in @@ -0,0 +1,77 @@ +#! /bin/sh +# postrm script for nvidia-glx-180 +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' overwrit>r> +# for details, see /usr/share/doc/packaging-manual/ + +case "$1" in + remove|purge) + if [ "$(dpkg-divert --list /usr/lib/libGL.so.1 | awk '{ print $7 }')" = "nvidia-glx-180" ]; then + dpkg-divert --remove --rename --package nvidia-glx-180 --divert /usr/lib/nvidia/libGL.so.1.xlibmesa /usr/lib/libGL.so.1 > /dev/null + dpkg-divert --remove --rename --package nvidia-glx-180 --divert /usr/lib/nvidia/libGL.so.1.2.xlibmesa /usr/lib/libGL.so.1.2 > /dev/null + fi + if [ "$(dpkg-divert --list /usr/lib/xorg/modules/extensions/libGLcore.so | awk '{ print $7 }')" = "nvidia-glx-180" ]; then + dpkg-divert --remove --rename --package nvidia-glx-180 --divert /usr/lib/nvidia/libGLcore.so.xlibmesa /usr/lib/xorg/modules/extensions/libGLcore.so > /dev/null + fi + if [ "$(dpkg-divert --list /usr/lib/xorg/modules/extensions/libglx.so | awk '{ print $7 }')" = "nvidia-glx-180" ]; then + dpkg-divert --remove --rename --package nvidia-glx-180 --divert /usr/lib/nvidia/libglx.so.xserver-xorg-core /usr/lib/xorg/modules/extensions/libglx.so > /dev/null + fi + + if [ "$(dpkg-divert --list /usr/lib32/libGL.so | awk '{ print $7 }')" = "nvidia-glx-180" ]; then + rm -f /usr/lib32/libGL.so > /dev/null || true + dpkg-divert --remove --rename --package nvidia-glx-180 --divert /usr/lib32/nvidia/libGL.so.xlibmesa /usr/lib32/libGL.so > /dev/null + fi + + if [ "$(dpkg-divert --list /usr/lib32/libGL.so.1 | awk '{ print $7 }')" = "nvidia-glx-180" ]; then + rm -f /usr/lib32/libGL.so.1 > /dev/null || true + dpkg-divert --remove --rename --package nvidia-glx-180 --divert /usr/lib32/nvidia/libGL.so.1.xlibmesa /usr/lib32/libGL.so.1 > /dev/null + fi + if [ "$(dpkg-divert --list /usr/lib32/libGL.so.1.2 | awk '{ print $7 }')" = "nvidia-glx-180" ]; then + rm -f /usr/lib32/libGL.so.1.2 > /dev/null || true + dpkg-divert --remove --rename --package nvidia-glx-180 --divert /usr/lib32/nvidia/libGL.so.1.2.xlibmesa /usr/lib32/libGL.so.1.2 > /dev/null + fi + + rm -f /usr/lib/xorg/modules/extensions/libglx.so.#VERSION# 2> /dev/null || true + if [ -d /usr/lib/nvidia ]; then + rmdir /usr/lib/nvidia/ 2> /dev/null || true; + fi + if [ -d /usr/lib32/nvidia ]; then + rmdir /usr/lib32/nvidia 2> /dev/null || true; + fi + ldconfig + + ;; + + upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + + + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 0 + +esac + + +#rm -f /usr/lib/xorg/modules/extensions/libglx.so.#VERSION# 2> /dev/null || true + + + + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# --- nvidia-graphics-drivers-180-180.37.orig/debian/nvidia-glx-180-dev.preinst +++ nvidia-graphics-drivers-180-180.37/debian/nvidia-glx-180-dev.preinst @@ -0,0 +1,83 @@ +#! /bin/sh +# preinst script for nvidia-glx-180-dev +# +# see: dh_installdeb(1) + +set -e + +case "$1" in + install|upgrade) + # diversion transition + if [ -d /usr/share/nvidia-glx/diversions/ ] ; then + rm -f /usr/lib/libGL.so + rm -f /usr/lib/libGL.a + dpkg-divert --remove --rename --package nvidia-glx-dev --divert /usr/share/nvidia-glx/diversions/libGL.so /usr/lib/libGL.so > /dev/null + dpkg-divert --remove --rename --package nvidia-glx-dev --divert /usr/share/nvidia-glx/diversions/libGL.a /usr/lib/libGL.a > /dev/null + + rmdir /usr/share/nvidia-glx/diversions/ || true + rmdir /usr/share/nvidia-glx || true + fi + + if [ ! -d /usr/lib/nvidia ]; then + mkdir -p /usr/lib/nvidia || true + fi + +# to remove old old old gl header diversions + + + if [ -e /usr/share/nvidia-glx/diversions/gl.h ]; then + if [ -e /usr/include/GL/gl.h ]; then + rm -f /usr/include/GL/gl.h /usr/include/GL/glx.h /usr/include/GL/glxtokens.h + fi + dpkg-divert --remove --rename --package nvidia-glx-dev --divert /usr/share/nvidia-glx/diversions/gl.h /usr/include/GL/gl.h > /dev/null + dpkg-divert --remove --rename --package nvidia-glx-dev --divert /usr/share/nvidia-glx/diversions/glx.h /usr/include/GL/glx.h > /dev/null + dpkg-divert --remove --rename --package nvidia-glx-dev --divert /usr/share/nvidia-glx/diversions/glxext.h /usr/include/GL/glxext.h > /dev/null + fi + + # make sure these diversions don't exist anymore + if dpkg-divert --list /usr/lib/libGL.so | grep 'nvidia-glx-180-dev' > /dev/null ; then + dpkg-divert --remove --rename --package nvidia-glx-180-dev --divert /usr/lib/nvidia/libGL.so.xlibmesa /usr/lib/libGL.so > /dev/null + fi + if dpkg-divert --list /usr/lib/libGL.a | grep 'nvidia-glx-180-dev' > /dev/null ; then + dpkg-divert --remove --rename --package nvidia-glx-180-dev --divert /usr/lib/nvidia/libGL.a.xlibmesa /usr/lib/libGL.a > /dev/null + fi + if dpkg-divert --list /usr/X11R6/lib/libGL.so | grep 'nvidia-glx-180-dev' > /dev/null ; then + dpkg-divert --remove --rename --package nvidia-glx-180-dev --divert /usr/X11R6/lib/nvidia/libGL.so.xlibmesa /usr/X11R6/lib/libGL.so > /dev/null + fi + if dpkg-divert --list /usr/X11R6/lib/libGL.so | grep 'nvidia-glx-180-dev' > /dev/null ; then + dpkg-divert --remove --rename --package nvidia-glx-180-dev --divert /usr/X11R6/lib/nvidia/libGL.a.xlibmesa /usr/X11R6/lib/libGL.a > /dev/null + fi +# dpkg-divert --add --rename --package nvidia-glx-180-dev --divert /usr/lib/nvidia/libGL.so.xlibmesa /usr/lib/libGL.so > /dev/null +# dpkg-divert --add --rename --package nvidia-glx-180-dev --divert /usr/lib/nvidia/libGL.so.xlibmesa /usr/lib/libGL.so > /dev/null +# rm /usr/lib/libGL.so || true + +# ln -s /usr/lib/libGL.so.180.18 /usr/lib/libGL.so || true + + +# dpkg-divert --add --rename --package nvidia-glx-180-dev --divert /usr/lib/nvidia/libGL.a.xlibmesa /usr/lib/libGL.a > /dev/null + +# dpkg-divert --add --rename --package nvidia-glx-dev --divert /usr/share/nvidia-glx/diversions/gl.h /usr/include/GL/gl.h > /dev/null +# dpkg-divert --add --rename --package nvidia-glx-dev --divert /usr/share/nvidia-glx/diversions/glx.h /usr/include/GL/glx.h > /dev/null +# dpkg-divert --add --rename --package nvidia-glx-dev --divert /usr/share/nvidia-glx/diversions/glxtokens.h /usr/include/GL/glxtokens.h > /dev/null + +# dpkg-divert --add --rename --package nvidia-glx-dev --divert /usr/share/nvidia-glx/diversions/gl.h /usr/include/GL/gl.h > /dev/null +# dpkg-divert --add --rename --package nvidia-glx-dev --divert /usr/share/nvidia-glx/diversions/glx.h /usr/include/GL/glx.h > /dev/null +# dpkg-divert --add --rename --package nvidia-glx-dev --divert /usr/share/nvidia-glx/diversions/glxtokens.h /usr/include/GL/glxtokens.h > /dev/null + + ;; + + abort-upgrade) + ;; + + *) + echo "preinst called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- nvidia-graphics-drivers-180-180.37.orig/debian/nvidia-glx-180.postinst +++ nvidia-graphics-drivers-180-180.37/debian/nvidia-glx-180.postinst @@ -0,0 +1,63 @@ +#!/bin/sh + +set -e + +#make sure wfb diversion is removed +#dpkg-divert --rename --remove --package nvidia-glx --divert /usr/lib/nvidia/libwfb.so.xserver-xorg-core /usr/lib/xorg/modules/libwfb.so >/dev/null || true +#dpkg-divert --rename --remove --package nvidia-glx-new --divert /usr/lib/nvidia/libwfb.so.xserver-xorg-core /usr/lib/xorg/modules/libwfb.so >/dev/null || true +#dpkg-divert --rename --remove --package nvidia-glx-new-envy --divert /usr/lib/nvidia/libwfb.so.xserver-xorg-core /usr/lib/xorg/modules/libwfb.so >/dev/null || true + + + #Make sure that the diversion of /usr/lib/xorg/modules/extensions/libwfb.so is removed + if dpkg-divert --list 'nvidia-glx' | grep /usr/lib/xorg/modules/libwfb.so > /dev/null ; then + dpkg-divert --remove --rename --package nvidia-glx --divert /usr/lib/nvidia/libwfb.so.xserver-xorg-core /usr/lib/xorg/modules/libwfb.so > /dev/null || true + fi + + if dpkg-divert --list 'nvidia-glx-new' | grep /usr/lib/xorg/modules/libwfb.so > /dev/null ; then + dpkg-divert --remove --rename --package nvidia-glx-new --divert /usr/lib/nvidia/libwfb.so.xserver-xorg-core /usr/lib/xorg/modules/libwfb.so > /dev/null || true + fi + + if dpkg-divert --list 'nvidia-glx-legacy' | grep /usr/lib/xorg/modules/libwfb.so > /dev/null ; then + dpkg-divert --remove --rename --package nvidia-glx-legacy --divert /usr/lib/nvidia/libwfb.so.xserver-xorg-core /usr/lib/xorg/modules/libwfb.so > /dev/null || true + fi + + if dpkg-divert --list 'nvidia-glx-envy' | grep /usr/lib/xorg/modules/libwfb.so > /dev/null ; then + dpkg-divert --remove --rename --package nvidia-glx-envy --divert /usr/lib/nvidia/libwfb.so.xserver-xorg-core /usr/lib/xorg/modules/libwfb.so > /dev/null || true + fi + + if dpkg-divert --list 'nvidia-glx-new-envy' | grep /usr/lib/xorg/modules/libwfb.so > /dev/null ; then + dpkg-divert --remove --rename --package nvidia-glx-new-envy --divert /usr/lib/nvidia/libwfb.so.xserver-xorg-core /usr/lib/xorg/modules/libwfb.so > /dev/null || true + fi + + if dpkg-divert --list 'nvidia-glx-legacy-envy' | grep /usr/lib/xorg/modules/libwfb.so > /dev/null ; then + dpkg-divert --remove --rename --package nvidia-glx-legacy-envy --divert /usr/lib/nvidia/libwfb.so.xserver-xorg-core /usr/lib/xorg/modules/libwfb.so > /dev/null || true + fi + + + # create new diversion directories + if [ ! -d /usr/lib/nvidia ]; then + mkdir -p /usr/lib/nvidia || true + fi + if [ -n "$HAS_LIB32" ] && [ ! -d /usr/lib32/nvidia ]; then + mkdir -p /usr/lib32/nvidia || true + fi + + #Make sure that no /etc/init.d/nvidia-glx-* exists + rm -f /etc/init.d/nvidia-glx-* | true + + +# dpkg-divert --add --rename --package nvidia-glx --divert /usr/lib/nvidia/libwfb.so.xserver-xorg-core /usr/lib/xorg/modules/libwfb.so > /dev/null + + +#if [ -n "" ] && [ ! -e /lib/linux-restricted-modules/.nvidia__installed ]; then +# mkdir -p /lib/linux-restricted-modules +# echo "# do not remove this file, it's needed by /sbin/lrm-video" \ +# > /lib/linux-restricted-modules/.nvidia__installed +#fi + + +#DEBHELPER# + + + +ldconfig --- nvidia-graphics-drivers-180-180.37.orig/debian/nvidia-glx-180-dev.preinst.in +++ nvidia-graphics-drivers-180-180.37/debian/nvidia-glx-180-dev.preinst.in @@ -0,0 +1,83 @@ +#! /bin/sh +# preinst script for nvidia-glx-180-dev +# +# see: dh_installdeb(1) + +set -e + +case "$1" in + install|upgrade) + # diversion transition + if [ -d /usr/share/nvidia-glx/diversions/ ] ; then + rm -f /usr/lib/libGL.so + rm -f /usr/lib/libGL.a + dpkg-divert --remove --rename --package nvidia-glx-dev --divert /usr/share/nvidia-glx/diversions/libGL.so /usr/lib/libGL.so > /dev/null + dpkg-divert --remove --rename --package nvidia-glx-dev --divert /usr/share/nvidia-glx/diversions/libGL.a /usr/lib/libGL.a > /dev/null + + rmdir /usr/share/nvidia-glx/diversions/ || true + rmdir /usr/share/nvidia-glx || true + fi + + if [ ! -d /usr/lib/nvidia ]; then + mkdir -p /usr/lib/nvidia || true + fi + +# to remove old old old gl header diversions + + + if [ -e /usr/share/nvidia-glx/diversions/gl.h ]; then + if [ -e /usr/include/GL/gl.h ]; then + rm -f /usr/include/GL/gl.h /usr/include/GL/glx.h /usr/include/GL/glxtokens.h + fi + dpkg-divert --remove --rename --package nvidia-glx-dev --divert /usr/share/nvidia-glx/diversions/gl.h /usr/include/GL/gl.h > /dev/null + dpkg-divert --remove --rename --package nvidia-glx-dev --divert /usr/share/nvidia-glx/diversions/glx.h /usr/include/GL/glx.h > /dev/null + dpkg-divert --remove --rename --package nvidia-glx-dev --divert /usr/share/nvidia-glx/diversions/glxext.h /usr/include/GL/glxext.h > /dev/null + fi + + # make sure these diversions don't exist anymore + if dpkg-divert --list /usr/lib/libGL.so | grep 'nvidia-glx-180-dev' > /dev/null ; then + dpkg-divert --remove --rename --package nvidia-glx-180-dev --divert /usr/lib/nvidia/libGL.so.xlibmesa /usr/lib/libGL.so > /dev/null + fi + if dpkg-divert --list /usr/lib/libGL.a | grep 'nvidia-glx-180-dev' > /dev/null ; then + dpkg-divert --remove --rename --package nvidia-glx-180-dev --divert /usr/lib/nvidia/libGL.a.xlibmesa /usr/lib/libGL.a > /dev/null + fi + if dpkg-divert --list /usr/X11R6/lib/libGL.so | grep 'nvidia-glx-180-dev' > /dev/null ; then + dpkg-divert --remove --rename --package nvidia-glx-180-dev --divert /usr/X11R6/lib/nvidia/libGL.so.xlibmesa /usr/X11R6/lib/libGL.so > /dev/null + fi + if dpkg-divert --list /usr/X11R6/lib/libGL.so | grep 'nvidia-glx-180-dev' > /dev/null ; then + dpkg-divert --remove --rename --package nvidia-glx-180-dev --divert /usr/X11R6/lib/nvidia/libGL.a.xlibmesa /usr/X11R6/lib/libGL.a > /dev/null + fi + dpkg-divert --add --rename --package nvidia-glx-180-dev --divert /usr/lib/nvidia/libGL.so.xlibmesa /usr/lib/libGL.so > /dev/null +# dpkg-divert --add --rename --package nvidia-glx-180-dev --divert /usr/lib/nvidia/libGL.so.xlibmesa /usr/lib/libGL.so > /dev/null +# rm /usr/lib/libGL.so || true + +# ln -s /usr/lib/libGL.so.#VERSION# /usr/lib/libGL.so || true + + +# dpkg-divert --add --rename --package nvidia-glx-180-dev --divert /usr/lib/nvidia/libGL.a.xlibmesa /usr/lib/libGL.a > /dev/null + +# dpkg-divert --add --rename --package nvidia-glx-dev --divert /usr/share/nvidia-glx/diversions/gl.h /usr/include/GL/gl.h > /dev/null +# dpkg-divert --add --rename --package nvidia-glx-dev --divert /usr/share/nvidia-glx/diversions/glx.h /usr/include/GL/glx.h > /dev/null +# dpkg-divert --add --rename --package nvidia-glx-dev --divert /usr/share/nvidia-glx/diversions/glxtokens.h /usr/include/GL/glxtokens.h > /dev/null + +# dpkg-divert --add --rename --package nvidia-glx-dev --divert /usr/share/nvidia-glx/diversions/gl.h /usr/include/GL/gl.h > /dev/null +# dpkg-divert --add --rename --package nvidia-glx-dev --divert /usr/share/nvidia-glx/diversions/glx.h /usr/include/GL/glx.h > /dev/null +# dpkg-divert --add --rename --package nvidia-glx-dev --divert /usr/share/nvidia-glx/diversions/glxtokens.h /usr/include/GL/glxtokens.h > /dev/null + + ;; + + abort-upgrade) + ;; + + *) + echo "preinst called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- nvidia-graphics-drivers-180-180.37.orig/debian/nvidia-glx-180.links +++ nvidia-graphics-drivers-180-180.37/debian/nvidia-glx-180.links @@ -0,0 +1,10 @@ +usr/lib/libGL.so.180.18 usr/lib/libGL.so.1 +usr/lib/libGLcore.so.180.18 usr/lib/libGLcore.so.1 +usr/lib/libnvidia-cfg.so.180.18 usr/lib/libnvidia-cfg.so.1 +usr/lib/libnvidia-tls.so.180.18 usr/lib/libnvidia-tls.so.1 +usr/lib/xorg/modules/extensions/libglx.so.180.18 usr/lib/xorg/modules/extensions/libglx.so +usr/lib/libXvMCNVIDIA.so.180.18 usr/lib/libXvMCNVIDIA.so +usr/lib/libXvMCNVIDIA.so.180.18 usr/lib/libXvMCNVIDIA.so.1 +usr/lib/libXvMCNVIDIA.so.180.18 usr/lib/libXvMCNVIDIA_dynamic.so.1 +usr/lib/libcuda.so.180.18 usr/lib/libcuda.so +usr/lib/libcuda.so.180.18 usr/lib/libcuda.so.1 --- nvidia-graphics-drivers-180-180.37.orig/debian/nvidia-glx-180-dev.postinst +++ nvidia-graphics-drivers-180-180.37/debian/nvidia-glx-180-dev.postinst @@ -0,0 +1,11 @@ +#!/bin/sh + +set -e + + +case "$1" in + configure) + ;; +esac + +#DEBHELPER# --- nvidia-graphics-drivers-180-180.37.orig/debian/nvidia-180-kernel-source.README.Debian.in +++ nvidia-graphics-drivers-180-180.37/debian/nvidia-180-kernel-source.README.Debian.in @@ -0,0 +1,171 @@ +nvidia-graphics-drivers for Debian +---------------------------------- + + +INTRODUCTION: +----------------------------------------------------------------------- + +Welcome to Debian NVIDIA packages. This document contains notes on the +kernel module interface for the NVIDIA driver offering. + + +KERNEL MODULE INSTRUCTIONS: +----------------------------------------------------------------------- + +There are TWO ways to build the nvidia-kernel package. Which one depends on +your situation with your kernel. + + METHOD #1: You are running a Debian suppiled kernel or built a + linux-headers package along with your own self-built kernel. + + METHOD #2: You are running your own self-built kernel built from kernel + source. + +*** An additional method is to use module-assistant +(e.g. module-assistant auto-install nvidia) +For more information on module-assistant, see it's man page and package +documentation, + +Which method you choose really depends on what kernel headers you wish to +use, those from a kernel-headers package or those from kernel +source (from which you built your own kernel). + +As mentioned above, if you are running a Debian supplied kernel you will +probably want to choose METHOD #1. If you compile your own kernels, METHOD #2. + + + +PRELIMINARY: +- Decide where you want to build your module. By default it +will build under /usr/src like other kernel modules but you may choose +to build it under your home directory as some people prefer and writing to +/usr violates the FHS. + + +SUPPORT FOR 2.6 KERNELS: +------------------------ +As of 1.0.5336-1, NVIDIA includes support for a 2.6 kernel. No extra steps are +required. + + +HOTPLUG SUPPORT: +------------------------ +As of version 1.0.5336-8 there is hotplug/udev module loading support provided. + + +METHOD #1 Using a linux-headers or kernel-headers package +*********************************************************************** + +As root (or using fakeroot) +1. cd /usr/src + tar xjvf nvidia-kernel.tar.bz2 -C + (It will install in /modules) + - or - + tar xjvf nvidia-kernel.tar.bz2 (if building in /usr/src) + + The standard build location is /usr/src + +2. Find out your kernel version: + + uname -r For example: 2.6.14-2-k7 + +3. Download and install package: linux-headers-2.6.14-2-k7 + It will install in /usr/src/ + Note that packages prior to 2.6.12 used the kernel- prefix rather than + linux- + + Make sure your kernel image and headers have matching release numbers to + avoid possible problems in packages built from different sources. + +4. Set some environment variables (if bash is your shell): + + export KSRC=/usr/src/linux-headers-2.6.14-2-k7 + export KVERS=2.6.14-2-k7 + +5. Then build nvidia-kernel package: + + cd /modules/nvidia-kernel + debian/rules binary_modules + +(You can also combine step 4 and 5 into one line: +KSRC=/usr/src/linux-headers-2.6.14-k7 KVERS=2.6.14-4-k7 debian/rules binary_modules) + +6. Install nvidia-kernel-common on the machine where the module will be +deployed: + + If not installed already + apt-get install nvidia-kernel-common + +7. Install the nvidia-kernel package: + + dpkg -i ../nvidia-kernel-2.6.14-2-k7_#VERSION#-1+_.Custom_i386.deb + ( or similar filename ) + +Now see GENERAL NOTES below method #2 + +METHOD #2: Using your own kernel source headers +*********************************************************************** + +To build the nvidia-kernel deb you need to first make sure you have +kernel-package installed, then do the following: + +As root +1. cd /usr/src + tar xjvf nvidia-kernel.tar.bz2 -C + (It will install in /modules) + - or - + tar xjvf nvidia-kernel.tar.bz2 (if building in /usr/src) + +2. If you are NOT using the default modules location /usr/src/modules + then you must set an environment variable that points to your modules + location. + + export MODULE_LOC=/modules + + This is needed by make-kpkg which is used later. If + is /usr/src there is no need to set this. + +3. Build the modules under MODULE_LOC i.e. /modules + + cd linux (or your kernel source directory) + make-kpkg modules_image + +4. Install nvidia-kernel-common on the machine where the module will be +installed: + + apt-get install nvidia-kernel-common + +5. Install the nvidia-kernel package: + + cd (e.g. /usr/src) + dpkg -i nvidia-kernel-KVER*.deb + +Notes for method #2: + +- It is advised not to clean the kernel source tree between +"make-kpkg kernel_image" and "make-kpkg modules_image". + +- The Riva framebuffer is known to conflict with the nvidia X driver. If you +are using X it would be wise not to compile it in. The vesa framebuffer is +known to work in some cases, and not in others. (people have recently been +having problems with the vesa driver as well) + +GENERAL NOTES: + +Also you must add any users who wish to use OpenGL applications to the group +video. You can do this with: + + adduser username video + +Also note for AGP issues and further information please see the NVIDIA +README file (README.gz) in the nvidia-glx package + +An old nvidia.o might be already loaded (run 'lsmod' to check) so +do 'rmmod nvidia.o' to remove the module from memory. + + +For any news on this package check http://people.debian.org/~rdonald and +http://bugs.debian.org/nvidia-kernel-source + + + -- Randall Donald , Fri, 30 Apr 2004 19:02:04 -0700 --- nvidia-graphics-drivers-180-180.37.orig/debian/nvidia-glx-180.docs.in +++ nvidia-graphics-drivers-180-180.37/debian/nvidia-glx-180.docs.in @@ -0,0 +1,2 @@ +#DIRNAME#/usr/share/doc/NVIDIA_Changelog +#DIRNAME#/usr/share/doc/README.txt --- nvidia-graphics-drivers-180-180.37.orig/debian/control +++ nvidia-graphics-drivers-180-180.37/debian/control @@ -0,0 +1,156 @@ +Source: nvidia-graphics-drivers-180 +Section: restricted/misc +Priority: optional +Maintainer: Ubuntu Core Developers +XSBC-Original-Maintainer: Debian NVIDIA Maintainers +Uploaders: Randall Donald +XS-Vcs-Svn: svn://svn.debian.org/svn/pkg-nvidia/packages/nvidia-graphics-drivers +XS-Vcs-Browser: http://svn.debian.org/wsvn/pkg-nvidia/packages/nvidia-graphics-drivers +Build-Depends: debhelper (>> 4.0.0), sed (>> 3.0), libxext6, bzip2, xserver-xorg-dev (>= 2:1.4) +Standards-Version: 3.8.0 + +Package: nvidia-glx-180 +Architecture: i386 amd64 +Depends: nvidia-180-kernel-source (>= 180.22), nvidia-180-libvdpau (>= 180.22), x11-common (>= 1:7.0.0), ${shlibs:Depends} +Recommends: nvidia-settings +Conflicts: nvidia-glx-src, nvidia-glx, xorg-driver-fglrx +Provides: ${xviddriver:Provides}, nvidia-glx +Replaces: nvidia-glx-src, nvidia-glx, nvidia-glx-new, nvidia-glx-legacy, + nvidia-glx-envy, nvidia-glx-new-envy, nvidia-glx-legacy-envy, + nvidia-glx-180, nvidia-glx-177, nvidia-glx-173, nvidia-glx-96, nvidia-glx-71 +Description: NVIDIA binary Xorg driver + These binary drivers provide optimized hardware + acceleration of OpenGL applications via a direct-rendering X Server. + AGP, PCIe, SLI, TV-out and flat panel displays are also supported. + . + Please see the nvidia-180-kernel-source package for building the kernel module + required by this package. This will provide nvidia-kernel- + . + The following GPUs are supported: + GeForce 6800 Ultra, GeForce 6800, GeForce 6800 LE, GeForce + 6800 XE, GeForce 6800 XT, GeForce 6800 GT, GeForce 6800 GT, + GeForce 6800 GS, GeForce 6800 XT, GeForce 7800 GTX, GeForce + 7800 GTX, GeForce 7800 GT, GeForce 7800 GS, GeForce 7800 SLI + , GeForce Go 7800, GeForce Go 7800 GTX, GeForce 6800 GS, GeF + orce 6800, GeForce 6800 LE, GeForce 6800 XT, GeForce Go 6800 + , GeForce Go 6800 Ultra, GeForce 6800, GeForce 6600 GT, GeFo + rce 6600, GeForce 6200, GeForce 6600 LE, GeForce 7800 GS, Ge + Force 6800 GS, GeForce 6800 Ultra, GeForce 6600 GT, GeForce + 6600, GeForce 6600 LE, GeForce 6600 VE, GeForce Go 6600, GeF + orce 6610 XL, GeForce Go 6600 TE/6200 TE, GeForce 6700 XL, G + eForce Go 6600, GeForce Go 6600 GT, GeForce 6200, GeForce 65 + 00, GeForce 6200 TurboCache(TM), GeForce 6200SE TurboCache(T + M), GeForce 6200 LE, GeForce Go 6200, GeForce Go 6400, GeFor + ce Go 6200, GeForce Go 6400, GeForce 6250, GeForce 7100 GS, + GeForce 8800 GTX, GeForce 8800 GTS, GeForce 8800 Ultra, Tesl + a C870, GeForce 7350 LE, GeForce 7300 LE, GeForce 7300 SE/72 + 00 GS, GeForce Go 7200, GeForce Go 7300, GeForce Go 7400, Ge + Force 7500 LE, GeForce 7300 GS, GeForce 6800, GeForce 6800 L + E, GeForce 6800 GT, GeForce 6800 XT, GeForce 6200, GeForce 6 + 200 A-LE, GeForce 6150, GeForce 6150 LE, GeForce 6100, GeFor + ce Go 6150, GeForce Go 6100, GeForce 7900 GTX, GeForce 7900 + GT/GTO, GeForce 7900 GS, GeForce 7950 GX2, GeForce 7950 GX2, + GeForce 7950 GT, GeForce Go 7950 GTX, GeForce Go 7900 GS, G + eForce Go 7900 GTX, GeForce 7600 GT, GeForce 7600 GS, GeForc + e 7900 GS, GeForce 7950 GT, GeForce 7650 GS, GeForce 7600 GT + , GeForce 7600 GS, GeForce 7300 GT, GeForce 7600 LE, GeForce + 7300 GT, GeForce Go 7600, GeForce Go 7600 GT, GeForce 6150S + E nForce 430, GeForce 6100 nForce 405, GeForce 6100 nForce 4 + 00, GeForce 6100 nForce 420, GeForce 8600 GTS, GeForce 8600 + GT, GeForce 8600 GT, GeForce 8400 GS, GeForce 9500M GS, GeFo + rce 8600M GT, GeForce 8700M GT, GeForce 8400 SE, GeForce 850 + 0 GT, GeForce 8400 GS, GeForce 8300 GS, GeForce 8400 GS, GeF + orce 8600M GS, GeForce 8400M GT, GeForce 8400M GS, GeForce 8 + 400M G, GeForce 9400 GT, GeForce 7150M / nForce 630M, GeForc + e 7000M / nForce 610M, GeForce 7050 PV / NVIDIA nForce 630a, + GeForce 7050 PV / NVIDIA nForce 630a, GeForce 7025 / NVIDIA + nForce 630a, GeForce GTX 280, GeForce GTX 260, GeForce 8800 + GTS 512, GeForce 8800 GT, GeForce 9800 GX2, GeForce 8800 GS + , GeForce 8800M GTS, GeForce 8800M GTX, GeForce 8800 GS, GeF + orce 9600 GSO, GeForce 8800 GT, GeForce 9800 GTX, GeForce 96 + 00 GT, GeForce 9600 GS, GeForce 9800M GTS, GeForce 9800M GTS + , GeForce 9600M GT, GeForce 9600M GS, GeForce 9500M G, GeFor + ce 9300 GS, GeForce 8400 GS, GeForce 9300M GS, GeForce 7150 + / NVIDIA nForce 630i, GeForce 7100 / NVIDIA nForce 630i, GeF + orce 7050 / NVIDIA nForce 610i, GeForce 8300, GeForce 8200, + nForce 730a, GeForce 8200, GeForce 8100 / nForce 720a, Quadr + o FX 4000, Quadro FX 4500, Quadro FX Go1400, Quadro FX 3450/ + 4000 SDI, Quadro FX 1400, Quadro FX 4400/Quadro FX 3400, Qua + dro NVS 440, Quadro FX 540M, Quadro FX 550, Quadro FX 540, Q + uadro NVS 285, Quadro FX 5600, Quadro FX 4600, Quadro NVS 11 + 0M, Quadro NVS 110M, Quadro NVS 120M, Quadro FX 350M, Quadro + FX 350, Quadro NVS 210S / NVIDIA GeForce 6150LE, Quadro FX + 2500M, Quadro FX 1500M, Quadro FX 5500, Quadro FX 3500, Quad + ro FX 1500, Quadro FX 4500 X2, Quadro FX 560, Quadro FX 370, + Quadro NVS 320M, Quadro FX 570M, Quadro FX 1600M, Quadro FX + 570, Quadro FX 1700, Quadro NVS 140M, Quadro NVS 130M, Quad + ro NVS 135M, Quadro FX 360M, Quadro NVS 290, Quadro FX 3700, + Quadro FX 3600M + . + See /usr/share/doc/nvidia-glx/README.txt.gz for a complete list + of supported GPUs and PCIIDs + . + +Package: nvidia-glx-180-dev +Architecture: i386 amd64 +Depends: nvidia-glx-180 (>= 180.22) +Provides: libgl-dev, libgl1-mesa-dev, mesa-common-dev, nvidia-glx-dev +Conflicts: nvidia-glx-180 (>= 180.19), libgl-dev, libgl1-mesa-dev, + mesa-common-dev, nvidia-glx-dev, nvidia-glx-dev-new, nvidia-glx-dev-legacy +Replaces: libgl-dev, libgl1-mesa-dev, mesa-common-dev, nvidia-glx-dev-new, + nvidia-glx-dev, nvidia-glx-dev-legacy, nvidia-glx-lrm-dev, nvidia-glx-180-dev, + nvidia-glx-177-dev, nvidia-glx-173-dev, nvidia-glx-96-dev, nvidia-glx-71-dev, + nvidia-glx-dev-new-envy, nvidia-glx-dev-envy, nvidia-glx-dev-legacy-envy +Description: NVIDIA binary Xorg driver development files + This package contains the NVIDIA binary Xorg driver + development files. + . + For more information on this source package visit NVIDIA's homepage + at http://www.nvidia.com/ . + +Package: nvidia-180-kernel-source +Architecture: i386 amd64 +Depends: make, sed (>> 3.0), dkms, linux-libc-dev, libc6-dev, linux-headers-generic | linux-headers +Recommends: nvidia-glx-180 (>= 180.22) +Provides: nvidia-kernel-source +Conflicts: nvidia-kernel-src, nvidia-kernel-source +Replaces: nvidia-kernel-src, nvidia-180-kernel-source, + nvidia-177-kernel-source, nvidia-173-kernel-source, nvidia-96-kernel-source, + nvidia-71-kernel-source, nvidia-kernel-source, nvidia-new-kernel-source, + nvidia-legacy-kernel-source, nvidia-kernel-source-envy, + nvidia-new-kernel-source-envy, nvidia-legacy-kernel-source-envy +Description: NVIDIA binary kernel module source + This package builds the NVIDIA Xorg binary kernel module + needed by nvidia-glx. The drivers provide optimized hardware acceleration + of OpenGL applications via a direct-rendering X Server AGP, + PCIe, SLI, TV-out, and flat panel displays are also supported. + . + PLEASE read /usr/share/doc/nvidia-kernel-source/README.Debian for building + information. + . + +Package: nvidia-180-modaliases +Architecture: i386 amd64 +Description: Modaliases for the NVIDIA binary X.Org driver + The modaliases provide a list of pci id's which makes it possible to + detect the model of a graphic card. + +Package: nvidia-180-libvdpau +Architecture: i386 amd64 +Replaces: nvidia-glx-177, nvidia-glx-180 (<= 180.22) +Description: Video Decode and Presentation API for Unix + This library provides NVIDIA's implementation of the Video Decode + and presentation API. It provides acceleration for NVIDIA 7 and later + series cards for h264 video. + +Package: nvidia-180-libvdpau-dev +Architecture: all +Depends: nvidia-180-libvdpau (>=180.22) +Replaces: nvidia-glx-180-dev (<= 180.22) +Description: Video Decode and Presentation API for Unix + This library provides NVIDIA's implementation of the Video Decode + and presentation API. It provides acceleration for NVIDIA 7 and later + series cards for h264 video. + . + This provides the necessary headers for applications to enable VDPAU + support. --- nvidia-graphics-drivers-180-180.37.orig/debian/nvidia-glx-180-dev.links +++ nvidia-graphics-drivers-180-180.37/debian/nvidia-glx-180-dev.links @@ -0,0 +1,2 @@ +usr/lib/libGL.so.180.18 usr/lib/libGL.so +usr/share/nvidia/include /usr/share/doc/nvidia-glx-180-dev/include --- nvidia-graphics-drivers-180-180.37.orig/debian/nvidia-glx-180.preinst +++ nvidia-graphics-drivers-180-180.37/debian/nvidia-glx-180.preinst @@ -0,0 +1,207 @@ +#! /bin/sh +# preinst script for nvidia-glx-180 +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `install' +# * `install' +# * `upgrade' +# * `abort-upgrade' +# +# For details see /usr/share/doc/packaging-manual/ + +if [ `dpkg --print-installation-architecture` = "amd64" ]; then + HAS_LIB32="yes" +fi + +case "$1" in + install|upgrade) + + # clean up from old diversions + if [ -d /usr/share/nvidia-glx/diversions ]; then + rm -f /usr/lib/libGL.so.1 + rm -f /usr/lib/libGL.so.1.2 + + dpkg-divert --remove --rename --package nvidia-glx --divert /usr/share/nvidia-glx/diversions/libGL.so.1 /usr/lib/libGL.so.1 > /dev/null + dpkg-divert --remove --rename --package nvidia-glx --divert /usr/share/nvidia-glx/diversions/libGL.so.1.2 /usr/lib/libGL.so.1.2 > /dev/null + + rm -f /usr/lib/xorg/modules/extensions/libGLcore.a + rm -f /usr/lib/xorg/modules/extensions/libglx.a + dpkg-divert --remove --rename --package nvidia-glx --divert /usr/share/nvidia-glx/diversions/libGLcore.a /usr/lib/xorg/modules/extensions/libGLcore.a > /dev/null + dpkg-divert --remove --rename --package nvidia-glx --divert /usr/share/nvidia-glx/diversions/libglx.a /usr/lib/xorg/modules/extensions/libglx.a > /dev/null + + rmdir /usr/share/nvidia-glx/diversions || true; + rmdir /usr/share/nvidia-glx || true; + fi + + if [ -d /usr/share/nvidia-glx/diversions-X11R6 ]; then + + rm -f /usr/X11R6/lib/libGL.so.1 + rm -f /usr/X11R6/lib/libGL.so.1.2 + + dpkg-divert --remove --rename --package nvidia-glx --divert /usr/share/nvidia-glx/diversions-X11R6/libGL.so.1 /usr/X11R6/lib/libGL.so.1 > /dev/null + dpkg-divert --remove --rename --package nvidia-glx --divert /usr/share/nvidia-glx/diversions-X11R6/libGL.so.1.2 /usr/X11R6/lib/libGL.so.1.2 > /dev/null + + rmdir /usr/share/nvidia-glx/diversions-X11R6 || true; + rmdir /usr/share/nvidia-glx || true; + fi + # remove X11R6 diversions + + if dpkg-divert --list /usr/X11R6/lib/libGL.so.1 | grep 'nvidia-glx' > /dev/null ; then + dpkg-divert --remove --rename --package nvidia-glx --divert /usr/X11R6/lib/nvidia/libGL.so.1.xlibmesa /usr/X11R6/lib/libGL.so.1 > /dev/null + fi + + if dpkg-divert --list /usr/X11R6/lib/libGL.so.1.2 | grep 'nvidia-glx' > /dev/null ; then + dpkg-divert --remove --rename --package nvidia-glx --divert /usr/X11R6/lib/nvidia/libGL.so.1.2.xlibmesa /usr/X11R6/lib/libGL.so.1.2 > /dev/null + fi + if dpkg-divert --list /usr/X11R6/lib/modules/extensions/libGLcore.a | grep 'nvidia-glx' > /dev/null ; then + dpkg-divert --remove --rename --package nvidia-glx --divert /usr/X11R6/lib/nvidia/libGLcore.a.xlibmesa /usr/X11R6/lib/modules/extensions/libGLcore.a > /dev/null + fi + if dpkg-divert --list /usr/X11R6/lib/modules/extensions/libglx.a | grep 'nvidia-glx' > /dev/null ; then + dpkg-divert --remove --rename --package nvidia-glx --divert /usr/X11R6/lib/nvidia/libglx.a.xlibmesa /usr/X11R6/lib/modules/extensions/libglx.a > /dev/null + fi + if dpkg-divert --list /usr/X11R6/lib/modules/extensions/libglx.so | grep 'nvidia-glx' > /dev/null ; then + dpkg-divert --remove --rename --package nvidia-glx --divert /usr/X11R6/lib/nvidia/libglx.so.xlibmesa /usr/X11R6/lib/modules/extensions/libglx.so > /dev/null + fi + + # make sure these diversions don't exist anymore + if dpkg-divert --list /usr/lib/libGL.so | grep 'nvidia-glx-dev' > /dev/null ; then + dpkg-divert --remove --rename --package nvidia-glx-dev --divert /usr/lib/nvidia/libGL.so.xlibmesa /usr/lib/libGL.so > /dev/null || true + dpkg-divert --remove --rename --package nvidia-glx-dev-envy --divert /usr/lib/nvidia/libGL.so.xlibmesa /usr/lib/libGL.so > /dev/null || true + fi + if dpkg-divert --list /usr/lib/libGL.so | grep 'nvidia-glx-177-dev' > /dev/null ; then + dpkg-divert --remove --rename --package nvidia-glx-177-dev --divert /usr/lib/nvidia/libGL.so.xlibmesa /usr/lib/libGL.so > /dev/null || true + fi + if dpkg-divert --list /usr/lib/libGL.so | grep 'nvidia-glx-new-dev' > /dev/null ; then + dpkg-divert --remove --rename --package nvidia-glx-new-dev --divert /usr/lib/nvidia/libGL.so.xlibmesa /usr/lib/libGL.so > /dev/null || true + dpkg-divert --remove --rename --package nvidia-glx-new-dev-envy --divert /usr/lib/nvidia/libGL.so.xlibmesa /usr/lib/libGL.so > /dev/null || true + fi + if dpkg-divert --list /usr/lib/libGL.a | grep 'nvidia-glx-dev' > /dev/null ; then + dpkg-divert --remove --rename --package nvidia-glx-dev --divert /usr/lib/nvidia/libGL.a.xlibmesa /usr/lib/libGL.a > /dev/null || true + dpkg-divert --remove --rename --package nvidia-glx-dev-envy --divert /usr/lib/nvidia/libGL.a.xlibmesa /usr/lib/libGL.a > /dev/null || true + fi + if dpkg-divert --list /usr/lib/libGL.a | grep 'nvidia-glx-new-dev' > /dev/null ; then + dpkg-divert --remove --rename --package nvidia-glx-new-dev --divert /usr/lib/nvidia/libGL.a.xlibmesa /usr/lib/libGL.a > /dev/null || true + dpkg-divert --remove --rename --package nvidia-glx-new-dev-envy --divert /usr/lib/nvidia/libGL.a.xlibmesa /usr/lib/libGL.a > /dev/null || true + fi + if dpkg-divert --list /usr/X11R6/lib/libGL.so | grep 'nvidia-glx-dev' > /dev/null ; then + dpkg-divert --remove --rename --package nvidia-glx-dev --divert /usr/X11R6/lib/nvidia/libGL.so.xlibmesa /usr/X11R6/lib/libGL.so > /dev/null || true + dpkg-divert --remove --rename --package nvidia-glx-dev-envy --divert /usr/X11R6/lib/nvidia/libGL.so.xlibmesa /usr/X11R6/lib/libGL.so > /dev/null || true + fi + if dpkg-divert --list /usr/X11R6/lib/libGL.so | grep 'nvidia-glx-new-dev' > /dev/null ; then + dpkg-divert --remove --rename --package nvidia-glx-new-dev --divert /usr/X11R6/lib/nvidia/libGL.so.xlibmesa /usr/X11R6/lib/libGL.so > /dev/null || true + dpkg-divert --remove --rename --package nvidia-glx-new-dev-envy --divert /usr/X11R6/lib/nvidia/libGL.so.xlibmesa /usr/X11R6/lib/libGL.so > /dev/null || true + fi + if dpkg-divert --list /usr/X11R6/lib/libGL.so | grep 'nvidia-glx-dev' > /dev/null ; then + dpkg-divert --remove --rename --package nvidia-glx-dev --divert /usr/X11R6/lib/nvidia/libGL.a.xlibmesa /usr/X11R6/lib/libGL.a > /dev/null || true + dpkg-divert --remove --rename --package nvidia-glx-dev-envy --divert /usr/X11R6/lib/nvidia/libGL.a.xlibmesa /usr/X11R6/lib/libGL.a > /dev/null || true + fi + if dpkg-divert --list /usr/X11R6/lib/libGL.so | grep 'nvidia-glx-new-dev' > /dev/null ; then + dpkg-divert --remove --rename --package nvidia-glx-new-dev --divert /usr/X11R6/lib/nvidia/libGL.a.xlibmesa /usr/X11R6/lib/libGL.a > /dev/null || true + dpkg-divert --remove --rename --package nvidia-glx-new-dev-envy --divert /usr/X11R6/lib/nvidia/libGL.a.xlibmesa /usr/X11R6/lib/libGL.a > /dev/null || true + fi + + + # Make sure that the new diversions are not there: + # NOTE: if a new driver is added it will have to be added here + set -a "nvidia-glx" "nvidia-glx-new" "nvidia-glx-legacy" "nvidia-glx-envy"\ + "nvidia-glx-new-envy" "nvidia-glx-legacy-envy" "nvidia-glx-180" \ + "nvidia-glx-177" "nvidia-glx-173" "nvidia-glx-96" "nvidia-glx-71" + + while [ $# -ge 1 ]; do + glxname=$1 + glxdevname="$glxname-dev" + + if [ -n "$HAS_LIB32" ]; then + #Remove diversions of /usr/lib32/libGL.so -- only for the new name schemes (nvidia-glx-VER) + if dpkg-divert --list $glxname | grep /usr/lib32/libGL.so > /dev/null ; then + rm -f /usr/lib32/libGL.so > /dev/null || true + dpkg-divert --remove --rename --package $glxname --divert /usr/lib32/nvidia/libGL.so.xlibmesa /usr/lib32/libGL.so > /dev/null || true + fi + + #Remove diversion of /usr/lib32/libGL.so.1 + if dpkg-divert --list $glxname | grep /usr/lib32/libGL.so.1 > /dev/null ; then + rm -f /usr/lib32/libGL.so.1 > /dev/null || true + dpkg-divert --remove --rename --package $glxname --divert /usr/lib32/nvidia/libGL.so.1.xlibmesa /usr/lib32/libGL.so.1 > /dev/null || true + fi + + #Remove diversion of /usr/lib32/libGL.so.1.2 + if dpkg-divert --list $glxname | grep /usr/lib32/libGL.so.1.2 > /dev/null ; then + rm -f /usr/lib32/libGL.so.1.2 > /dev/null || true + dpkg-divert --remove --rename --package $glxname --divert /usr/lib32/nvidia/libGL.so.1.2.xlibmesa /usr/lib32/libGL.so.1.2 > /dev/null || true + fi + + fi + + + #Remove diversion of /usr/lib/xorg/modules/extensions/libGLcore.so + if dpkg-divert --list $glxname | grep /usr/lib/xorg/modules/extensions/libGLcore.so > /dev/null ; then + dpkg-divert --remove --rename --package $glxname --divert /usr/lib/nvidia/libGLcore.so.xlibmesa /usr/lib/xorg/modules/extensions/libGLcore.so > /dev/null || true + fi + + #Remove diversion of /usr/lib/xorg/modules/extensions/libglx.so + if dpkg-divert --list $glxname | grep /usr/lib/xorg/modules/extensions/libglx.so > /dev/null ; then + rm -f /usr/lib/xorg/modules/extensions/libglx.so > /dev/null || true + dpkg-divert --remove --rename --package $glxname --divert /usr/lib/nvidia/libglx.so.xserver-xorg-core /usr/lib/xorg/modules/extensions/libglx.so > /dev/null || true + fi + + #Remove diversion of /usr/lib/libGL.so.1 + if dpkg-divert --list $glxname | grep /usr/lib/libGL.so.1 > /dev/null ; then + rm -f /usr/lib/libGL.so.1 > /dev/null || true + dpkg-divert --remove --rename --package $glxname --divert /usr/lib/nvidia/libGL.so.1.xlibmesa /usr/lib/libGL.so.1 > /dev/null || true + fi + + #Remove diversion of /usr/lib/libGL.so.1.2 + if dpkg-divert --list $glxname | grep /usr/lib/libGL.so.1.2 > /dev/null ; then + rm -f /usr/lib/libGL.so.1.2 > /dev/null || true + dpkg-divert --remove --rename --package $glxname --divert /usr/lib/nvidia/libGL.so.1.2.xlibmesa /usr/lib/libGL.so.1.2 > /dev/null || true + fi + + + shift + done #End loop + + + if ! [ -d /usr/lib/nvidia ]; then + mkdir -p /usr/lib/nvidia + fi + + # make new diversions + dpkg-divert --add --rename --package nvidia-glx-180 --divert /usr/lib/nvidia/libGL.so.1.xlibmesa /usr/lib/libGL.so.1 > /dev/null + + dpkg-divert --add --rename --package nvidia-glx-180 --divert /usr/lib/nvidia/libGL.so.1.2.xlibmesa /usr/lib/libGL.so.1.2 > /dev/null + dpkg-divert --add --rename --package nvidia-glx-180 --divert /usr/lib/nvidia/libglx.so.xserver-xorg-core /usr/lib/xorg/modules/extensions/libglx.so > /dev/null + + if [ -n "$HAS_LIB32" ]; then + if ! [ -d /usr/lib32/nvidia ]; then + mkdir -p /usr/lib32/nvidia + fi + dpkg-divert --add --rename --package nvidia-glx-180 --divert /usr/lib32/nvidia/libGL.so.xlibmesa /usr/lib32/libGL.so > /dev/null + dpkg-divert --add --rename --package nvidia-glx-180 --divert /usr/lib32/nvidia/libGL.so.1.xlibmesa /usr/lib32/libGL.so.1 > /dev/null + dpkg-divert --add --rename --package nvidia-glx-180 --divert /usr/lib32/nvidia/libGL.so.1.2.xlibmesa /usr/lib32/libGL.so.1.2 > /dev/null + fi + + dpkg-divert --add --rename --package nvidia-glx-180 --divert /usr/lib/nvidia/libGLcore.so.xlibmesa /usr/lib/xorg/modules/extensions/libGLcore.so > /dev/null + + ;; + + abort-upgrade) + ;; + + *) + echo "preinst called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + + + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- nvidia-graphics-drivers-180-180.37.orig/debian/dkms.conf.in +++ nvidia-graphics-drivers-180-180.37/debian/dkms.conf.in @@ -0,0 +1,9 @@ +PACKAGE_NAME="nvidia" +PACKAGE_VERSION="#VERSION#" +CLEAN="make clean" +BUILT_MODULE_NAME[0]="nvidia" +MAKE[0]="make module KERNDIR=/lib/modules/$kernelver IGNORE_XEN_PRESENCE=1 IGNORE_CC_MISMATCH=1 SYSSRC=$kernel_source_dir" +DEST_MODULE_LOCATION[0]="/kernel/drivers/video/nvidia" +PATCH[0]="nvidia-rt-compat.patch" +PATCH_MATCH[0]="^2.6.2[8]" +AUTOINSTALL="yes" --- nvidia-graphics-drivers-180-180.37.orig/debian/compat +++ nvidia-graphics-drivers-180-180.37/debian/compat @@ -0,0 +1 @@ +4 --- nvidia-graphics-drivers-180-180.37.orig/debian/nvidia-glx-180.prerm +++ nvidia-graphics-drivers-180-180.37/debian/nvidia-glx-180.prerm @@ -0,0 +1,47 @@ +#! /bin/sh +# prerm script for nvidia-drivers +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + remove|upgrade|deconfigure) +# install-info --quiet --remove /usr/info/nvidia-drivers.info.gz +# if [ -n "" ]; then +# rm -f /lib/linux-restricted-modules/.nvidia_new_installed +# rmdir /lib/linux-restricted-modules 2>/dev/null || true +# fi +# rm -f /usr/lib/libGL.so || true +# /etc/init.d/nvidia-glx-177 start || true + ;; + failed-upgrade) + ;; + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + + + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + +