[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#698246: unblock: nvidia-graphics-drivers-legacy-96xx/96.43.23-3



Package: release.debian.org
Severity: normal
User: release.debian.org@packages.debian.org
Usertags: unblock

Please unblock package nvidia-graphics-drivers-legacy-96xx

All changes from nvidia-graphics-drivers and -legacy-173xx that
recently migrated to testing (or are at least unblocked) and are
applicable to the legacy 96xx drivers as well have been merged into
96.43.23-3 to apply the fixes and keep the packaging in sync:

  * Synchronize packaging with nvidia-graphics-drivers 304.48-2:
    - libgl1-nvidia-legacy-96xx-glx-ia32: readd
      Depends: libgl1-nvidia-alternatives-ia32 to prevent apt from removing
      libgl1-nvidia-alternatives-ia32 (which would remove the diversions)
      while the old (pre-transitional) libgl1-nvidia-legacy-96xx-glx-ia32 is
      still installed.
    - get-orig-source: Fix caching for legacy drivers.
    - bug-control: Report version info about revived
      libgl1-nvidia-legacy-96xx-glx-ia32.
    - Upgrade nvidia-settings relationship from Suggests to Recommends and use
      a substvar for the name of the compatible nvidia-settings package.
    - There is no need to exclude squeeze-backports from using xz compression.
  * Synchronize packaging with nvidia-graphics-drivers 304.60-1:
    - libgl1-nvidia-legacy-96xx-glx:i386: Breaks: ia32-libs (<< 1:0),
      versioning was fixed.
    - Fix missing legacy substitution.
    - conftest.h:
      - Implement checks for linux/efi.h and linux/nvmap.h (310.14).
      - Implement new conftest.sh functions outer_flush_all, nvmap_support,
        and efi_enabled (310.14).
  * Synchronize packaging with nvidia-graphics-drivers 304.60-2:
    - build-module-packages.sh: Build modules only for the variant (current or
      legacy-abcxx) that shipped the script.
  * Synchronize packaging with nvidia-graphics-drivers 304.64-1:
    - conftest.h: Implement new conftest.sh function set_memory_array_uc.
    - build-module-packages.sh: Build modules only for the variant (current or
      legacy-abcxx) that shipped the script.
  * Synchronize packaging with nvidia-graphics-drivers 304.64-2:
    - Always use the upstream changelog from the x86_64 release to avoid minor
      differences causing multiarch conflicts.
  * Synchronize packaging with nvidia-graphics-drivers 304.64-4:
    - kernel-3.7.patch: New patch to fix compilation with Linux 3.7 (which
      replaced VM_RESERVED by VM_DONTEXPAND | VM_DONTDUMP).
  * Synchronize packaging with nvidia-graphics-drivers 304.64-5:
    - Fix debian/module/debian/kernel-version to cope with
      $KSRC/linux/version.h being moved to
      $KSRC/include/generated/uapi/linux/version.h in Linux 3.7.
  * Synchronize packaging with nvidia-graphics-drivers-legacy-173xx
    173.14.35-4:
    - Use nvidia-settings-legacy-173xx as the name of the compatible
      nvidia-settings package.
    - Adjust kernel-3.7.patch for a different filename in legacy-96xx.

unblock nvidia-graphics-drivers-legacy-96xx/96.43.23-3
diffstat for nvidia-graphics-drivers-legacy-96xx-96.43.23 nvidia-graphics-drivers-legacy-96xx-96.43.23

 bug-control.in                         |    2 -
 build-module-packages.sh               |   19 -------------
 build-module-packages.sh.in            |   19 +++++++++++++
 changelog                              |   47 +++++++++++++++++++++++++++++++++
 control                                |    9 +++---
 module/conftest.h                      |   37 ++++++++++++++++++++++++-
 module/debian/kernel-version           |   16 +++++++----
 module/debian/patches/kernel-3.7.patch |   22 +++++++++++++++
 module/debian/patches/series           |    1 
 rules                                  |   13 +++++----
 rules.defs                             |    2 +
 11 files changed, 150 insertions(+), 37 deletions(-)

diff -Nru nvidia-graphics-drivers-legacy-96xx-96.43.23/debian/bug-control.in nvidia-graphics-drivers-legacy-96xx-96.43.23/debian/bug-control.in
--- nvidia-graphics-drivers-legacy-96xx-96.43.23/debian/bug-control.in	2012-09-19 12:59:58.000000000 +0200
+++ nvidia-graphics-drivers-legacy-96xx-96.43.23/debian/bug-control.in	2013-01-15 22:29:42.000000000 +0100
@@ -1,3 +1,3 @@
 report-with: nvidia-glx#LEGACY# libgl1-nvidia#LEGACY#-glx xserver-xorg-video-nvidia#LEGACY# nvidia-alternative#LEGACY# nvidia-kernel#LEGACY#-dkms nvidia-kernel#LEGACY#-source glx-alternative-nvidia
 
-package-status: nvidia-glx#LEGACY# nvidia-kernel#LEGACY#-dkms nvidia-kernel#LEGACY#-source nvidia-glx-any libgl1-nvidia-glx-any libgl1-nvidia-glx-ia32-any libgl1-nvidia-glx-ia32 libgl1-nvidia-legacy-173xx-glx-ia32 libgl1-nvidia-alternatives-ia32 xserver-xorg-video-nvidia-any nvidia-settings nvidia-xconfig nvidia-support nvidia-kernel-common xserver-xorg xserver-xorg-core linux-headers libdrm-nouveau1 libdrm-nouveau1a xserver-xorg-video-nouveau ia32-libs
+package-status: nvidia-glx#LEGACY# nvidia-kernel#LEGACY#-dkms nvidia-kernel#LEGACY#-source nvidia-glx-any libgl1-nvidia-glx-any libgl1-nvidia-glx-ia32-any libgl1-nvidia-glx-ia32 libgl1-nvidia-legacy-173xx-glx-ia32 libgl1-nvidia-legacy-96xx-glx-ia32 libgl1-nvidia-alternatives-ia32 xserver-xorg-video-nvidia-any nvidia-settings nvidia-xconfig nvidia-support nvidia-kernel-common xserver-xorg xserver-xorg-core linux-headers libdrm-nouveau1 libdrm-nouveau1a xserver-xorg-video-nouveau ia32-libs
diff -Nru nvidia-graphics-drivers-legacy-96xx-96.43.23/debian/build-module-packages.sh nvidia-graphics-drivers-legacy-96xx-96.43.23/debian/build-module-packages.sh
--- nvidia-graphics-drivers-legacy-96xx-96.43.23/debian/build-module-packages.sh	2011-07-05 14:05:55.000000000 +0200
+++ nvidia-graphics-drivers-legacy-96xx-96.43.23/debian/build-module-packages.sh	1970-01-01 01:00:00.000000000 +0100
@@ -1,19 +0,0 @@
-set -e
-
-test -x /usr/bin/module-assistant || apt-get install module-assistant
-
-cd /usr/src
-
-kernels="$(ls -d1 linux-headers* | grep -v common | sed -e s/linux-headers-//)"
-modules="$(ls -d1 nvidia*.tar.bz2 | sed -e s/.tar.bz2//)"
-
-module-assistant clean $modules
-module-assistant build --text-mode --force --kvers-list "$kernels" $modules
-
-ls -l *.deb
-for m in $modules ; do
-	for k in $kernels ; do
-		echo "* ${m}-${k}:"
-		ls -l ${m}-${k}_*.deb
-	done
-done
diff -Nru nvidia-graphics-drivers-legacy-96xx-96.43.23/debian/build-module-packages.sh.in nvidia-graphics-drivers-legacy-96xx-96.43.23/debian/build-module-packages.sh.in
--- nvidia-graphics-drivers-legacy-96xx-96.43.23/debian/build-module-packages.sh.in	1970-01-01 01:00:00.000000000 +0100
+++ nvidia-graphics-drivers-legacy-96xx-96.43.23/debian/build-module-packages.sh.in	2013-01-15 22:29:42.000000000 +0100
@@ -0,0 +1,19 @@
+set -e
+
+test -x /usr/bin/module-assistant || apt-get install module-assistant
+
+cd /usr/src
+
+kernels="$(ls -d1 /lib/modules/*/build 2>/dev/null | cut -d/ -f4)"
+modules=nvidia-kernel#LEGACY#
+
+module-assistant clean $modules
+module-assistant build --text-mode --force --kvers-list "$kernels" $modules
+
+ls -l *.deb
+for m in $modules ; do
+	for k in $kernels ; do
+		echo "* ${m} ${k}:"
+		ls -l ${m}-${k}_*.deb
+	done
+done
diff -Nru nvidia-graphics-drivers-legacy-96xx-96.43.23/debian/changelog nvidia-graphics-drivers-legacy-96xx-96.43.23/debian/changelog
--- nvidia-graphics-drivers-legacy-96xx-96.43.23/debian/changelog	2012-09-19 12:59:58.000000000 +0200
+++ nvidia-graphics-drivers-legacy-96xx-96.43.23/debian/changelog	2013-01-15 22:29:42.000000000 +0100
@@ -1,3 +1,50 @@
+nvidia-graphics-drivers-legacy-96xx (96.43.23-3) unstable; urgency=low
+
+  * Synchronize packaging with nvidia-graphics-drivers 304.48-2:
+    - libgl1-nvidia-legacy-96xx-glx-ia32: readd
+      Depends: libgl1-nvidia-alternatives-ia32 to prevent apt from removing
+      libgl1-nvidia-alternatives-ia32 (which would remove the diversions)
+      while the old (pre-transitional) libgl1-nvidia-legacy-96xx-glx-ia32 is
+      still installed.
+    - get-orig-source: Fix caching for legacy drivers.
+    - bug-control: Report version info about revived
+      libgl1-nvidia-legacy-96xx-glx-ia32.
+    - Upgrade nvidia-settings relationship from Suggests to Recommends and use
+      a substvar for the name of the compatible nvidia-settings package.
+    - There is no need to exclude squeeze-backports from using xz compression.
+  * Synchronize packaging with nvidia-graphics-drivers 304.60-1:
+    - libgl1-nvidia-legacy-96xx-glx:i386: Breaks: ia32-libs (<< 1:0),
+      versioning was fixed.
+    - Fix missing legacy substitution.
+    - conftest.h:
+      - Implement checks for linux/efi.h and linux/nvmap.h (310.14).
+      - Implement new conftest.sh functions outer_flush_all, nvmap_support,
+        and efi_enabled (310.14).
+  * Synchronize packaging with nvidia-graphics-drivers 304.60-2:
+    - build-module-packages.sh: Build modules only for the variant (current or
+      legacy-abcxx) that shipped the script.
+  * Synchronize packaging with nvidia-graphics-drivers 304.64-1:
+    - conftest.h: Implement new conftest.sh function set_memory_array_uc.
+    - build-module-packages.sh: Build modules only for the variant (current or
+      legacy-abcxx) that shipped the script.
+  * Synchronize packaging with nvidia-graphics-drivers 304.64-2:
+    - Always use the upstream changelog from the x86_64 release to avoid minor
+      differences causing multiarch conflicts.
+  * Synchronize packaging with nvidia-graphics-drivers 304.64-4:
+    - kernel-3.7.patch: New patch to fix compilation with Linux 3.7 (which
+      replaced VM_RESERVED by VM_DONTEXPAND | VM_DONTDUMP).
+  * Synchronize packaging with nvidia-graphics-drivers 304.64-5:
+    - Fix debian/module/debian/kernel-version to cope with
+      $KSRC/linux/version.h being moved to
+      $KSRC/include/generated/uapi/linux/version.h in Linux 3.7.
+  * Synchronize packaging with nvidia-graphics-drivers-legacy-173xx
+    173.14.35-4:
+    - Use nvidia-settings-legacy-173xx as the name of the compatible
+      nvidia-settings package.
+    - Adjust kernel-3.7.patch for a different filename in legacy-96xx.
+
+ -- Andreas Beckmann <debian@abeckmann.de>  Tue, 15 Jan 2013 22:18:13 +0100
+
 nvidia-graphics-drivers-legacy-96xx (96.43.23-2) unstable; urgency=low
 
   * http://nvidia.custhelp.com/app/answers/detail/a_id/3142
diff -Nru nvidia-graphics-drivers-legacy-96xx-96.43.23/debian/control nvidia-graphics-drivers-legacy-96xx-96.43.23/debian/control
--- nvidia-graphics-drivers-legacy-96xx-96.43.23/debian/control	2012-09-19 12:59:58.000000000 +0200
+++ nvidia-graphics-drivers-legacy-96xx-96.43.23/debian/control	2013-01-15 22:29:42.000000000 +0100
@@ -33,9 +33,9 @@
  nvidia-support,
  ${shlibs:Depends}, ${misc:Depends}
 Recommends:
+ ${nvidia-settings},
  libgl1-nvidia${nvidia:Legacy}-glx-i386 [amd64],
 Suggests:
- nvidia-settings-legacy-173xx,
  nvidia-kernel${nvidia:Legacy}-dkms (>= ${nvidia:Version})
  | nvidia-kernel${nvidia:Legacy}-source (>= ${nvidia:Version})
 Provides:
@@ -71,8 +71,8 @@
 Recommends:
  nvidia-kernel${nvidia:Legacy}-dkms (= ${binary:Version})
  | nvidia-kernel-${nvidia:Version}${nvidia:Perfkit},
+ ${nvidia-settings},
 Suggests:
- nvidia-settings-legacy-173xx,
  nvidia-kernel${nvidia:Legacy}-dkms (>= ${nvidia:Version})
  | nvidia-kernel${nvidia:Legacy}-source (>= ${nvidia:Version})
 Provides:
@@ -136,7 +136,7 @@
 Conflicts:
  libgl1-nvidia${nvidia:Legacy}-dev,
  nvidia-glx${nvidia:Legacy}-dev,
- libgl1-nvidia-glx-ia32 [i386],
+ libgl1-nvidia${nvidia:Legacy}-glx-ia32 [i386],
 Breaks:
  libgl1-nvidia${nvidia:Legacy}-glx-ia32 (<< ${nvidia:Version}) [amd64],
  nvidia-glx (<< 275.09.07-3),
@@ -149,7 +149,7 @@
 # libgl1-nvidia-legacy-96xx-glx (<< 96.43.19-2),
  libgl1-nvidia-legacy-173xx-glx (<< 173.14.30-2),
  fglrx-glx (<< 1:11-6-~),
- ia32-libs (<< 20120701) [i386],
+ ia32-libs (<< 1:0) [i386],
  nvidia-settings (>= 302),
 Replaces:
  nvidia-glx${nvidia:Legacy} (<< 96.43.18),
@@ -172,6 +172,7 @@
  libc6-i386 (>= 2.9-18),
  nvidia-installer-cleanup,
 Depends:
+ libgl1-nvidia-alternatives-ia32,
  ${shlibs:Depends}, ${misc:Depends}
 Recommends:
  libgl1-nvidia${nvidia:Legacy}-glx-i386,
diff -Nru nvidia-graphics-drivers-legacy-96xx-96.43.23/debian/module/conftest.h nvidia-graphics-drivers-legacy-96xx-96.43.23/debian/module/conftest.h
--- nvidia-graphics-drivers-legacy-96xx-96.43.23/debian/module/conftest.h	2012-09-19 12:59:58.000000000 +0200
+++ nvidia-graphics-drivers-legacy-96xx-96.43.23/debian/module/conftest.h	2013-01-15 22:29:42.000000000 +0100
@@ -1,4 +1,4 @@
-/* synchronized with conftest.sh from 304.48, 295.75, 173.14.35, 96.43.23, 71.86.15 */
+/* synchronized with conftest.sh from 310.14, 304.64, 295.75, 173.14.36, 96.43.23, 71.86.15 */
 
 #ifndef LINUX_VERSION_CODE
 #include <linux/version.h>
@@ -24,6 +24,13 @@
  #undef NV_SET_MEMORY_UC_PRESENT
 #endif
 
+/* Implement conftest.sh function set_memory_array_uc */
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,28)
+ #define NV_SET_MEMORY_ARRAY_UC_PRESENT
+#else
+ #undef NV_SET_MEMORY_ARRAY_UC_PRESENT
+#endif
+
 /* Implement conftest.sh function set_pages_uc */
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,25)
  #define NV_SET_PAGES_UC_PRESENT
