--- nvidia-graphics-drivers-173-updates-173.14.35.orig/debian/control +++ nvidia-graphics-drivers-173-updates-173.14.35/debian/control @@ -0,0 +1,42 @@ +Source: nvidia-graphics-drivers-173-updates +Section: restricted/misc +Priority: optional +Maintainer: Ubuntu Core Developers +Build-Depends: debhelper (>> 4.0.0), sed (>> 3.0), libxext6, bzip2, + xserver-xorg-dev (>= 2:1.4), execstack, cdbs, dh-modaliases +Standards-Version: 3.8.0 + +Package: nvidia-173-updates +Architecture: i386 amd64 lpia +Depends: x11-common (>= 1:7.0.0), make, sed (>> 3.0), dkms, linux-libc-dev, libc6-dev, + linux-headers-generic | linux-headers, patch, acpid, ${shlibs:Depends}, + ${xviddriver:Depends} +Recommends: nvidia-settings-updates +Provides: ${xviddriver:Provides} +Conflicts: nvidia-173-modaliases +Replaces: nvidia-173-modaliases +XB-Modaliases: ${modaliases} +Description: NVIDIA binary Xorg driver, kernel module and VDPAU library + The binary driver 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. + . + This package also includes the source for building the kernel module + required by the Xorg driver. + . + GPUs ranging from GeForce series 5 to GeForce series 9 are supported. + . + See /usr/share/doc/nvidia-173-updates/README.txt.gz for a complete list + of supported GPUs and PCIIDs + . + +Package: nvidia-173-updates-dev +Architecture: i386 amd64 lpia +Depends: nvidia-173-updates (>= 173.14.35) +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/ . + --- nvidia-graphics-drivers-173-updates-173.14.35.orig/debian/nvidia-173-updates.preinst.in +++ nvidia-graphics-drivers-173-updates-173.14.35/debian/nvidia-173-updates.preinst.in @@ -0,0 +1,190 @@ +#! /bin/sh +# preinst script for #DRIVERNAME# +# +# see: dh_installdeb(1) +# +# Copyright (C) 2009 Canonical Ltd +# Authors: Alberto Milone + +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-architecture` = "amd64" ]; then + HAS_LIB32="yes" +fi + +case "$1" in + install|upgrade) + + # We need to remove diversions from previous versions of the package + + # 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 no diversion is still there + 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" \ + "nvidia-glx-185" "nvidia-glx-190" + + 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 + + ;; + + 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-173-updates-173.14.35.orig/debian/compat +++ nvidia-graphics-drivers-173-updates-173.14.35/debian/compat @@ -0,0 +1 @@ +5 --- nvidia-graphics-drivers-173-updates-173.14.35.orig/debian/nvidia-autostart.desktop.in +++ nvidia-graphics-drivers-173-updates-173.14.35/debian/nvidia-autostart.desktop.in @@ -0,0 +1,9 @@ +[Desktop Entry] +Type=Application +Encoding=UTF-8 +Name=NVIDIA X Server Settings +Comment=Configure NVIDIA X Server Settings +Exec=sh -c '#BINDIR#/nvidia-settings --load-config-only' +Terminal=false +Icon=#DRIVERNAME#-settings +Categories=System;Settings; --- nvidia-graphics-drivers-173-updates-173.14.35.orig/debian/nvidia-173-updates.README.Debian.in +++ nvidia-graphics-drivers-173-updates-173.14.35/debian/nvidia-173-updates.README.Debian.in @@ -0,0 +1,89 @@ +NVIDIA video drivers for Ubuntu +============================ + +Further information can be found at http://www.nvidia.com/ -- look for +the "Download Drivers" tab and follow links to the Linux drivers. + +This package is generated from the official NVIDIA driver +installer that is available from the above homepage. + +DKMS +------------------------- + Ubuntu includes support to build modules using a utility developed by + Dell, called DKMS. It will automatically build your kernel module + for you when you first boot into the kernel (or as necessary). + + Note: the OBSOLETE_BY line in dkms.conf specifies a kernel version + which obsoletes the necessity for this particular DKMS module. + For example, OBSOLETE_BY=2.6.39 will prevent DKMS from building + modules for kernels >= 2.6.39. + + See the DKMS man page for more information. + +Kernel patches +------------------------- + If you need to provide a kernel patch (say for a kernel not formally + supported yet by NVIDIA), you can add this patch in the + debian/dkms/patches directory and mention the patch in the + debian/dkms.conf.in file. + + It is usually a good idea to restrict the use of a patch to certain + kernel versions with the PATCH_MATCH[n] variable. + + See the DKMS man page for more information. + +32 bit libraries on 64 bit systems +------------------------- + 32 bit libraries are provided on 64 bit systems for compatibility + reasons. + + The following templates are merged together into the same file on + amd64: + debian/nvidia-current.links32.in + debian/nvidia-current.links.in + + $ld_so_conf_path lets the system know where it should look for 32 + bit libraries. + +Update procedure +------------------------- +When a new NVIDIA is available, do the following to update +#DRIVERNAME#: + +0. On your build system, make sure you have the prerequisites + installed: + + $ sudo apt-get build-dep #DRIVERNAME# + +1. Download the NVIDIA installers i.e. the .run files. + +2. dch -i to update the version in the debian/changelog so that it + matches the new upstream version. + + Also make sure that the changelog includes both the changes you + made (if any) to the files in debian/ changes and the changes from + upstream (i.e. NVIDIA) which you can find in the release notes of + the driver. + +3. debclean to regenerate most of the files in debian/ from their + templates. + +4. Temporarily move the debian/ directory out of the source directory + and compress it as $SOURCE_NAME _ $NEW_VERSION . orig . tar . gz + e.g. #DRIVERSRCNAME#_#VERSION#.orig.tar.gz + +5. Move the debian/ directory back to the source directory and type + debuild -S -sa to produce a new .dsc + +6. Verify the new .dsc produces valid .debs by running it through + pbuilder, sbuild, etc. as usual. + +7. Install and test the .debs, and then dput the .changes file + + +IMPORTANT NOTE: If any changes to files in debian/ are needed, make sure +to discuss your changes with the maintainer (Alberto aka tseliot) before +you upload. + + + -- Alberto Milone Mon, 21 Dec 2009 12:36:15 +0100 --- nvidia-graphics-drivers-173-updates-173.14.35.orig/debian/nvidia-173-updates-dev.links.in +++ nvidia-graphics-drivers-173-updates-173.14.35/debian/nvidia-173-updates-dev.links.in @@ -0,0 +1 @@ +#INCLUDEDIR#/#DRIVERNAME# /usr/share/doc/#DRIVERDEVNAME#/include --- nvidia-graphics-drivers-173-updates-173.14.35.orig/debian/nvidia-173-updates.override.in +++ nvidia-graphics-drivers-173-updates-173.14.35/debian/nvidia-173-updates.override.in @@ -0,0 +1,86 @@ +#DRIVERNAME#: library-not-linked-against-libc ./usr/lib/libGL.so.#VERSION# + +#DRIVERNAME#: shared-lib-without-dependency-information ./usr/lib/libGLcore.so.#VERSION# + +#DRIVERNAME#: library-not-linked-against-libc ./usr/lib/xorg/modules/extensions/libglx.so.#VERSION# + +#DRIVERNAME#: shlib-with-non-pic-code usr/lib/libGL.so.#VERSION# +#DRIVERNAME#: shlib-with-non-pic-code usr/lib/libGLcore.so.#VERSION# +#DRIVERNAME#: shlib-with-non-pic-code usr/lib/xorg/modules/extensions/libglx.so.#VERSION# +#DRIVERNAME#: shlib-with-non-pic-code usr/lib/libXvMCNVIDIA.so.#VERSION# + +#DRIVERNAME#: non-dev-pkg-with-shlib-symlink usr/lib/libGL.so.#VERSION# usr/lib/libGL.so +#DRIVERNAME#: non-dev-pkg-with-shlib-symlink usr/lib/xorg/modules/extensions/libglx.so.#VERSION# usr/lib/xorg/modules/extensions/libglx.so + + +#DRIVERNAME#: script-not-executable usr/src/#DRIVERNAME#-#VERSION#/conftest.sh +#DRIVERNAME#: maintainer-script-ignores-errors prerm +#DRIVERNAME#: shlib-with-non-pic-code usr/lib/#DRIVERNAME#/libGL.so.#VERSION# +#DRIVERNAME#: shlib-without-PT_GNU_STACK-section usr/lib/#DRIVERNAME#/libGL.so.#VERSION# +#DRIVERNAME#: shlib-with-non-pic-code usr/lib/#DRIVERNAME#/libGLcore.so.#VERSION# +#DRIVERNAME#: shlib-without-PT_GNU_STACK-section usr/lib/#DRIVERNAME#/libGLcore.so.#VERSION# +#DRIVERNAME#: shlib-with-non-pic-code usr/lib/#DRIVERNAME#/libXvMCNVIDIA.so.#VERSION# +#DRIVERNAME#: shlib-without-PT_GNU_STACK-section usr/lib/#DRIVERNAME#/libXvMCNVIDIA.so.#VERSION# +#DRIVERNAME#: shlib-with-non-pic-code usr/lib/#DRIVERNAME#/libnvidia-cfg.so.#VERSION# +#DRIVERNAME#: shlib-without-PT_GNU_STACK-section usr/lib/#DRIVERNAME#/libnvidia-cfg.so.#VERSION# +#DRIVERNAME#: shlib-with-non-pic-code usr/lib/#DRIVERNAME#/libnvidia-tls.so.#VERSION# +#DRIVERNAME#: shlib-without-PT_GNU_STACK-section usr/lib/#DRIVERNAME#/libnvidia-tls.so.#VERSION# +#DRIVERNAME#: shlib-without-PT_GNU_STACK-section usr/lib/#DRIVERNAME#/libvdpau.so.#VERSION# +#DRIVERNAME#: shlib-with-non-pic-code usr/lib/#DRIVERNAME#/tls/libnvidia-tls.so.#VERSION# +#DRIVERNAME#: shlib-without-PT_GNU_STACK-section usr/lib/#DRIVERNAME#/tls/libnvidia-tls.so.#VERSION# +#DRIVERNAME#: shlib-with-non-pic-code usr/lib/#DRIVERNAME#/vdpau/libvdpau_nvidia.so.#VERSION# +#DRIVERNAME#: shlib-without-PT_GNU_STACK-section usr/lib/#DRIVERNAME#/vdpau/libvdpau_nvidia.so.#VERSION# +#DRIVERNAME#: shlib-without-PT_GNU_STACK-section usr/lib/#DRIVERNAME#/vdpau/libvdpau_trace.so.#VERSION# +#DRIVERNAME#: shlib-with-non-pic-code usr/lib/#DRIVERNAME#/xorg/libglx.so.#VERSION# +#DRIVERNAME#: shlib-without-PT_GNU_STACK-section usr/lib/#DRIVERNAME#/xorg/libglx.so.#VERSION# +#DRIVERNAME#: shlib-with-non-pic-code usr/lib/tls/libnvidia-tls.so.#VERSION# +#DRIVERNAME#: shlib-without-PT_GNU_STACK-section usr/lib/tls/libnvidia-tls.so.#VERSION# +#DRIVERNAME#: shlib-with-non-pic-code usr/lib/vdpau/libvdpau_nvidia.so.#VERSION# +#DRIVERNAME#: shlib-without-PT_GNU_STACK-section usr/lib/vdpau/libvdpau_nvidia.so.#VERSION# +#DRIVERNAME#: shlib-without-PT_GNU_STACK-section usr/lib/vdpau/libvdpau_trace.so.#VERSION# +#DRIVERNAME#: unused-shlib-entry-in-control-file libnvidia-tls 190 +#DRIVERNAME#: shlibs-declares-dependency-on-other-package libgl1-mesa | libgl1 +#DRIVERNAME#: prerm-calls-ldconfig +#DRIVERNAME#: copyright-without-copyright-notice +#DRIVERNAME#: desktop-command-not-in-package /usr/share/applications/#DRIVERNAME#/ubuntu-nvidia-settings.desktop /usr/bin/nvidia-settings +#DRIVERNAME#: shared-lib-without-dependency-information ./usr/lib/#DRIVERNAME#/libnvidia-tls.so.#VERSION# +#DRIVERNAME#: shared-lib-without-dependency-information ./usr/lib/#DRIVERNAME#/tls/libnvidia-tls.so.#VERSION# +#DRIVERNAME#: shared-lib-without-dependency-information ./usr/lib/tls/libnvidia-tls.so.#VERSION# +#DRIVERNAME#: unknown-section restricted/misc +nvidia-185-modaliases: copyright-without-copyright-notice +nvidia-185-modaliases: extended-description-line-too-long +nvidia-glx-185-dev: copyright-without-copyright-notice +nvidia-glx-185-dev: extended-description-line-too-long +nvidia-glx-185-dev: unknown-section restricted/misc +nvidia-185-kernel-source: copyright-without-copyright-notice +nvidia-185-kernel-source: unknown-section restricted/misc +#DRIVERNAME#-dev: shlib-with-non-pic-code usr/lib/#DRIVERNAME#/libXvMCNVIDIA.so.#VERSION# +#DRIVERNAME#-dev: shlib-without-PT_GNU_STACK-section usr/lib/#DRIVERNAME#/libXvMCNVIDIA.so.#VERSION# +#DRIVERNAME#-dev: postinst-has-useless-call-to-ldconfig +#DRIVERNAME#-dev: postrm-has-useless-call-to-ldconfig +#DRIVERNAME#-dev: copyright-without-copyright-notice +#DRIVERNAME#-dev: missing-dependency-on-libc needed by ./usr/lib/#DRIVERNAME#/libXvMCNVIDIA.so.#VERSION# +#DRIVERNAME#-dev: unknown-section restricted/misc +nvidia-glx-185: copyright-without-copyright-notice +nvidia-glx-185: unknown-section restricted/misc +#DRIVERNAME#-modaliases: copyright-without-copyright-notice + +#DRIVERNAME#: script-not-executable ./usr/src/#DRIVERNAME#-#VERSION#/conftest.sh +#DRIVERNAME#: maintainer-script-ignores-errors prerm +#DRIVERNAME#: shlib-with-non-pic-code usr/lib32/#DRIVERNAME#/libGL.so.#VERSION# +#DRIVERNAME#: shlib-with-non-pic-code usr/lib32/#DRIVERNAME#/libGLcore.so.#VERSION# +#DRIVERNAME#: shlib-with-non-pic-code usr/lib32/#DRIVERNAME#/libXvMCNVIDIA.so.#VERSION# +#DRIVERNAME#: shlib-without-PT_GNU_STACK-section usr/lib32/#DRIVERNAME#/libXvMCNVIDIA.so.#VERSION# +#DRIVERNAME#: shlib-with-non-pic-code usr/lib32/#DRIVERNAME#/libnvidia-cfg.so.#VERSION# +#DRIVERNAME#: shlib-with-non-pic-code usr/lib32/#DRIVERNAME#/libnvidia-tls.so.#VERSION# +#DRIVERNAME#: shlib-with-non-pic-code usr/lib32/#DRIVERNAME#/libvdpau_nvidia.so.#VERSION# +#DRIVERNAME#: shlib-with-non-pic-code usr/lib32/#DRIVERNAME#/tls/libnvidia-tls.so.#VERSION# +#DRIVERNAME#: shlib-without-PT_GNU_STACK-section usr/lib32/#DRIVERNAME#/tls/libnvidia-tls.so.#VERSION# + +#DRIVERNAME#: shared-lib-without-dependency-information ./usr/lib/#DRIVERNAME#/libnvidia-tls.so.#VERSION# +#DRIVERNAME#: shared-lib-without-dependency-information ./usr/lib/#DRIVERNAME#/tls/libnvidia-tls.so.#VERSION# +#DRIVERNAME#: shared-lib-without-dependency-information ./usr/lib/tls/libnvidia-tls.so.#VERSION# +#DRIVERNAME#: shared-lib-without-dependency-information ./usr/lib32/#DRIVERNAME#/libnvidia-tls.so.#VERSION# +#DRIVERNAME#: shared-lib-without-dependency-information ./usr/lib32/#DRIVERNAME#/tls/libnvidia-tls.so.#VERSION# + + --- nvidia-graphics-drivers-173-updates-173.14.35.orig/debian/nvidia-173-updates.preinst +++ nvidia-graphics-drivers-173-updates-173.14.35/debian/nvidia-173-updates.preinst @@ -0,0 +1,190 @@ +#! /bin/sh +# preinst script for nvidia-173-updates +# +# see: dh_installdeb(1) +# +# Copyright (C) 2009 Canonical Ltd +# Authors: Alberto Milone + +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-architecture` = "amd64" ]; then + HAS_LIB32="yes" +fi + +case "$1" in + install|upgrade) + + # We need to remove diversions from previous versions of the package + + # 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 no diversion is still there + 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" \ + "nvidia-glx-185" "nvidia-glx-190" + + 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 + + ;; + + 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-173-updates-173.14.35.orig/debian/nvidia-173-updates.links32.in +++ nvidia-graphics-drivers-173-updates-173.14.35/debian/nvidia-173-updates.links32.in @@ -0,0 +1,14 @@ +#PKGLIBDIR32#/libGL.so.#VERSION# #PKGLIBDIR32#/libGL.so.1 +#PKGLIBDIR32#/libGL.so.1 #PKGLIBDIR32#/libGL.so +#PKGLIBDIR32#/libGLcore.so.#VERSION# #PKGLIBDIR32#/libGLcore.so.1 + +#PKGLIBDIR32#/libnvidia-cfg.so.#VERSION# #PKGLIBDIR32#/libnvidia-cfg.so.1 +#PKGLIBDIR32#/libnvidia-cfg.so.1 #PKGLIBDIR32#/libnvidia-cfg.so + +#NVIDIAEXTENSION#/libglx.so.#VERSION# #NVIDIAEXTENSION#/libglx.so + +#PKGLIBDIR32#/libXvMCNVIDIA.so.#VERSION# #PKGLIBDIR32#/libXvMCNVIDIA.so +#PKGLIBDIR32#/libXvMCNVIDIA.so.#VERSION# #PKGLIBDIR32#/libXvMCNVIDIA.so.1 +#PKGLIBDIR32#/libXvMCNVIDIA.so.#VERSION# #PKGLIBDIR32#/libXvMCNVIDIA_dynamic.so.1 + +#PKGLIBDIR32#/libnvidia-tls.so.#VERSION# #PKGLIBDIR32#/libnvidia-tls.so.1 --- nvidia-graphics-drivers-173-updates-173.14.35.orig/debian/nvidia-173-updates.install +++ nvidia-graphics-drivers-173-updates-173.14.35/debian/nvidia-173-updates.install @@ -0,0 +1,28 @@ +debian/nvidia-173-updates.override usr/share/lintian/overrides +#Blacklist some card ids from GRUB gfxpayload=keep +debian/nvidia-173-updates.grub-gfxpayload /usr/share/nvidia-173-updates + +NVIDIA-Linux-x86_64-173.14.35-pkg2/usr/X11R6/lib/modules/drivers/nvidia_drv.so /usr/lib/nvidia-173-updates/xorg +NVIDIA-Linux-x86_64-173.14.35-pkg2/usr/X11R6/lib/modules/extensions/libglx.so.173.14.35 /usr/lib/nvidia-173-updates/xorg + +NVIDIA-Linux-x86_64-173.14.35-pkg2/usr/lib/libGL*.so* /usr/lib/nvidia-173-updates +NVIDIA-Linux-x86_64-173.14.35-pkg2/usr/lib/libnvidia*.so* /usr/lib/nvidia-173-updates + +NVIDIA-Linux-x86_64-173.14.35-pkg2/usr/lib/tls/*.so* /usr/lib/nvidia-173-updates/tls + +NVIDIA-Linux-x86_64-173.14.35-pkg2/usr/X11R6/lib/libXvMCNVIDIA.so.173.14.35 /usr/lib/nvidia-173-updates + +debian/dkms/patches/* usr/src/nvidia-173-updates-173.14.35/patches +debian/dkms.conf usr/src/nvidia-173-updates-173.14.35 +debian/temp/modules/nvidia-kernel/nv/* usr/src/nvidia-173-updates-173.14.35 + +NVIDIA-Linux-x86_64-173.14.35-pkg2/usr/bin/nvidia-bug-report.sh /usr/lib/nvidia-173-updates/bin +NVIDIA-Linux-x86_64-173.14.35-pkg2/usr/bin/nvidia-xconfig /usr/lib/nvidia-173-updates/bin +NVIDIA-Linux-x86_64-173.14.35-pkg2/usr/bin/nvidia-smi /usr/lib/nvidia-173-updates/bin + +NVIDIA-Linux-x86_64-173.14.35-pkg2/usr/share/pixmaps/nvidia-173-updates-settings.png /usr/share/pixmaps + +debian/ubuntu-nvidia-settings.desktop /usr/share/nvidia-173-updates + +debian/nvidia-autostart.desktop /usr/share/nvidia-173-updates + --- nvidia-graphics-drivers-173-updates-173.14.35.orig/debian/nvidia-173-updates.examples +++ nvidia-graphics-drivers-173-updates-173.14.35/debian/nvidia-173-updates.examples @@ -0,0 +1,2 @@ +NVIDIA-Linux-x86_64-173.14.35-pkg2/usr/share/doc/XF86Config.sample + --- nvidia-graphics-drivers-173-updates-173.14.35.orig/debian/dkms.conf +++ nvidia-graphics-drivers-173-updates-173.14.35/debian/dkms.conf @@ -0,0 +1,10 @@ +PACKAGE_NAME="nvidia-173-updates" +PACKAGE_VERSION="173.14.35" +CLEAN="make clean" +BUILT_MODULE_NAME[0]="nvidia" +DEST_MODULE_NAME[0]="nvidia_173_updates" +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/char/drm" +AUTOINSTALL="yes" +#PATCH[0]="fix-build-with-linux-3.0.patch" +#PATCH_MATCH[0]="^3." --- nvidia-graphics-drivers-173-updates-173.14.35.orig/debian/control.in +++ nvidia-graphics-drivers-173-updates-173.14.35/debian/control.in @@ -0,0 +1,42 @@ +Source: #DRIVERSRCNAME# +Section: restricted/misc +Priority: optional +Maintainer: Ubuntu Core Developers +Build-Depends: debhelper (>> 4.0.0), sed (>> 3.0), libxext6, bzip2, + xserver-xorg-dev (>= 2:1.4), execstack, cdbs, dh-modaliases +Standards-Version: 3.8.0 + +Package: #DRIVERNAME# +Architecture: i386 amd64 lpia +Depends: x11-common (>= 1:7.0.0), make, sed (>> 3.0), dkms, linux-libc-dev, libc6-dev, + linux-headers-generic | linux-headers, patch, acpid, ${shlibs:Depends}, + ${xviddriver:Depends} +Recommends: nvidia-settings-updates +Provides: ${xviddriver:Provides} +Conflicts: nvidia-173-modaliases +Replaces: nvidia-173-modaliases +XB-Modaliases: ${modaliases} +Description: NVIDIA binary Xorg driver, kernel module and VDPAU library + The binary driver 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. + . + This package also includes the source for building the kernel module + required by the Xorg driver. + . + GPUs ranging from GeForce series 5 to GeForce series 9 are supported. + . + See /usr/share/doc/#DRIVERNAME#/README.txt.gz for a complete list + of supported GPUs and PCIIDs + . + +Package: #DRIVERDEVNAME# +Architecture: i386 amd64 lpia +Depends: #DRIVERNAME# (>= #VERSION#) +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/ . + --- nvidia-graphics-drivers-173-updates-173.14.35.orig/debian/changelog +++ nvidia-graphics-drivers-173-updates-173.14.35/debian/changelog @@ -0,0 +1,84 @@ +nvidia-graphics-drivers-173-updates (173.14.35-0ubuntu0.1) precise-proposed; urgency=low + + * New upstream release: + - Added support for xserver 1.11.99.901 (also known + as 1.12 RC1). + - Added support for X.Org xserver 1.11 (LP: #948053). + - Improved compatibility with recent Linux kernels. + - Fixed a bug that caused libglx.so to fail to load + on 32-bit X servers. + * debian/control.in: + - Bump build dependency on debhelper. + * debian/dkms.conf.in: + - Don't apply any patches. + + -- Alberto Milone Wed, 04 Jul 2012 15:40:55 +0200 + +nvidia-graphics-drivers-173-updates (173.14.30-0ubuntu7) precise; urgency=low + + * Remove leftover from git. + + -- Alberto Milone Thu, 12 Jan 2012 18:51:59 +0100 + +nvidia-graphics-drivers-173-updates (173.14.30-0ubuntu6) precise; urgency=low + + [ Daniel van Vugt ] + * debian/dkms.conf{.in}: + - Fix failure to install with kernel 3.2 (LP: #576648). + - Drop non-functional OBSOLETE_BY variable. + + [ Alberto Milone ] + * debian/nvidia-$flavour.prerm.in: + - Use the right path to remove the alternative for the + other architecture (LP: #915461). + + -- Alberto Milone Thu, 12 Jan 2012 18:25:41 +0100 + +nvidia-graphics-drivers-173-updates (173.14.30-0ubuntu5) oneiric; urgency=low + + * Re-enable grub fb and drop the initramfs hook in favour of + "alias nouveau/lbm_nouveau off" (LP: #864149). + + -- Alberto Milone Mon, 10 Oct 2011 18:47:35 +0200 + +nvidia-graphics-drivers-173-updates (173.14.30-0ubuntu4) oneiric; urgency=low + + * debian/rules: + - Make sure that the module alias is always correct and + uses underscores instead of hyphens (LP: #855396). + - Make the grub-gfxpayload file a template and blacklist + all Nvidia cards so that Grub doesn't set a framebuffer + which prevents recovery mode from working (LP: #854967). + + -- Alberto Milone Fri, 30 Sep 2011 10:12:49 +0200 + +nvidia-graphics-drivers-173-updates (173.14.30-0ubuntu3) oneiric; urgency=low + + * debian/rules: + - Remove trailing spaces. + - Blacklist the updates flavours in modprobe.conf. + - Add an initramfs hook to make sure that nothings else loads + open graphics drivers in the initramfs (LP: #839524). + + -- Alberto Milone Wed, 07 Sep 2011 17:09:24 +0200 + +nvidia-graphics-drivers-173-updates (173.14.30-0ubuntu2) oneiric; urgency=low + + * debian/nvidia-173-updates.postinst{.in}: + - Make sure to create and use X.Org's multiarch extra modules + path (LP: #807209). + - Share the same name for grub's blacklist file for all + drivers. + * debian/rules: + - Fix issues with pbuild. + - Do not provide the X abi any longer. Depending on the ABI is + enough. + + -- Alberto Milone Tue, 30 Aug 2011 17:33:58 +0200 + +nvidia-graphics-drivers-173-updates (173.14.30-0ubuntu1) oneiric; urgency=low + + * First release. + + -- Alberto Milone Thu, 11 Aug 2011 12:21:04 +0200 + --- nvidia-graphics-drivers-173-updates-173.14.35.orig/debian/nvidia-173-updates-dev.install.in +++ nvidia-graphics-drivers-173-updates-173.14.35/debian/nvidia-173-updates-dev.install.in @@ -0,0 +1,3 @@ +#DIRNAME#/usr/X11R6/lib/libXvMCNVIDIA.a #PKGLIBDIR# + +#DIRNAME#/usr/include/* #INCLUDEDIR#/#DRIVERNAME# --- nvidia-graphics-drivers-173-updates-173.14.35.orig/debian/nvidia-173-updates.postinst +++ nvidia-graphics-drivers-173-updates-173.14.35/debian/nvidia-173-updates.postinst @@ -0,0 +1,176 @@ +#!/bin/sh +# Copyright (C) 2007-2008 Mario Limonciello +# Copyright (C) 2009 Canonical Ltd +# Authors: Alberto Milone +set -e + +PACKAGE_NAME=nvidia-173-updates +CVERSION=`dpkg-query -W -f='${Version}' $PACKAGE_NAME | awk -F "-" '{print $1}' | cut -d\: -f2` + +ARCH=`dpkg --print-architecture` +case $ARCH in + amd64) + ARCH="x86_64" + ;; + lpia) + ARCH="i686" + ;; + i386) + ARCH="i686" + ;; + *) + echo "WARNING: unsupported arch: $ARCH" + ARCH="$ARCH" + ;; +esac + +# Check the existence of a kernel named as $1 +_is_kernel_name_correct() { + CORRECT="no" + KERNEL_NAME=$1 + + for kernel in /boot/config-*; do + KERNEL=${kernel#*-} + if [ "${KERNEL}" = "${KERNEL_NAME}" ]; then + CORRECT="yes" + break + fi + done + + echo $CORRECT +} + +# Get the most recent kernel on Debian based systems. This keeps +# into account both the version and the ABI. If the current kernel +# is the most recent kernel then the function will print a null string. +_get_newest_kernel_debian() { + NEWEST_KERNEL= + NEWEST_VERSION= + NEWEST_ABI= + + for kernel in /boot/config-*; do + KERNEL=${kernel#*-} + KERNEL_VERSION=${KERNEL%%-*} + ABI=${KERNEL#*-} + ABI=${ABI%%-*} + + if [ -z "$NEWEST_KERNEL" ]; then + # The 1st time get a version which is bigger than $1 + COMPARE_TO=$1 + else + # Get the biggest version + COMPARE_TO="$NEWEST_VERSION-$NEWEST_ABI" + fi + + # if $kernel is greater than $COMPARE_TO + if [ `dpkg --compare-versions "$KERNEL_VERSION-$ABI" gt "$COMPARE_TO" && echo "yes" || \ + echo "no"` = "yes" ]; then + NEWEST_KERNEL=$KERNEL + NEWEST_VERSION=$KERNEL_VERSION + NEWEST_ABI=$ABI + fi + done + + echo "$NEWEST_KERNEL" +} + + +get_newest_kernel() { + NEWEST_KERNEL= + # Try Debian first as rpm can be installed in Debian based distros + if [ -e /usr/bin/dpkg ]; then + # If DEB based + CURRENT_KERNEL=$1 + CURRENT_VERSION=${CURRENT_KERNEL%%-*} + CURRENT_ABI=${CURRENT_KERNEL#*-} + CURRENT_FLAVOUR=${CURRENT_ABI#*-} + CURRENT_ABI=${CURRENT_ABI%%-*} + NEWEST_KERNEL=$(_get_newest_kernel_debian "$CURRENT_VERSION-$CURRENT_ABI") + + elif [ `which rpm &>/dev/null` ]; then + # If RPM based + NEWEST_KERNEL=$(_get_newest_kernel_rhel) + fi + + # Make sure that kernel name that we extracted corresponds to an installed + # kernel + if [ -n "$NEWEST_KERNEL" ] && [ `_is_kernel_name_correct $NEWEST_KERNEL` = "no" ]; then + NEWEST_KERNEL= + fi + + echo $NEWEST_KERNEL +} + +case "$1" in + configure) + # Deal with alternatives + + if [ -n "$(update-alternatives --list gl_conf 2>/dev/null)" ]; then + set -a $(update-alternatives --list gl_conf 2>/dev/null) + while [ $# -ge 1 ] && [ "$#" != "configure" ]; do + ALTERNATIVE=${1} + update-alternatives --remove gl_conf $ALTERNATIVE + shift + done + fi + + update-alternatives --force \ + --install /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf x86_64-linux-gnu_gl_conf /usr/lib/nvidia-173-updates/ld.so.conf 9621 \ + --slave /usr/share/man/man1/nvidia-xconfig.1.gz x86_64-linux-gnu_man_nvidiaxconfig.gz /usr/share/man/man1/alt-nvidia-173-updates-xconfig.1.gz \ + --slave /usr/share/applications/ubuntu-nvidia-settings.desktop x86_64-linux-gnu_nvidia_desktop /usr/share/nvidia-173-updates/ubuntu-nvidia-settings.desktop \ + --slave /usr/bin/nvidia-smi x86_64-linux-gnu_nvidia_smi /usr/lib/nvidia-173-updates/bin/nvidia-smi \ + --slave /usr/bin/nvidia-xconfig x86_64-linux-gnu_nvidia_xconfig /usr/lib/nvidia-173-updates/bin/nvidia-xconfig \ + --slave /usr/bin/nvidia-bug-report.sh x86_64-linux-gnu_nvidia_bug_report /usr/lib/nvidia-173-updates/bin/nvidia-bug-report.sh \ + --slave /usr/lib/XvMCConfig x86_64-linux-gnu_xvmcconfig /usr/lib/nvidia-173-updates/XvMCConfig \ + --slave /etc/xdg/autostart/nvidia-autostart.desktop x86_64-linux-gnu_nvidia-autostart.desktop /usr/share/nvidia-173-updates/nvidia-autostart.desktop \ + --slave /usr/lib/xorg/modules/drivers/nvidia_drv.so x86_64-linux-gnu_nvidia_drv /usr/lib/nvidia-173-updates/xorg/nvidia_drv.so \ + --slave /etc/modprobe.d/nvidia-graphics-drivers.conf x86_64-linux-gnu_nvidia_modconf /lib/nvidia-173-updates/modprobe.conf \ + --slave /usr/lib/x86_64-linux-gnu/xorg/extra-modules x86_64-linux-gnu_xorg_extra_modules /usr/lib/nvidia-173-updates/xorg \ + --slave /usr/share/grub-gfxpayload-lists/blacklist/10_proprietary-graphics-drivers x86_64-linux-gnu_grub_fb_blacklist /usr/share/nvidia-173-updates/nvidia-173-updates.grub-gfxpayload + + # Install just the ld.so.conf.d alternative for the secondary architecture. + # We need only to ensure that any mesa ld.so.conf.d alternative isn't active. + update-alternatives --force \ + --install /etc/ld.so.conf.d/i386-linux-gnu_GL.conf i386-linux-gnu_gl_conf /usr/lib/nvidia-173-updates/alt_ld.so.conf 9621 + + # ldconfig needs to be run immediately as we're changing /etc/ld.so.conf.d/ with + # alternatives. + LDCONFIG_NOTRIGGER=y ldconfig + + # Update the grub gfxpayload blacklist + if which update-grub-gfxpayload >/dev/null 2>&1; then + update-grub-gfxpayload + fi + + # Trigger gmenu so that the icons will show up in the menu + dpkg-trigger --by-package=$PACKAGE_NAME gmenucache || true + + CURRENT_KERNEL=$(uname -r) + NEWEST_KERNEL=$(get_newest_kernel "$KERNELS") + + ALTERNATIVE=$(readlink /etc/alternatives/x86_64-linux-gnu_gl_conf) + if [ "$ALTERNATIVE" = "/usr/lib/nvidia-173-updates/ld.so.conf" ]; then + # Update initramfs so that the blacklist ends up in the initramfs + update-initramfs -u + + if [ -n "$NEWEST_KERNEL" ] && [ ${CURRENT_KERNEL} != ${NEWEST_KERNEL} ]; then + # This can fail when dealing with a chroot see LP: #556653 + update-initramfs -u -k $CURRENT_KERNEL || true + fi + fi + + # Build the kernel module + /usr/lib/dkms/common.postinst $PACKAGE_NAME $CVERSION /usr/share/$PACKAGE_NAME $ARCH $2 + exit $? + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# --- nvidia-graphics-drivers-173-updates-173.14.35.orig/debian/nvidia-173-updates.postinst.in +++ nvidia-graphics-drivers-173-updates-173.14.35/debian/nvidia-173-updates.postinst.in @@ -0,0 +1,176 @@ +#!/bin/sh +# Copyright (C) 2007-2008 Mario Limonciello +# Copyright (C) 2009 Canonical Ltd +# Authors: Alberto Milone +set -e + +PACKAGE_NAME=#DRIVERNAME# +CVERSION=`dpkg-query -W -f='${Version}' $PACKAGE_NAME | awk -F "-" '{print $1}' | cut -d\: -f2` + +ARCH=`dpkg --print-architecture` +case $ARCH in + amd64) + ARCH="x86_64" + ;; + lpia) + ARCH="i686" + ;; + i386) + ARCH="i686" + ;; + *) + echo "WARNING: unsupported arch: $ARCH" + ARCH="$ARCH" + ;; +esac + +# Check the existence of a kernel named as $1 +_is_kernel_name_correct() { + CORRECT="no" + KERNEL_NAME=$1 + + for kernel in /boot/config-*; do + KERNEL=${kernel#*-} + if [ "${KERNEL}" = "${KERNEL_NAME}" ]; then + CORRECT="yes" + break + fi + done + + echo $CORRECT +} + +# Get the most recent kernel on Debian based systems. This keeps +# into account both the version and the ABI. If the current kernel +# is the most recent kernel then the function will print a null string. +_get_newest_kernel_debian() { + NEWEST_KERNEL= + NEWEST_VERSION= + NEWEST_ABI= + + for kernel in /boot/config-*; do + KERNEL=${kernel#*-} + KERNEL_VERSION=${KERNEL%%-*} + ABI=${KERNEL#*-} + ABI=${ABI%%-*} + + if [ -z "$NEWEST_KERNEL" ]; then + # The 1st time get a version which is bigger than $1 + COMPARE_TO=$1 + else + # Get the biggest version + COMPARE_TO="$NEWEST_VERSION-$NEWEST_ABI" + fi + + # if $kernel is greater than $COMPARE_TO + if [ `dpkg --compare-versions "$KERNEL_VERSION-$ABI" gt "$COMPARE_TO" && echo "yes" || \ + echo "no"` = "yes" ]; then + NEWEST_KERNEL=$KERNEL + NEWEST_VERSION=$KERNEL_VERSION + NEWEST_ABI=$ABI + fi + done + + echo "$NEWEST_KERNEL" +} + + +get_newest_kernel() { + NEWEST_KERNEL= + # Try Debian first as rpm can be installed in Debian based distros + if [ -e /usr/bin/dpkg ]; then + # If DEB based + CURRENT_KERNEL=$1 + CURRENT_VERSION=${CURRENT_KERNEL%%-*} + CURRENT_ABI=${CURRENT_KERNEL#*-} + CURRENT_FLAVOUR=${CURRENT_ABI#*-} + CURRENT_ABI=${CURRENT_ABI%%-*} + NEWEST_KERNEL=$(_get_newest_kernel_debian "$CURRENT_VERSION-$CURRENT_ABI") + + elif [ `which rpm &>/dev/null` ]; then + # If RPM based + NEWEST_KERNEL=$(_get_newest_kernel_rhel) + fi + + # Make sure that kernel name that we extracted corresponds to an installed + # kernel + if [ -n "$NEWEST_KERNEL" ] && [ `_is_kernel_name_correct $NEWEST_KERNEL` = "no" ]; then + NEWEST_KERNEL= + fi + + echo $NEWEST_KERNEL +} + +case "$1" in + configure) + # Deal with alternatives + + if [ -n "$(update-alternatives --list gl_conf 2>/dev/null)" ]; then + set -a $(update-alternatives --list gl_conf 2>/dev/null) + while [ $# -ge 1 ] && [ "$#" != "configure" ]; do + ALTERNATIVE=${1} + update-alternatives --remove gl_conf $ALTERNATIVE + shift + done + fi + + update-alternatives --force \ + --install #SYSCONFDIR#/ld.so.conf.d/#DEB_HOST_MULTIARCH#_GL.conf #DEB_HOST_MULTIARCH#_gl_conf #LDSOCONF# #ALTPRIORITY# \ + --slave #MANDIR#/nvidia-xconfig.1.gz #DEB_HOST_MULTIARCH#_man_nvidiaxconfig.gz #MANDIR#/alt-#DRIVERNAME#-xconfig.1.gz \ + --slave #DATADIR#/applications/ubuntu-nvidia-settings.desktop #DEB_HOST_MULTIARCH#_nvidia_desktop #PKGDESKDIR#/ubuntu-nvidia-settings.desktop \ + --slave #BINDIR#/nvidia-smi #DEB_HOST_MULTIARCH#_nvidia_smi #PKGBINDIR#/nvidia-smi \ + --slave #BINDIR#/nvidia-xconfig #DEB_HOST_MULTIARCH#_nvidia_xconfig #PKGBINDIR#/nvidia-xconfig \ + --slave #BINDIR#/nvidia-bug-report.sh #DEB_HOST_MULTIARCH#_nvidia_bug_report #PKGBINDIR#/nvidia-bug-report.sh \ + --slave #LIBDIR#/XvMCConfig #DEB_HOST_MULTIARCH#_xvmcconfig #PKGCONFIGDIR#/XvMCConfig \ + --slave #AUTOSTARTDIR#/#AUTOSTARTFILE# #DEB_HOST_MULTIARCH#_nvidia-autostart.desktop #PKGDATADIR#/#AUTOSTARTFILE# \ + --slave #LIBDIR#/xorg/modules/drivers/nvidia_drv.so #DEB_HOST_MULTIARCH#_nvidia_drv #PKGDRIVERSDIR#/nvidia_drv.so \ + --slave #SYSCONFDIR#/modprobe.d/nvidia-graphics-drivers.conf #DEB_HOST_MULTIARCH#_nvidia_modconf #PKGLIBCONFDIR#/modprobe.conf \ + --slave #XORGEXTRA# #DEB_HOST_MULTIARCH#_xorg_extra_modules #NVIDIAEXTENSION# \ + --slave #GRUBBLKLISTDIR#/10_proprietary-graphics-drivers #DEB_HOST_MULTIARCH#_grub_fb_blacklist #PKGDATADIR#/#DRIVERNAME#.grub-gfxpayload + + # Install just the ld.so.conf.d alternative for the secondary architecture. + # We need only to ensure that any mesa ld.so.conf.d alternative isn't active. + update-alternatives --force \ + --install #SYSCONFDIR#/ld.so.conf.d/#OTHER_ARCH#_GL.conf #OTHER_ARCH#_gl_conf #ALTLDSOCONF# #ALTPRIORITY# + + # ldconfig needs to be run immediately as we're changing /etc/ld.so.conf.d/ with + # alternatives. + LDCONFIG_NOTRIGGER=y ldconfig + + # Update the grub gfxpayload blacklist + if which update-grub-gfxpayload >/dev/null 2>&1; then + update-grub-gfxpayload + fi + + # Trigger gmenu so that the icons will show up in the menu + dpkg-trigger --by-package=$PACKAGE_NAME gmenucache || true + + CURRENT_KERNEL=$(uname -r) + NEWEST_KERNEL=$(get_newest_kernel "$KERNELS") + + ALTERNATIVE=$(readlink /etc/alternatives/#DEB_HOST_MULTIARCH#_gl_conf) + if [ "$ALTERNATIVE" = "#LDSOCONF#" ]; then + # Update initramfs so that the blacklist ends up in the initramfs + update-initramfs -u + + if [ -n "$NEWEST_KERNEL" ] && [ ${CURRENT_KERNEL} != ${NEWEST_KERNEL} ]; then + # This can fail when dealing with a chroot see LP: #556653 + update-initramfs -u -k $CURRENT_KERNEL || true + fi + fi + + # Build the kernel module + /usr/lib/dkms/common.postinst $PACKAGE_NAME $CVERSION /usr/share/$PACKAGE_NAME $ARCH $2 + exit $? + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# --- nvidia-graphics-drivers-173-updates-173.14.35.orig/debian/dkms.conf.in +++ nvidia-graphics-drivers-173-updates-173.14.35/debian/dkms.conf.in @@ -0,0 +1,10 @@ +PACKAGE_NAME="#DRIVERNAME#" +PACKAGE_VERSION="#VERSION#" +CLEAN="make clean" +BUILT_MODULE_NAME[0]="nvidia" +DEST_MODULE_NAME[0]="#MODULENAME#" +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/char/drm" +AUTOINSTALL="yes" +#PATCH[0]="fix-build-with-linux-3.0.patch" +#PATCH_MATCH[0]="^3." --- nvidia-graphics-drivers-173-updates-173.14.35.orig/debian/nvidia-173-updates-dev.install +++ nvidia-graphics-drivers-173-updates-173.14.35/debian/nvidia-173-updates-dev.install @@ -0,0 +1,3 @@ +NVIDIA-Linux-x86_64-173.14.35-pkg2/usr/X11R6/lib/libXvMCNVIDIA.a /usr/lib/nvidia-173-updates + +NVIDIA-Linux-x86_64-173.14.35-pkg2/usr/include/* /usr/include/nvidia-173-updates --- nvidia-graphics-drivers-173-updates-173.14.35.orig/debian/nvidia-173-updates.postrm +++ nvidia-graphics-drivers-173-updates-173.14.35/debian/nvidia-173-updates.postrm @@ -0,0 +1,42 @@ +#! /bin/sh +# postrm script for nvidia-173-updates +# +# see: dh_installdeb(1) +# +# Copyright (C) 2009-2010 Canonical Ltd +# Authors: Alberto Milone + +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) + + ;; + + 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-173-updates-173.14.35.orig/debian/copyright +++ nvidia-graphics-drivers-173-updates-173.14.35/debian/copyright @@ -0,0 +1,195 @@ +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/173.14.35/NVIDIA-Linux-x86-173.14.35-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. + +--------------------------------------------------------------------- + +The Debian packaging is (C) 2009, Canonical Ltd and is licensed +under the GPL, see `/usr/share/common-licenses/GPL'. --- nvidia-graphics-drivers-173-updates-173.14.35.orig/debian/nvidia-173-updates.prerm.in +++ nvidia-graphics-drivers-173-updates-173.14.35/debian/nvidia-173-updates.prerm.in @@ -0,0 +1,42 @@ +#!/bin/sh +# prerm script for #DRIVERNAME# +# +# Copyright (C) 2007 Mario Limonciello +# Copyright (C) 2009 Canonical Ltd +# Authors: Alberto Milone + + +PACKAGE_NAME=#DRIVERNAME# +CVERSION=`dpkg-query -W -f='${Version}' $PACKAGE_NAME | awk -F "-" '{print $1}' | cut -d\: -f2` + +remove_dkms_module() { + echo "Removing all DKMS Modules" + dkms remove -m $PACKAGE_NAME -v $CVERSION --all > /dev/null + echo "Done." +} + +case "$1" in + upgrade) + remove_dkms_module + ;; + remove) + remove_dkms_module + + update-alternatives --remove #DEB_HOST_MULTIARCH#_gl_conf #LDSOCONF# + update-alternatives --remove #OTHER_ARCH#_gl_conf #ALTLDSOCONF# + + # Trigger gmenu so as to update the gnome menu + dpkg-trigger --by-package=$PACKAGE_NAME gmenucache || true + + # explicit ldconfig due to alternatives + ldconfig + + # Update the grub gfxpayload blacklist + if which update-grub-gfxpayload >/dev/null 2>&1; then + update-grub-gfxpayload + fi + ;; +esac + +#DEBHELPER# + --- nvidia-graphics-drivers-173-updates-173.14.35.orig/debian/nvidia-173-updates.examples.in +++ nvidia-graphics-drivers-173-updates-173.14.35/debian/nvidia-173-updates.examples.in @@ -0,0 +1,2 @@ +#DIRNAME#/usr/share/doc/XF86Config.sample + --- nvidia-graphics-drivers-173-updates-173.14.35.orig/debian/nvidia-173-updates-dev.preinst.in +++ nvidia-graphics-drivers-173-updates-173.14.35/debian/nvidia-173-updates-dev.preinst.in @@ -0,0 +1,81 @@ +#! /bin/sh +# preinst script for #DRIVERDEVNAME# +# +# see: dh_installdeb(1) +# +# Copyright (C) 2009-2010 Canonical Ltd +# Authors: Alberto Milone +# +set -e + +case "$1" in + install|upgrade) + # We need to remove diversions from previous versions of the package + + 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 + + # 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 that no diversion is still there + set -a "nvidia-glx-dev" "nvidia-glx-new-dev" "nvidia-glx-legacy-dev" "nvidia-glx-dev-envy"\ + "nvidia-glx-new-dev-envy" "nvidia-glx-legacy-dev-envy" "nvidia-glx-180-dev" \ + "nvidia-glx-177-dev" "nvidia-glx-173-dev" "nvidia-glx-96-dev" "nvidia-glx-71-dev" \ + "nvidia-glx-185-dev" "nvidia-glx-190-dev" + + while [ $# -ge 1 ]; do + glxdevname=$1 + + if dpkg-divert --list /usr/lib/libGL.so | grep $glxdevname > /dev/null ; then + dpkg-divert --remove --rename --package $glxdevname --divert /usr/lib/nvidia/libGL.so.xlibmesa /usr/lib/libGL.so > /dev/null + fi + if dpkg-divert --list /usr/lib/libGL.a | grep $glxdevname > /dev/null ; then + dpkg-divert --remove --rename --package $glxdevname --divert /usr/lib/nvidia/libGL.a.xlibmesa /usr/lib/libGL.a > /dev/null + fi + if dpkg-divert --list /usr/X11R6/lib/libGL.so | grep $glxdevname > /dev/null ; then + dpkg-divert --remove --rename --package $glxdevname --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 $glxdevname > /dev/null ; then + dpkg-divert --remove --rename --package $glxdevname --divert /usr/X11R6/lib/nvidia/libGL.a.xlibmesa /usr/X11R6/lib/libGL.a > /dev/null + fi + + shift + done + + ;; + + 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-173-updates-173.14.35.orig/debian/nvidia-173-updates.links +++ nvidia-graphics-drivers-173-updates-173.14.35/debian/nvidia-173-updates.links @@ -0,0 +1,28 @@ +/usr/lib/nvidia-173-updates/libGL.so.173.14.35 /usr/lib/nvidia-173-updates/libGL.so.1 +/usr/lib/nvidia-173-updates/libGL.so.1 /usr/lib/nvidia-173-updates/libGL.so +/usr/lib/nvidia-173-updates/libGLcore.so.173.14.35 /usr/lib/nvidia-173-updates/libGLcore.so.1 + +/usr/lib/nvidia-173-updates/libnvidia-cfg.so.173.14.35 /usr/lib/nvidia-173-updates/libnvidia-cfg.so.1 +/usr/lib/nvidia-173-updates/libnvidia-cfg.so.1 /usr/lib/nvidia-173-updates/libnvidia-cfg.so + +/usr/lib/nvidia-173-updates/xorg/libglx.so.173.14.35 /usr/lib/nvidia-173-updates/xorg/libglx.so + +/usr/lib/nvidia-173-updates/libXvMCNVIDIA.so.173.14.35 /usr/lib/nvidia-173-updates/libXvMCNVIDIA.so +/usr/lib/nvidia-173-updates/libXvMCNVIDIA.so.173.14.35 /usr/lib/nvidia-173-updates/libXvMCNVIDIA.so.1 +/usr/lib/nvidia-173-updates/libXvMCNVIDIA.so.173.14.35 /usr/lib/nvidia-173-updates/libXvMCNVIDIA_dynamic.so.1 + +/usr/lib/nvidia-173-updates/libnvidia-tls.so.173.14.35 /usr/lib/nvidia-173-updates/libnvidia-tls.so.1 +/usr/lib32/nvidia-173-updates/libGL.so.173.14.35 /usr/lib32/nvidia-173-updates/libGL.so.1 +/usr/lib32/nvidia-173-updates/libGL.so.1 /usr/lib32/nvidia-173-updates/libGL.so +/usr/lib32/nvidia-173-updates/libGLcore.so.173.14.35 /usr/lib32/nvidia-173-updates/libGLcore.so.1 + +/usr/lib32/nvidia-173-updates/libnvidia-cfg.so.173.14.35 /usr/lib32/nvidia-173-updates/libnvidia-cfg.so.1 +/usr/lib32/nvidia-173-updates/libnvidia-cfg.so.1 /usr/lib32/nvidia-173-updates/libnvidia-cfg.so + +/usr/lib/nvidia-173-updates/xorg/libglx.so.173.14.35 /usr/lib/nvidia-173-updates/xorg/libglx.so + +/usr/lib32/nvidia-173-updates/libXvMCNVIDIA.so.173.14.35 /usr/lib32/nvidia-173-updates/libXvMCNVIDIA.so +/usr/lib32/nvidia-173-updates/libXvMCNVIDIA.so.173.14.35 /usr/lib32/nvidia-173-updates/libXvMCNVIDIA.so.1 +/usr/lib32/nvidia-173-updates/libXvMCNVIDIA.so.173.14.35 /usr/lib32/nvidia-173-updates/libXvMCNVIDIA_dynamic.so.1 + +/usr/lib32/nvidia-173-updates/libnvidia-tls.so.173.14.35 /usr/lib32/nvidia-173-updates/libnvidia-tls.so.1 --- nvidia-graphics-drivers-173-updates-173.14.35.orig/debian/nvidia-173-updates.grub-gfxpayload +++ nvidia-graphics-drivers-173-updates-173.14.35/debian/nvidia-173-updates.grub-gfxpayload @@ -0,0 +1,7 @@ +# Warning: This file was autogenerated by nvidia-173-updates. +# All changes to this file will be lost. +# +# Blacklist cards here +# +# Example: blacklist all NVIDIA graphics cards +# v10ded.*sv.*sd.*bc03sc.* --- nvidia-graphics-drivers-173-updates-173.14.35.orig/debian/nvidia-173-updates.grub-gfxpayload.in +++ nvidia-graphics-drivers-173-updates-173.14.35/debian/nvidia-173-updates.grub-gfxpayload.in @@ -0,0 +1,7 @@ +# Warning: This file was autogenerated by #DRIVERNAME#. +# All changes to this file will be lost. +# +# Blacklist cards here +# +# Example: blacklist all NVIDIA graphics cards +# v10ded.*sv.*sd.*bc03sc.* --- nvidia-graphics-drivers-173-updates-173.14.35.orig/debian/nvidia-173-updates.links32 +++ nvidia-graphics-drivers-173-updates-173.14.35/debian/nvidia-173-updates.links32 @@ -0,0 +1,14 @@ +/usr/lib32/nvidia-173-updates/libGL.so.173.14.35 /usr/lib32/nvidia-173-updates/libGL.so.1 +/usr/lib32/nvidia-173-updates/libGL.so.1 /usr/lib32/nvidia-173-updates/libGL.so +/usr/lib32/nvidia-173-updates/libGLcore.so.173.14.35 /usr/lib32/nvidia-173-updates/libGLcore.so.1 + +/usr/lib32/nvidia-173-updates/libnvidia-cfg.so.173.14.35 /usr/lib32/nvidia-173-updates/libnvidia-cfg.so.1 +/usr/lib32/nvidia-173-updates/libnvidia-cfg.so.1 /usr/lib32/nvidia-173-updates/libnvidia-cfg.so + +/usr/lib/nvidia-173-updates/xorg/libglx.so.173.14.35 /usr/lib/nvidia-173-updates/xorg/libglx.so + +/usr/lib32/nvidia-173-updates/libXvMCNVIDIA.so.173.14.35 /usr/lib32/nvidia-173-updates/libXvMCNVIDIA.so +/usr/lib32/nvidia-173-updates/libXvMCNVIDIA.so.173.14.35 /usr/lib32/nvidia-173-updates/libXvMCNVIDIA.so.1 +/usr/lib32/nvidia-173-updates/libXvMCNVIDIA.so.173.14.35 /usr/lib32/nvidia-173-updates/libXvMCNVIDIA_dynamic.so.1 + +/usr/lib32/nvidia-173-updates/libnvidia-tls.so.173.14.35 /usr/lib32/nvidia-173-updates/libnvidia-tls.so.1 --- nvidia-graphics-drivers-173-updates-173.14.35.orig/debian/nvidia-173-updates.dirs +++ nvidia-graphics-drivers-173-updates-173.14.35/debian/nvidia-173-updates.dirs @@ -0,0 +1,23 @@ +/etc/modprobe.d +/usr/lib/nvidia-173-updates +/etc/xdg/autostart +/usr/bin +/usr/lib/nvidia-173-updates/tls +/usr/include/GL +/usr/lib/nvidia-173-updates/bin +/usr/lib/nvidia-173-updates +/usr/lib32/nvidia-173-updates +/usr/lib/xorg/modules/drivers +/usr/lib/xorg/modules/extensions +/usr/lib/x86_64-linux-gnu/xorg +/usr/share/nvidia-173-updates +/usr/share/nvidia-173-updates +/usr/share/man/man1 +/usr/share/pixmaps +/usr/share/lintian/overrides +/usr/share/grub-gfxpayload-lists/blacklist +/usr/lib/nvidia-173-updates/xorg +/usr/lib/nvidia-173-updates/xorg +/usr/src/nvidia-173-updates-173.14.35 +/usr/src/nvidia-173-updates-173.14.35/patches +/lib/nvidia-173-updates --- nvidia-graphics-drivers-173-updates-173.14.35.orig/debian/nvidia-173-updates-dev.preinst +++ nvidia-graphics-drivers-173-updates-173.14.35/debian/nvidia-173-updates-dev.preinst @@ -0,0 +1,81 @@ +#! /bin/sh +# preinst script for nvidia-173-updates-dev +# +# see: dh_installdeb(1) +# +# Copyright (C) 2009-2010 Canonical Ltd +# Authors: Alberto Milone +# +set -e + +case "$1" in + install|upgrade) + # We need to remove diversions from previous versions of the package + + 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 + + # 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 that no diversion is still there + set -a "nvidia-glx-dev" "nvidia-glx-new-dev" "nvidia-glx-legacy-dev" "nvidia-glx-dev-envy"\ + "nvidia-glx-new-dev-envy" "nvidia-glx-legacy-dev-envy" "nvidia-glx-180-dev" \ + "nvidia-glx-177-dev" "nvidia-glx-173-dev" "nvidia-glx-96-dev" "nvidia-glx-71-dev" \ + "nvidia-glx-185-dev" "nvidia-glx-190-dev" + + while [ $# -ge 1 ]; do + glxdevname=$1 + + if dpkg-divert --list /usr/lib/libGL.so | grep $glxdevname > /dev/null ; then + dpkg-divert --remove --rename --package $glxdevname --divert /usr/lib/nvidia/libGL.so.xlibmesa /usr/lib/libGL.so > /dev/null + fi + if dpkg-divert --list /usr/lib/libGL.a | grep $glxdevname > /dev/null ; then + dpkg-divert --remove --rename --package $glxdevname --divert /usr/lib/nvidia/libGL.a.xlibmesa /usr/lib/libGL.a > /dev/null + fi + if dpkg-divert --list /usr/X11R6/lib/libGL.so | grep $glxdevname > /dev/null ; then + dpkg-divert --remove --rename --package $glxdevname --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 $glxdevname > /dev/null ; then + dpkg-divert --remove --rename --package $glxdevname --divert /usr/X11R6/lib/nvidia/libGL.a.xlibmesa /usr/X11R6/lib/libGL.a > /dev/null + fi + + shift + done + + ;; + + 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-173-updates-173.14.35.orig/debian/nvidia_supported +++ nvidia-graphics-drivers-173-updates-173.14.35/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}).*/\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-173-updates-173.14.35.orig/debian/nvidia-173-updates.docs.in +++ nvidia-graphics-drivers-173-updates-173.14.35/debian/nvidia-173-updates.docs.in @@ -0,0 +1,2 @@ +#DIRNAME#/usr/share/doc/NVIDIA_Changelog +#DIRNAME#/usr/share/doc/README.txt --- nvidia-graphics-drivers-173-updates-173.14.35.orig/debian/nvidia-173-updates.postrm.in +++ nvidia-graphics-drivers-173-updates-173.14.35/debian/nvidia-173-updates.postrm.in @@ -0,0 +1,42 @@ +#! /bin/sh +# postrm script for #DRIVERNAME# +# +# see: dh_installdeb(1) +# +# Copyright (C) 2009-2010 Canonical Ltd +# Authors: Alberto Milone + +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) + + ;; + + 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-173-updates-173.14.35.orig/debian/rules +++ nvidia-graphics-drivers-173-updates-173.14.35/debian/rules @@ -0,0 +1,323 @@ +#!/usr/bin/make -f +# +# Copyright (C) 2009 Canonical Ltd +# Authors: Alberto Milone +# +# This file is based on the Mandriva nvidia packages, on Ubuntu's +# previous nvidia packaging scripts and on Ubuntu's fglrx scripts. + +include /usr/share/cdbs/1/rules/debhelper.mk + + +VIDEODEP = $(shell cat /usr/share/xserver-xorg/videodrvdep 2>/dev/null) + +# Manual VIDEO ABI dependencies +# Comment out the following 2 lines to re-enable automatic ABI detection +#VIDEODEP = xorg-video-abi-8.0, xserver-xorg-core (>= 2:1.8.99.905-1ubuntu3) +#VIDEOABI = 8 + +VIDDRIVER_PROVIDES = xorg-driver-video + +DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) +# If the host is i386 set OTHER_ARCH to x86_64 and vice versa +OTHER_ARCH := $(shell (echo "$(DEB_HOST_MULTIARCH)" | grep i386 >/dev/null) && \ + echo "$(DEB_HOST_MULTIARCH)" | sed s/i386/x86_64/ || \ + echo "$(DEB_HOST_MULTIARCH)" | sed s/x86_64/i386/) + +# Hack for pbuild +PATH := $(PATH):/usr/sbin + +# Package names +PKG_driver := nvidia-173-updates +PKG_driver_dev := $(PKG_driver)-dev +PKG_version := $(shell dpkg-parsechangelog | awk -F' ' '/^Version:/ {print $$2}' | awk -F- '{print $$1}') +PKG_source := $(shell dpkg-parsechangelog | sed -n 's/^Source: //p') +PKG_module := $(shell echo "$(PKG_driver)" | sed s/\-/_/g) + +# Priority of the alternative +alt_priority := 9621 + +# Installer details +dirname_x86 := NVIDIA-Linux-x86-$(PKG_version)-pkg0 +dirname_x86_64 := NVIDIA-Linux-x86_64-$(PKG_version)-pkg2 +filename_x86 := $(dirname_x86).run +filename_x86_64 := $(dirname_x86_64).run +url := ftp://download.nvidia.com/XFree86/Linux-x86/$(PKG_version)/$(filename_x86) + +ifeq ($(DEB_BUILD_ARCH),amd64) +filename := $(filename_x86_64) +dirname := $(dirname_x86_64) +else +filename := $(filename_x86) +dirname := $(dirname_x86) +endif + +bindir := /usr/bin +datadir := /usr/share +PKG_datadir := $(datadir)/$(PKG_driver) +libdir := /usr/lib +libdir32 := /usr/lib32 +includedir := /usr/include +sysconfdir := /etc +PKG_libdir := $(libdir)/$(PKG_driver) +PKG_libdir32 := $(libdir32)/$(PKG_driver) +xorg_libdir := $(libdir)/xorg +xorg_extra_path := $(libdir)/$(DEB_HOST_MULTIARCH)/xorg +xorg_extra_modules := $(xorg_extra_path)/extra-modules +xorg_extensionsdir := $(xorg_libdir)/modules/extensions +PKG_driversdir := $(libdir)/$(PKG_driver)/xorg +PKG_extensionsdir := $(PKG_driversdir) +PKG_bindir := $(PKG_libdir)/bin +PKG_deskdir := $(PKG_datadir) +PKG_configdir := $(PKG_libdir) +ld_so_conf_dir := $(PKG_configdir) +ld_so_conf_file := ld.so.conf +alt_ld_so_conf_file := alt_ld.so.conf +ld_so_conf_path := $(ld_so_conf_dir)/$(ld_so_conf_file) +alt_ld_so_conf_path := $(ld_so_conf_dir)/$(alt_ld_so_conf_file) + +mandir := /usr/share/man/man1 +PKG_bugdir := /usr/share/bug/$(PKG_driver) +autostartdir := /etc/xdg/autostart +PKG_autostartdir := $(PKG_configdir) +autostartfile := nvidia-autostart.desktop +desktopfile := ubuntu-nvidia-settings.desktop +PKG_vdpaudir := $(PKG_libdir)/vdpau +PKG_tlsdir := $(PKG_libdir)/tls +PKG_vdpaudir32 := $(PKG_libdir32)/vdpau +PKG_tlsdir32 := $(PKG_libdir32)/tls +vdpaudir := $(libdir)/vdpau +tlsdir := $(libdir)/tls +vdpaudir32 := $(libdir32)/vdpau +tlsdir32 := $(libdir32)/tls +grub_blacklistdir := /usr/share/grub-gfxpayload-lists/blacklist + +# This is a hack to make sure that +# the blacklist file is available +# early in the boot process when +# /usr is on a separate partition. +# See LP: #538071. +PKG_libconfdir := /lib/$(PKG_driver) + +#These "define" bits are needed for the blacklist file +define newline + + +endef + +define blacklist_file +# This file was installed by $(PKG_driver) +# Do not edit this file manually + +blacklist nouveau +blacklist lbm-nouveau +blacklist nvidia-current +blacklist nvidia-173 +blacklist nvidia-96 +blacklist nvidia-current-updates +blacklist nvidia-96-updates +alias nvidia $(PKG_module) +alias nouveau off +alias lbm-nouveau off +endef + +# -Xlib32 +DEB_DH_SHLIBDEPS_ARGS_$(PKG_driver)="-Xtls -Xconf" -X$(PKG_libdir32)# +DEB_SHLIBDEPS_INCLUDE_$(PKG_driver) := $(CURDIR)/debian/$(PKG_driver)$(PKG_libdir)/:$(libdir)/ +DEB_SHLIBDEPS_INCLUDE_$(PKG_driver_dev) := $(CURDIR)/debian/$(PKG_driver_dev)$(PKG_libdir)/:$(libdir)/ + +# This makes sure that the xserver ABI is bumped to match the current one when the +# packages are built +.PHONY: serverabi +serverabi: +ifeq ($(VIDEODEP),) + @echo 'error: xserver-xorg-dev >= 1.7.6.901 needs to be installed' + @exit 1 +else + echo "xviddriver:Depends=$(VIDEODEP)" >> debian/$(PKG_driver).substvars + # the following is there for compatibility... + echo "xviddriver:Provides=$(VIDDRIVER_PROVIDES)" >> debian/$(PKG_driver).substvars +endif + +.PHONY: regen-from-templates +regen-from-templates: + #Create important strings + for i in dkms.conf \ + $(PKG_driver).README.Debian \ + control \ + copyright \ + ubuntu-nvidia-settings.desktop \ + nvidia-autostart.desktop \ + $(PKG_driver).grub-gfxpayload \ + $(PKG_driver).install \ + $(PKG_driver_dev).install \ + $(PKG_driver).links \ + $(PKG_driver).links32 \ + $(PKG_driver_dev).links \ + $(PKG_driver).override \ + $(PKG_driver).dirs \ + $(PKG_driver).docs \ + $(PKG_driver).examples \ + $(PKG_driver).postrm \ + $(PKG_driver).postinst \ + $(PKG_driver).preinst \ + $(PKG_driver).prerm \ + $(PKG_driver_dev).preinst; do \ + sed -e "s|#LIBDIR#|$(libdir)|g" \ + -e "s|#LIBDIR32#|$(libdir32)|g" \ + -e "s|#BINDIR#|$(bindir)|g" \ + -e "s|#VERSION#|$(PKG_version)|g" \ + -e "s|#SYSCONFDIR#|$(sysconfdir)|g" \ + -e "s|#MANDIR#|$(mandir)|g" \ + -e "s|#LDSOCONF#|$(ld_so_conf_path)|g" \ + -e "s|#ALTLDSOCONF#|$(alt_ld_so_conf_path)|g" \ + -e "s|#ALTPRIORITY#|$(alt_priority)|g" \ + -e "s|#AUTOSTARTDIR#|$(autostartdir)|g" \ + -e "s|#AUTOSTARTFILE#|$(autostartfile)|g" \ + -e "s|#DATADIR#|$(datadir)|g" \ + -e "s|#PKGDESKDIR#|$(PKG_deskdir)|g" \ + -e "s|#PKGDATADIR#|$(PKG_datadir)|g" \ + -e "s|#PKGCONFIGDIR#|$(PKG_configdir)|g" \ + -e "s|#PKGBINDIR#|$(PKG_bindir)|g" \ + -e "s|#PKGLIBDIR#|$(PKG_libdir)|g" \ + -e "s|#PKGLIBDIR32#|$(PKG_libdir32)|g" \ + -e "s|#PKGDRIVERSDIR#|$(PKG_driversdir)|g" \ + -e "s|#XORGEXTRA#|$(xorg_extra_modules)|g" \ + -e "s|#XORGEXTRAPATH#|$(xorg_extra_path)|g" \ + -e "s|#NVIDIAEXTENSION#|$(PKG_extensionsdir)|g" \ + -e "s|#XORGEXTENSIONSDIR#|$(xorg_extensionsdir)|g" \ + -e "s|#DRIVERNAME#|$(PKG_driver)|g" \ + -e "s|#DRIVERDEVNAME#|$(PKG_driver_dev)|g" \ + -e "s|#DRIVERSRCNAME#|$(PKG_source)|g" \ + -e "s|#MODULENAME#|$(PKG_module)|g" \ + -e "s|#DIRNAME#|$(dirname)|g" \ + -e "s|#INCLUDEDIR#|$(includedir)|g" \ + -e "s|#URL#|$(url)|g" \ + -e "s|#VDPAUDIR#|$(vdpaudir)|g" \ + -e "s|#VDPAUDIR32#|$(vdpaudir32)|g" \ + -e "s|#TLSDIR#|$(tlsdir)|g" \ + -e "s|#PKGVDPAUDIR#|$(PKG_vdpaudir)|g" \ + -e "s|#PKGVDPAUDIR32#|$(PKG_vdpaudir32)|g" \ + -e "s|#PKGTLSDIR#|$(PKG_tlsdir)|g" \ + -e "s|#PKGLIBCONFDIR#|$(PKG_libconfdir)|g" \ + -e "s|#GRUBBLKLISTDIR#|$(grub_blacklistdir)|g" \ + -e "s|#DEB_HOST_MULTIARCH#|$(DEB_HOST_MULTIARCH)|g" \ + -e "s|#OTHER_ARCH#|$(OTHER_ARCH)|g" \ + debian/$$i.in > debian/$$i; \ + done +ifeq ($(DEB_BUILD_ARCH),amd64) + cat $(CURDIR)/debian/$(PKG_driver).links $(CURDIR)/debian/$(PKG_driver).links32 > \ + $(CURDIR)/debian/$(PKG_driver).links_new + mv -f $(CURDIR)/debian/$(PKG_driver).links_new $(CURDIR)/debian/$(PKG_driver).links +endif +# Pre-config +#makebuilddir/$(PKG_driver):: regen-from-templates + +configure/$(PKG_driver):: + rm -rf $(dirname_x86) $(dirname_x86_64) + + # Make the installers executable and extract them + chmod 755 $(filename_x86) + chmod 755 $(filename_x86_64) + ./$(filename_x86) --extract-only + ./$(filename_x86_64) --extract-only + + # Get around Xen checks + 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 + + # kernel module source + mkdir -p $(CURDIR)/debian/temp/modules/nvidia-kernel/nv + cp -R $(CURDIR)/$(dirname)/usr/src/nv $(CURDIR)/debian/temp/modules/nvidia-kernel/ + cp $(CURDIR)/debian/temp/modules/nvidia-kernel/nv/Makefile.kbuild \ + $(CURDIR)/debian/temp/modules/nvidia-kernel/nv/Makefile + + # Rename the png file for nvidia-settings + mv $(dirname)/usr/share/pixmaps/nvidia-settings.png \ + $(dirname)/usr/share/pixmaps/$(PKG_driver)-settings.png + + # Disable the stack markings of binaries for security reasons. + # See (LP: #409456) + find $(dirname) -name *.so* | xargs -n1 execstack -c + +ifeq ($(DEB_BUILD_ARCH),amd64) + # Disable the stack markings of 32bit binaries on amd64 + # See (LP: #409456) + find $(dirname_x86) -name *.so* | xargs -n1 execstack -c +endif + # Disable the stack markings of other binaries (only for the current arch) + # Note: don't use for loops or pass more than 1 argument to execstack + # or it will fail. + execstack -c $(dirname)$(bindir)/nvidia-xconfig || true + execstack -c $(dirname)$(bindir)/nvidia-smi || true + + +#binary-install/$(PKG_driver_dev):: + +binary-install/$(PKG_driver):: serverabi +ifeq ($(DEB_BUILD_ARCH),amd64) + #32 bit libraries on 64 bit + dh_installdirs -p$(PKG_driver) "$(PKG_libdir32)" + dh_installdirs -p$(PKG_driver) "$(PKG_tlsdir32)" + + dh_install -p$(PKG_driver) "$(dirname_x86)$(libdir)/libGL*.so*" "$(PKG_libdir32)" + dh_install -p$(PKG_driver) "$(dirname_x86)$(libdir)/libnvidia*.so*" "$(PKG_libdir32)" + #dh_install -p$(PKG_driver) "$(dirname_x86)$(libdir)/libcuda*.so*" "$(PKG_libdir32)" + + dh_install -p$(PKG_driver) "$(dirname_x86)/usr/X11R6/lib/*.so*" "$(PKG_libdir32)" + dh_install -p$(PKG_driver) "$(dirname_x86)$(tlsdir)/lib*" "$(PKG_tlsdir32)" +endif + # Generate modaliases for Jockey and nvidia-common + mkdir -p $(CURDIR)/debian/$(PKG_driver)-modaliases/usr/share/jockey/modaliases/ + sh -e $(CURDIR)/debian/nvidia_supported \ + $(dirname)/usr/src/nv/nv-kernel.o $(PKG_module) $(PKG_driver) \ + > $(CURDIR)/debian/$(PKG_driver).modaliases + dh_modaliases + rm $(CURDIR)/debian/$(PKG_driver).modaliases + + # Configuration stuff + + # ld.so.conf + dh_installdirs -p$(PKG_driver) "$(ld_so_conf_dir)" + echo "$(PKG_libdir)" > "$(CURDIR)/debian/$(PKG_driver)$(ld_so_conf_path)" +ifeq ($(DEB_BUILD_ARCH),amd64) + echo "$(PKG_libdir32)" >> $(CURDIR)/debian/$(PKG_driver)$(ld_so_conf_path) +endif + # empty ld.so.conf for the fake multi-arch alternative + $(shell touch "$(CURDIR)/debian/$(PKG_driver)$(alt_ld_so_conf_path)") + + # Blacklist any other driver that udev may want to load instead of $(PKG_module) + # and create an alias for the module so that it can be used as nvidia + printf '$(subst $(newline),\n,${blacklist_file})' > $(CURDIR)/debian/$(PKG_driver)$(PKG_libconfdir)/modprobe.conf + + # XvMCConfig + dh_installdirs -p$(PKG_driver) "$(PKG_configdir)" + echo "libXvMCNVIDIA_dynamic.so.1" > $(CURDIR)/debian/$(PKG_driver)/$(PKG_configdir)/XvMCConfig + + dh_install -p$(PKG_driver) $(dirname)$(mandir)/nvidia-xconfig.1.gz "$(mandir)"; + dh_install -p$(PKG_driver) $(dirname)$(mandir)/nvidia-settings.1.gz "$(mandir)"; +# dh_install -p$(PKG_driver) $(dirname)$(mandir)/nvidia-smi.1.gz "$(mandir)"; + + # Rename the man pages in order to use alternatives + for file in $(CURDIR)/debian/$(PKG_driver)$(mandir)/*.gz; do \ + mv $$file $(CURDIR)/debian/$(PKG_driver)$(mandir)/`basename $$file | sed 's/nvidia/alt-$(PKG_driver)/'`; \ + done + + rm -rf debian/temp + + +clean:: regen-from-templates +# for file in $(CURDIR)/debian/*.in \ +# ; do \ +# if [ `basename $$file` != "control.in" ]; then \ +# rm -f $(CURDIR)/debian/`basename $$file | sed 's/\.in\$$//'`; \ +# fi \ +# done + rm -fr $(dirname_x86) $(dirname_x86_64) + rm -fr debian/temp + + --- nvidia-graphics-drivers-173-updates-173.14.35.orig/debian/nvidia-173-updates.prerm +++ nvidia-graphics-drivers-173-updates-173.14.35/debian/nvidia-173-updates.prerm @@ -0,0 +1,42 @@ +#!/bin/sh +# prerm script for nvidia-173-updates +# +# Copyright (C) 2007 Mario Limonciello +# Copyright (C) 2009 Canonical Ltd +# Authors: Alberto Milone + + +PACKAGE_NAME=nvidia-173-updates +CVERSION=`dpkg-query -W -f='${Version}' $PACKAGE_NAME | awk -F "-" '{print $1}' | cut -d\: -f2` + +remove_dkms_module() { + echo "Removing all DKMS Modules" + dkms remove -m $PACKAGE_NAME -v $CVERSION --all > /dev/null + echo "Done." +} + +case "$1" in + upgrade) + remove_dkms_module + ;; + remove) + remove_dkms_module + + update-alternatives --remove x86_64-linux-gnu_gl_conf /usr/lib/nvidia-173-updates/ld.so.conf + update-alternatives --remove i386-linux-gnu_gl_conf /usr/lib/nvidia-173-updates/alt_ld.so.conf + + # Trigger gmenu so as to update the gnome menu + dpkg-trigger --by-package=$PACKAGE_NAME gmenucache || true + + # explicit ldconfig due to alternatives + ldconfig + + # Update the grub gfxpayload blacklist + if which update-grub-gfxpayload >/dev/null 2>&1; then + update-grub-gfxpayload + fi + ;; +esac + +#DEBHELPER# + --- nvidia-graphics-drivers-173-updates-173.14.35.orig/debian/nvidia-173-updates-dev.links +++ nvidia-graphics-drivers-173-updates-173.14.35/debian/nvidia-173-updates-dev.links @@ -0,0 +1 @@ +/usr/include/nvidia-173-updates /usr/share/doc/nvidia-173-updates-dev/include --- nvidia-graphics-drivers-173-updates-173.14.35.orig/debian/nvidia-173-updates.override +++ nvidia-graphics-drivers-173-updates-173.14.35/debian/nvidia-173-updates.override @@ -0,0 +1,86 @@ +nvidia-173-updates: library-not-linked-against-libc ./usr/lib/libGL.so.173.14.35 + +nvidia-173-updates: shared-lib-without-dependency-information ./usr/lib/libGLcore.so.173.14.35 + +nvidia-173-updates: library-not-linked-against-libc ./usr/lib/xorg/modules/extensions/libglx.so.173.14.35 + +nvidia-173-updates: shlib-with-non-pic-code usr/lib/libGL.so.173.14.35 +nvidia-173-updates: shlib-with-non-pic-code usr/lib/libGLcore.so.173.14.35 +nvidia-173-updates: shlib-with-non-pic-code usr/lib/xorg/modules/extensions/libglx.so.173.14.35 +nvidia-173-updates: shlib-with-non-pic-code usr/lib/libXvMCNVIDIA.so.173.14.35 + +nvidia-173-updates: non-dev-pkg-with-shlib-symlink usr/lib/libGL.so.173.14.35 usr/lib/libGL.so +nvidia-173-updates: non-dev-pkg-with-shlib-symlink usr/lib/xorg/modules/extensions/libglx.so.173.14.35 usr/lib/xorg/modules/extensions/libglx.so + + +nvidia-173-updates: script-not-executable usr/src/nvidia-173-updates-173.14.35/conftest.sh +nvidia-173-updates: maintainer-script-ignores-errors prerm +nvidia-173-updates: shlib-with-non-pic-code usr/lib/nvidia-173-updates/libGL.so.173.14.35 +nvidia-173-updates: shlib-without-PT_GNU_STACK-section usr/lib/nvidia-173-updates/libGL.so.173.14.35 +nvidia-173-updates: shlib-with-non-pic-code usr/lib/nvidia-173-updates/libGLcore.so.173.14.35 +nvidia-173-updates: shlib-without-PT_GNU_STACK-section usr/lib/nvidia-173-updates/libGLcore.so.173.14.35 +nvidia-173-updates: shlib-with-non-pic-code usr/lib/nvidia-173-updates/libXvMCNVIDIA.so.173.14.35 +nvidia-173-updates: shlib-without-PT_GNU_STACK-section usr/lib/nvidia-173-updates/libXvMCNVIDIA.so.173.14.35 +nvidia-173-updates: shlib-with-non-pic-code usr/lib/nvidia-173-updates/libnvidia-cfg.so.173.14.35 +nvidia-173-updates: shlib-without-PT_GNU_STACK-section usr/lib/nvidia-173-updates/libnvidia-cfg.so.173.14.35 +nvidia-173-updates: shlib-with-non-pic-code usr/lib/nvidia-173-updates/libnvidia-tls.so.173.14.35 +nvidia-173-updates: shlib-without-PT_GNU_STACK-section usr/lib/nvidia-173-updates/libnvidia-tls.so.173.14.35 +nvidia-173-updates: shlib-without-PT_GNU_STACK-section usr/lib/nvidia-173-updates/libvdpau.so.173.14.35 +nvidia-173-updates: shlib-with-non-pic-code usr/lib/nvidia-173-updates/tls/libnvidia-tls.so.173.14.35 +nvidia-173-updates: shlib-without-PT_GNU_STACK-section usr/lib/nvidia-173-updates/tls/libnvidia-tls.so.173.14.35 +nvidia-173-updates: shlib-with-non-pic-code usr/lib/nvidia-173-updates/vdpau/libvdpau_nvidia.so.173.14.35 +nvidia-173-updates: shlib-without-PT_GNU_STACK-section usr/lib/nvidia-173-updates/vdpau/libvdpau_nvidia.so.173.14.35 +nvidia-173-updates: shlib-without-PT_GNU_STACK-section usr/lib/nvidia-173-updates/vdpau/libvdpau_trace.so.173.14.35 +nvidia-173-updates: shlib-with-non-pic-code usr/lib/nvidia-173-updates/xorg/libglx.so.173.14.35 +nvidia-173-updates: shlib-without-PT_GNU_STACK-section usr/lib/nvidia-173-updates/xorg/libglx.so.173.14.35 +nvidia-173-updates: shlib-with-non-pic-code usr/lib/tls/libnvidia-tls.so.173.14.35 +nvidia-173-updates: shlib-without-PT_GNU_STACK-section usr/lib/tls/libnvidia-tls.so.173.14.35 +nvidia-173-updates: shlib-with-non-pic-code usr/lib/vdpau/libvdpau_nvidia.so.173.14.35 +nvidia-173-updates: shlib-without-PT_GNU_STACK-section usr/lib/vdpau/libvdpau_nvidia.so.173.14.35 +nvidia-173-updates: shlib-without-PT_GNU_STACK-section usr/lib/vdpau/libvdpau_trace.so.173.14.35 +nvidia-173-updates: unused-shlib-entry-in-control-file libnvidia-tls 190 +nvidia-173-updates: shlibs-declares-dependency-on-other-package libgl1-mesa | libgl1 +nvidia-173-updates: prerm-calls-ldconfig +nvidia-173-updates: copyright-without-copyright-notice +nvidia-173-updates: desktop-command-not-in-package /usr/share/applications/nvidia-173-updates/ubuntu-nvidia-settings.desktop /usr/bin/nvidia-settings +nvidia-173-updates: shared-lib-without-dependency-information ./usr/lib/nvidia-173-updates/libnvidia-tls.so.173.14.35 +nvidia-173-updates: shared-lib-without-dependency-information ./usr/lib/nvidia-173-updates/tls/libnvidia-tls.so.173.14.35 +nvidia-173-updates: shared-lib-without-dependency-information ./usr/lib/tls/libnvidia-tls.so.173.14.35 +nvidia-173-updates: unknown-section restricted/misc +nvidia-185-modaliases: copyright-without-copyright-notice +nvidia-185-modaliases: extended-description-line-too-long +nvidia-glx-185-dev: copyright-without-copyright-notice +nvidia-glx-185-dev: extended-description-line-too-long +nvidia-glx-185-dev: unknown-section restricted/misc +nvidia-185-kernel-source: copyright-without-copyright-notice +nvidia-185-kernel-source: unknown-section restricted/misc +nvidia-173-updates-dev: shlib-with-non-pic-code usr/lib/nvidia-173-updates/libXvMCNVIDIA.so.173.14.35 +nvidia-173-updates-dev: shlib-without-PT_GNU_STACK-section usr/lib/nvidia-173-updates/libXvMCNVIDIA.so.173.14.35 +nvidia-173-updates-dev: postinst-has-useless-call-to-ldconfig +nvidia-173-updates-dev: postrm-has-useless-call-to-ldconfig +nvidia-173-updates-dev: copyright-without-copyright-notice +nvidia-173-updates-dev: missing-dependency-on-libc needed by ./usr/lib/nvidia-173-updates/libXvMCNVIDIA.so.173.14.35 +nvidia-173-updates-dev: unknown-section restricted/misc +nvidia-glx-185: copyright-without-copyright-notice +nvidia-glx-185: unknown-section restricted/misc +nvidia-173-updates-modaliases: copyright-without-copyright-notice + +nvidia-173-updates: script-not-executable ./usr/src/nvidia-173-updates-173.14.35/conftest.sh +nvidia-173-updates: maintainer-script-ignores-errors prerm +nvidia-173-updates: shlib-with-non-pic-code usr/lib32/nvidia-173-updates/libGL.so.173.14.35 +nvidia-173-updates: shlib-with-non-pic-code usr/lib32/nvidia-173-updates/libGLcore.so.173.14.35 +nvidia-173-updates: shlib-with-non-pic-code usr/lib32/nvidia-173-updates/libXvMCNVIDIA.so.173.14.35 +nvidia-173-updates: shlib-without-PT_GNU_STACK-section usr/lib32/nvidia-173-updates/libXvMCNVIDIA.so.173.14.35 +nvidia-173-updates: shlib-with-non-pic-code usr/lib32/nvidia-173-updates/libnvidia-cfg.so.173.14.35 +nvidia-173-updates: shlib-with-non-pic-code usr/lib32/nvidia-173-updates/libnvidia-tls.so.173.14.35 +nvidia-173-updates: shlib-with-non-pic-code usr/lib32/nvidia-173-updates/libvdpau_nvidia.so.173.14.35 +nvidia-173-updates: shlib-with-non-pic-code usr/lib32/nvidia-173-updates/tls/libnvidia-tls.so.173.14.35 +nvidia-173-updates: shlib-without-PT_GNU_STACK-section usr/lib32/nvidia-173-updates/tls/libnvidia-tls.so.173.14.35 + +nvidia-173-updates: shared-lib-without-dependency-information ./usr/lib/nvidia-173-updates/libnvidia-tls.so.173.14.35 +nvidia-173-updates: shared-lib-without-dependency-information ./usr/lib/nvidia-173-updates/tls/libnvidia-tls.so.173.14.35 +nvidia-173-updates: shared-lib-without-dependency-information ./usr/lib/tls/libnvidia-tls.so.173.14.35 +nvidia-173-updates: shared-lib-without-dependency-information ./usr/lib32/nvidia-173-updates/libnvidia-tls.so.173.14.35 +nvidia-173-updates: shared-lib-without-dependency-information ./usr/lib32/nvidia-173-updates/tls/libnvidia-tls.so.173.14.35 + + --- nvidia-graphics-drivers-173-updates-173.14.35.orig/debian/copyright.in +++ nvidia-graphics-drivers-173-updates-173.14.35/debian/copyright.in @@ -0,0 +1,195 @@ +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. + +--------------------------------------------------------------------- + +The Debian packaging is (C) 2009, Canonical Ltd and is licensed +under the GPL, see `/usr/share/common-licenses/GPL'. --- nvidia-graphics-drivers-173-updates-173.14.35.orig/debian/nvidia-173-updates.links.in +++ nvidia-graphics-drivers-173-updates-173.14.35/debian/nvidia-173-updates.links.in @@ -0,0 +1,14 @@ +#PKGLIBDIR#/libGL.so.#VERSION# #PKGLIBDIR#/libGL.so.1 +#PKGLIBDIR#/libGL.so.1 #PKGLIBDIR#/libGL.so +#PKGLIBDIR#/libGLcore.so.#VERSION# #PKGLIBDIR#/libGLcore.so.1 + +#PKGLIBDIR#/libnvidia-cfg.so.#VERSION# #PKGLIBDIR#/libnvidia-cfg.so.1 +#PKGLIBDIR#/libnvidia-cfg.so.1 #PKGLIBDIR#/libnvidia-cfg.so + +#NVIDIAEXTENSION#/libglx.so.#VERSION# #NVIDIAEXTENSION#/libglx.so + +#PKGLIBDIR#/libXvMCNVIDIA.so.#VERSION# #PKGLIBDIR#/libXvMCNVIDIA.so +#PKGLIBDIR#/libXvMCNVIDIA.so.#VERSION# #PKGLIBDIR#/libXvMCNVIDIA.so.1 +#PKGLIBDIR#/libXvMCNVIDIA.so.#VERSION# #PKGLIBDIR#/libXvMCNVIDIA_dynamic.so.1 + +#PKGLIBDIR#/libnvidia-tls.so.#VERSION# #PKGLIBDIR#/libnvidia-tls.so.1 --- nvidia-graphics-drivers-173-updates-173.14.35.orig/debian/nvidia-173-updates.README.Debian +++ nvidia-graphics-drivers-173-updates-173.14.35/debian/nvidia-173-updates.README.Debian @@ -0,0 +1,89 @@ +NVIDIA video drivers for Ubuntu +============================ + +Further information can be found at http://www.nvidia.com/ -- look for +the "Download Drivers" tab and follow links to the Linux drivers. + +This package is generated from the official NVIDIA driver +installer that is available from the above homepage. + +DKMS +------------------------- + Ubuntu includes support to build modules using a utility developed by + Dell, called DKMS. It will automatically build your kernel module + for you when you first boot into the kernel (or as necessary). + + Note: the OBSOLETE_BY line in dkms.conf specifies a kernel version + which obsoletes the necessity for this particular DKMS module. + For example, OBSOLETE_BY=2.6.39 will prevent DKMS from building + modules for kernels >= 2.6.39. + + See the DKMS man page for more information. + +Kernel patches +------------------------- + If you need to provide a kernel patch (say for a kernel not formally + supported yet by NVIDIA), you can add this patch in the + debian/dkms/patches directory and mention the patch in the + debian/dkms.conf.in file. + + It is usually a good idea to restrict the use of a patch to certain + kernel versions with the PATCH_MATCH[n] variable. + + See the DKMS man page for more information. + +32 bit libraries on 64 bit systems +------------------------- + 32 bit libraries are provided on 64 bit systems for compatibility + reasons. + + The following templates are merged together into the same file on + amd64: + debian/nvidia-current.links32.in + debian/nvidia-current.links.in + + $ld_so_conf_path lets the system know where it should look for 32 + bit libraries. + +Update procedure +------------------------- +When a new NVIDIA is available, do the following to update +nvidia-173-updates: + +0. On your build system, make sure you have the prerequisites + installed: + + $ sudo apt-get build-dep nvidia-173-updates + +1. Download the NVIDIA installers i.e. the .run files. + +2. dch -i to update the version in the debian/changelog so that it + matches the new upstream version. + + Also make sure that the changelog includes both the changes you + made (if any) to the files in debian/ changes and the changes from + upstream (i.e. NVIDIA) which you can find in the release notes of + the driver. + +3. debclean to regenerate most of the files in debian/ from their + templates. + +4. Temporarily move the debian/ directory out of the source directory + and compress it as $SOURCE_NAME _ $NEW_VERSION . orig . tar . gz + e.g. nvidia-graphics-drivers-173-updates_173.14.35.orig.tar.gz + +5. Move the debian/ directory back to the source directory and type + debuild -S -sa to produce a new .dsc + +6. Verify the new .dsc produces valid .debs by running it through + pbuilder, sbuild, etc. as usual. + +7. Install and test the .debs, and then dput the .changes file + + +IMPORTANT NOTE: If any changes to files in debian/ are needed, make sure +to discuss your changes with the maintainer (Alberto aka tseliot) before +you upload. + + + -- Alberto Milone Mon, 21 Dec 2009 12:36:15 +0100 --- nvidia-graphics-drivers-173-updates-173.14.35.orig/debian/ubuntu-nvidia-settings.desktop.in +++ nvidia-graphics-drivers-173-updates-173.14.35/debian/ubuntu-nvidia-settings.desktop.in @@ -0,0 +1,8 @@ +[Desktop Entry] +Type=Application +Encoding=UTF-8 +Name=NVIDIA X Server Settings +Comment=Configure NVIDIA X Server Settings +Exec=#BINDIR#/nvidia-settings +Icon=#DRIVERNAME#-settings +Categories=System;Settings; --- nvidia-graphics-drivers-173-updates-173.14.35.orig/debian/nvidia-autostart.desktop +++ nvidia-graphics-drivers-173-updates-173.14.35/debian/nvidia-autostart.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Type=Application +Encoding=UTF-8 +Name=NVIDIA X Server Settings +Comment=Configure NVIDIA X Server Settings +Exec=sh -c '/usr/bin/nvidia-settings --load-config-only' +Terminal=false +Icon=nvidia-173-updates-settings +Categories=System;Settings; --- nvidia-graphics-drivers-173-updates-173.14.35.orig/debian/nvidia-173-updates.docs +++ nvidia-graphics-drivers-173-updates-173.14.35/debian/nvidia-173-updates.docs @@ -0,0 +1,2 @@ +NVIDIA-Linux-x86_64-173.14.35-pkg2/usr/share/doc/NVIDIA_Changelog +NVIDIA-Linux-x86_64-173.14.35-pkg2/usr/share/doc/README.txt --- nvidia-graphics-drivers-173-updates-173.14.35.orig/debian/nvidia-173-updates.install.in +++ nvidia-graphics-drivers-173-updates-173.14.35/debian/nvidia-173-updates.install.in @@ -0,0 +1,28 @@ +debian/#DRIVERNAME#.override usr/share/lintian/overrides +#Blacklist some card ids from GRUB gfxpayload=keep +debian/#DRIVERNAME#.grub-gfxpayload #PKGDATADIR# + +#DIRNAME#/usr/X11R6/lib/modules/drivers/nvidia_drv.so #PKGDRIVERSDIR# +#DIRNAME#/usr/X11R6/lib/modules/extensions/libglx.so.#VERSION# #NVIDIAEXTENSION# + +#DIRNAME#/usr/lib/libGL*.so* #PKGLIBDIR# +#DIRNAME#/usr/lib/libnvidia*.so* #PKGLIBDIR# + +#DIRNAME#/usr/lib/tls/*.so* #PKGTLSDIR# + +#DIRNAME#/usr/X11R6/lib/libXvMCNVIDIA.so.#VERSION# #PKGLIBDIR# + +debian/dkms/patches/* usr/src/#DRIVERNAME#-#VERSION#/patches +debian/dkms.conf usr/src/#DRIVERNAME#-#VERSION# +debian/temp/modules/nvidia-kernel/nv/* usr/src/#DRIVERNAME#-#VERSION# + +#DIRNAME#/usr/bin/nvidia-bug-report.sh #PKGBINDIR# +#DIRNAME#/usr/bin/nvidia-xconfig #PKGBINDIR# +#DIRNAME#/usr/bin/nvidia-smi #PKGBINDIR# + +#DIRNAME#/usr/share/pixmaps/#DRIVERNAME#-settings.png #DATADIR#/pixmaps + +debian/ubuntu-nvidia-settings.desktop #PKGDESKDIR# + +debian/#AUTOSTARTFILE# #PKGDATADIR# + --- nvidia-graphics-drivers-173-updates-173.14.35.orig/debian/ubuntu-nvidia-settings.desktop +++ nvidia-graphics-drivers-173-updates-173.14.35/debian/ubuntu-nvidia-settings.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Type=Application +Encoding=UTF-8 +Name=NVIDIA X Server Settings +Comment=Configure NVIDIA X Server Settings +Exec=/usr/bin/nvidia-settings +Icon=nvidia-173-updates-settings +Categories=System;Settings; --- nvidia-graphics-drivers-173-updates-173.14.35.orig/debian/nvidia-173-updates.dirs.in +++ nvidia-graphics-drivers-173-updates-173.14.35/debian/nvidia-173-updates.dirs.in @@ -0,0 +1,23 @@ +#SYSCONFDIR#/modprobe.d +#PKGLIBDIR# +#AUTOSTARTDIR# +#BINDIR# +#PKGTLSDIR# +#INCLUDEDIR#/GL +#PKGBINDIR# +#PKGLIBDIR# +#PKGLIBDIR32# +/usr/lib/xorg/modules/drivers +/usr/lib/xorg/modules/extensions +#XORGEXTRAPATH# +#PKGDATADIR# +#PKGDESKDIR# +#MANDIR# +#DATADIR#/pixmaps +/usr/share/lintian/overrides +/usr/share/grub-gfxpayload-lists/blacklist +#PKGDRIVERSDIR# +#NVIDIAEXTENSION# +/usr/src/#DRIVERNAME#-#VERSION# +/usr/src/#DRIVERNAME#-#VERSION#/patches +#PKGLIBCONFDIR# --- nvidia-graphics-drivers-173-updates-173.14.35.orig/debian/dkms/patches/fix-build-with-linux-3.0.patch +++ nvidia-graphics-drivers-173-updates-173.14.35/debian/dkms/patches/fix-build-with-linux-3.0.patch @@ -0,0 +1,39 @@ +From f5faf62cf5c025ae27adaf095046833ccd388f5c Mon Sep 17 00:00:00 2001 +From: Alberto Milone +Date: Tue, 14 Jun 2011 16:27:32 +0200 +Subject: [PATCH 1/1] Fix build with linux 3.0 + +--- + conftest.sh | 2 +- + nv-linux.h | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/conftest.sh b/conftest.sh +index 9463c61..5ee43a7 100644 +--- a/conftest.sh ++++ b/conftest.sh +@@ -77,7 +77,7 @@ test_xen() { + build_cflags() { + ARCH=`uname -m | sed -e 's/i.86/i386/'` + +- BASE_CFLAGS="-D__KERNEL__ \ ++ BASE_CFLAGS="-O2 -D__KERNEL__ \ + -DKBUILD_BASENAME=\"#conftest$$\" -DKBUILD_MODNAME=\"#conftest$$\" \ + -nostdinc -isystem $ISYSTEM" + +diff --git a/nv-linux.h b/nv-linux.h +index 524e0dd..70eedc3 100644 +--- a/nv-linux.h ++++ b/nv-linux.h +@@ -30,7 +30,7 @@ + # define KERNEL_2_4 + #elif LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0) + # error This driver does not support 2.5 kernels! +-#elif LINUX_VERSION_CODE < KERNEL_VERSION(2, 7, 0) ++#elif LINUX_VERSION_CODE < KERNEL_VERSION(4, 0, 0) + # define KERNEL_2_6 + #else + # error This driver does not support development kernels! +-- +1.7.4.1 +