Package: stress
Version: 1.0.1-1
Severity: normal
Tags: patch

After building stress a second invocation of dpkg-buildpackage will fail with:
dpkg-source: error: cannot represent change to stress-1.0.1/src/stress.o: 
binary file contents changed
dpkg-source: error: cannot represent change to stress-1.0.1/src/stress: binary 
file contents changed
dpkg-source: warning: the diff modifies the following upstream files:
 Makefile
 config.log
 config.status
 doc/Makefile
 src/.deps/stress.Po
 src/Makefile
 test/Makefile

This is trivially fixed by adding dh_auto_clean to the clean rule in
debian/rules.

The attached patch also udates the deprecated dh_clean -k to dh_prep

-- System Information:
Debian Release: wheezy/sid
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-35-generic (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

-- no debconf information
Only in stress-1.0.1.fixed/: Makefile
Only in stress-1.0.1.fixed/: build-stamp
Only in stress-1.0.1.fixed/: config.log
Only in stress-1.0.1.fixed/: config.status
Only in stress-1.0.1.fixed/debian: files
diff -ur stress-1.0.1.fixed/debian/rules stress-1.0.1/debian/rules
--- stress-1.0.1.fixed/debian/rules	2013-06-12 13:31:52.000000000 +0000
+++ stress-1.0.1/debian/rules	2013-06-12 13:35:21.000000000 +0000
@@ -40,13 +40,13 @@
 	rm -f build-stamp 
 
 	# Add here commands to clean up after the build process.
+
 	dh_clean
-	dh_auto_clean
 
 install: build
 	dh_testdir
 	dh_testroot
-	dh_prep
+	dh_clean -k
 	dh_installdirs
 
 	# Add here commands to install the package into debian/stress.
Only in stress-1.0.1.fixed/debian: stress
Only in stress-1.0.1.fixed/debian: stress.debhelper.log
Only in stress-1.0.1.fixed/debian: stress.substvars
Only in stress-1.0.1.fixed/doc: Makefile
Only in stress-1.0.1/doc: stress.html
Only in stress-1.0.1.fixed/src: .deps
Only in stress-1.0.1.fixed/src: Makefile
Only in stress-1.0.1.fixed/src: stress
Only in stress-1.0.1.fixed/src: stress.o
Only in stress-1.0.1.fixed/test: Makefile

Reply via email to