@@ -31,6 +38,10 @@
  #undef NV_SET_PAGES_UC_PRESENT
 #endif
 
+/* Implement conftest.sh function outer_flush_all */
+// ARM only
+ #undef NV_OUTER_FLUSH_ALL_PRESENT
+
 /* Implement conftest.sh function change_page_attr */
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,20) && \
                LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,25)
@@ -189,6 +200,10 @@
 /* nv-xen.h does not exist */
 #undef HAVE_NV_XEN
 
+/* Implement conftest.sh function nvmap_support */
+/* nv-android.h does not exist */
+#undef HAVE_NV_ANDROID
+
 /* Implement conftest.sh function acpi_evaluate_integer */
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,19)
  #define NV_ACPI_EVALUATE_INTEGER_PRESENT
@@ -304,6 +319,13 @@
  #undef NV_FILE_OPERATIONS_HAS_COMPAT_IOCTL
 #endif
 
+/* Implement conftest.sh function efi_enabled */
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,1)
+ #define NV_EFI_ENABLED_PRESENT
+#else
+ #undef NV_EFI_ENABLED_PRESENT
+#endif
+
 /* Implement conftest.sh function sg_init_table */
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24)
  #define NV_SG_INIT_TABLE_PRESENT
@@ -353,11 +375,18 @@
  #undef NV_ASM_SYSTEM_H_PRESENT
 #endif
 
