From: R. Steve McKown Date: Tue, 8 Dec 2009 20:10:04 +0000 (-0700) Subject: Fix source version as seen by DKMS. X-Git-Tag: debian/0.11.2-5.2tmi~1 X-Git-Url: https://oss.titaniummirror.com/gitweb?p=cp210x.git;a=commitdiff_plain;h=479b50ff8efa3ee1b8be228378a993cc6e8f3d4a Fix source version as seen by DKMS. The DKMS scripts assume that a package update will install software to build at /usr/src but in a different directory. So, an update to a package that is just a change in the debian build stuff but not the source proper will cause a problem, since DKMS will remove the old source dir after the new source dir is already unpacked. If they are the same, it breaks. We fix this problem by simply informing DKMS that the source version include the debian version info as well. So for example, instead of 0.11.2, DKMS would see 0.11.2-5.2tmi. --- diff --git a/debian.in/postinst b/debian.in/postinst index accd6fc..38105b4 100755 --- a/debian.in/postinst +++ b/debian.in/postinst @@ -3,7 +3,7 @@ set -e NAME=xxPACKAGExx -VERSION=xxPKGVERxx +VERSION=xxDEBVERxx case "$1" in configure) diff --git a/debian.in/postrm b/debian.in/postrm index 9bf77b5..30f451d 100755 --- a/debian.in/postrm +++ b/debian.in/postrm @@ -1,7 +1,7 @@ #!/bin/sh NAME=xxPACKAGExx -VERSION=xxPKGVERxx +VERSION=xxDEBVERxx set -e diff --git a/debian.in/prerm b/debian.in/prerm index e7a02ec..9985327 100755 --- a/debian.in/prerm +++ b/debian.in/prerm @@ -1,7 +1,7 @@ #!/bin/sh NAME=xxPACKAGExx -VERSION=xxPKGVERxx +VERSION=xxDEBVERxx set -e diff --git a/debian.in/rules b/debian.in/rules index 4f324b6..719bceb 100755 --- a/debian.in/rules +++ b/debian.in/rules @@ -10,7 +10,7 @@ # This file may have to be extensively modified package = xxPACKAGExx -inst_dir = debian/tmp/usr/src/xxPACKAGExx-xxPKGVERxx +inst_dir = debian/tmp/usr/src/xxPACKAGExx-xxDEBVERxx install_dir = install -d -m 755 install_file = install -m 644