+/* Check for linux/efi.h */
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,33)
+ #define NV_LINUX_EFI_H_PRESENT
+#else
+ #undef NV_LINUX_EFI_H_PRESENT
+#endif
+
 /* Check for linux/kconfig.h */
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,1,0)
  #define NV_LINUX_KCONFIG_H_PRESENT
 #else
- #undef NV_LINUX_SCREEN_INFO_H_PRESENT
+ #undef NV_LINUX_KCONFIG_H_PRESENT
 #endif
 
 /* Check for linux/screen_info.h */
@@ -366,3 +395,7 @@
 #else
  #undef NV_LINUX_SCREEN_INFO_H_PRESENT
 #endif
+
+/* Check for linux/nvmap.h */
+// does not (yet) exist in kernel source
+ #undef NV_LINUX_NVMAP_H_PRESENT
diff -Nru nvidia-graphics-drivers-legacy-96xx-96.43.23/debian/module/debian/kernel-version nvidia-graphics-drivers-legacy-96xx-96.43.23/debian/module/debian/kernel-version
--- nvidia-graphics-drivers-legacy-96xx-96.43.23/debian/module/debian/kernel-version	2012-02-16 04:17:01.000000000 +0100
+++ nvidia-graphics-drivers-legacy-96xx-96.43.23/debian/module/debian/kernel-version	2013-01-15 22:29:42.000000000 +0100
@@ -5,14 +5,18 @@
 # found, print nothing and exit quietly.
 
 my $ksrc = shift;
-unless ($ksrc && open (VERSION, "$ksrc/include/linux/version.h")) {
+unless ($ksrc && (-f "$ksrc/include/linux/version.h" || -f "$ksrc/include/generated/uapi/linux/version.h")) {
     exit 0;
 }
-my $found;
-my $line = <VERSION>;
-if ($line =~ /"(.+)"/) {
-    print "$1\n";
-    $found = 1;
+my $found = 0;
+my $line;
+if (open (VERSION, "$ksrc/include/linux/version.h")) {
+    if ($line = <VERSION>) {
+        if ($line =~ /"(.+)"/) {
+            print "$1\n";
+            $found = 1;
+        }
+    }
 }
 exit 0 if $found;
 if (open (VERSION, "$ksrc/include/generated/utsrelease.h")) {
diff -Nru nvidia-graphics-drivers-legacy-96xx-96.43.23/debian/module/debian/patches/kernel-3.7.patch nvidia-graphics-drivers-legacy-96xx-96.43.23/debian/module/debian/patches/kernel-3.7.patch
--- nvidia-graphics-drivers-legacy-96xx-96.43.23/debian/module/debian/patches/kernel-3.7.patch	1970-01-01 01:00:00.000000000 +0100
+++ nvidia-graphics-drivers-legacy-96xx-96.43.23/debian/module/debian/patches/kernel-3.7.patch	2013-01-15 22:29:42.000000000 +0100
@@ -0,0 +1,22 @@
+Author: Andreas Beckmann <debian@abeckmann.de>
+Description: fix building against kernel 3.7
+ The VM_RESERVED flag was removed in kernel 3.7:
+ http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=commit;h=314e51b9851b4f4e8ab302243ff5a6fc6147f379
+Bug-Debian: http://bugs.debian.org/697061
+
+--- a/nv.c
++++ b/nv.c
+@@ -2607,6 +2607,13 @@
+         NV_PRINT_AT(NV_DBG_MEMINFO, at);
+         nv_vm_list_page_count(&at->page_table[i], pages);
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,7,0)
++// VM_RESERVED was replaced by VM_DONTEXPAND | VM_DONTDUMP in Linux 3.7
++# ifndef VM_RESERVED
++#  define VM_RESERVED (VM_DONTEXPAND | VM_DONTDUMP)
++# endif
++#endif
++
+         /* prevent the swapper from swapping it out */
+         /* mark the memory i/o so the buffers aren't dumped on core dumps */
+         vma->vm_flags |= (VM_IO | VM_LOCKED | VM_RESERVED);
diff -Nru nvidia-graphics-drivers-legacy-96xx-96.43.23/debian/module/debian/patches/series nvidia-graphics-drivers-legacy-96xx-96.43.23/debian/module/debian/patches/series
--- nvidia-graphics-drivers-legacy-96xx-96.43.23/debian/module/debian/patches/series	2012-09-11 14:53:33.000000000 +0200
+++ nvidia-graphics-drivers-legacy-96xx-96.43.23/debian/module/debian/patches/series	2013-01-15 22:29:42.000000000 +0100
@@ -5,3 +5,4 @@
 fix-typos.patch
 linux3.patch
 drop24support.patch
+kernel-3.7.patch
diff -Nru nvidia-graphics-drivers-legacy-96xx-96.43.23/debian/rules nvidia-graphics-drivers-legacy-96xx-96.43.23/debian/rules
--- nvidia-graphics-drivers-legacy-96xx-96.43.23/debian/rules	2012-09-19 12:59:58.000000000 +0200
+++ nvidia-graphics-drivers-legacy-96xx-96.43.23/debian/rules	2013-01-15 22:29:42.000000000 +0100
@@ -15,6 +15,7 @@
 XORG_BOUND		?=
 MULTIARCH		?=
 BACKPORT		?=
+NVIDIA_SETTINGS		?= nvidia-settings
 version			 = $(NVIDIA_RELEASE)
 legacy			 = $(if $(NVIDIA_LEGACY),-legacy-$(NVIDIA_LEGACY)xx)
 legacy_description	 = $(if $(NVIDIA_LEGACY), ($(NVIDIA_LEGACY)xx legacy version))
@@ -81,8 +82,8 @@
 	test -f NVIDIA-Linux-amd64/README.txt || \
 		mv NVIDIA-Linux-amd64/usr/share/doc/README.txt NVIDIA-Linux-amd64/README.txt 2>/dev/null || \
 		mv NVIDIA-Linux-amd64/usr/share/doc/README NVIDIA-Linux-amd64/README.txt
-	test -f NVIDIA-Linux/NVIDIA_Changelog || \
-		mv NVIDIA-Linux/usr/share/doc/NVIDIA_Changelog NVIDIA-Linux/
+	test -f NVIDIA-Linux-amd64/NVIDIA_Changelog || \
+		mv NVIDIA-Linux-amd64/usr/share/doc/NVIDIA_Changelog NVIDIA-Linux-amd64/
 	test -d NVIDIA-Linux-i386/kernel || \
 		mv NVIDIA-Linux-i386/usr/src/nv NVIDIA-Linux-i386/kernel
 	test -d NVIDIA-Linux-amd64/kernel || \
@@ -157,6 +158,8 @@
 install-into-tmp:
 	# "Install" into debian/tmp.
 	cp -al NVIDIA-Linux/ debian/tmp
+	rm -f debian/tmp/NVIDIA_Changelog
+	cp -al NVIDIA-Linux-amd64/NVIDIA_Changelog debian/tmp/
 
 	# Create xorg.conf.sample
 	test ! -f debian/tmp/usr/share/doc/XF86Config.sample || \
@@ -255,6 +258,7 @@
 		-V'nvidia:Legacy=$(legacy)' \
 		-V'nvidia:LegacyDesc=$(legacy_description)' \
 		-V'nvidia:Perfkit=$(perfkit)' \
+		-V'nvidia-settings=$(NVIDIA_SETTINGS)' \
 		-Vnvidia:Models="`cat debian/control.models`"
 
 # Do not run dh_strip here.  The NVIDIA license says:
@@ -270,10 +274,8 @@
 # in a way other than unzipping of compressed files.
 override_dh_strip:
 
-ifneq (squeeze,$(BACKPORT))
 override_dh_builddeb:
 	dh_builddeb -- -Zxz
-endif
 
 ############################################################################
 
@@ -352,7 +354,8 @@
 get-orig-source:
 	rm -rf get-orig-source || true
 	mkdir get-orig-source
-	ln -v ../.cache/*-$(version).run get-orig-source/ || true
+	ln -v ../.cache/*-$(version).run get-orig-source/ 2>/dev/null || true
+	ln -v ../.cache/*-$(version)-*.run get-orig-source/ 2>/dev/null || true
 	uscan --no-symlink --download-current-version $(PASV) \
 	    --watchfile debian/watch --destdir get-orig-source
 	test $$(ls get-orig-source/* | wc -l) = 2  # we need exactly 2 downloaded files
diff -Nru nvidia-graphics-drivers-legacy-96xx-96.43.23/debian/rules.defs nvidia-graphics-drivers-legacy-96xx-96.43.23/debian/rules.defs
--- nvidia-graphics-drivers-legacy-96xx-96.43.23/debian/rules.defs	2012-09-11 14:53:33.000000000 +0200
+++ nvidia-graphics-drivers-legacy-96xx-96.43.23/debian/rules.defs	2013-01-15 22:29:42.000000000 +0100
@@ -1,6 +1,8 @@
 # If needed, set to the major part of the upstream version number.
 NVIDIA_LEGACY		 = 96
 #WATCH_VERSION		 =
+NVIDIA_SETTINGS		 = nvidia-settings-legacy-173xx
+
 XORG_ABI_LIST		 = 12 11 10 8 6.0
 XORG_BOUND		 = (<< 2:1.12.99)
 

Reply to: