Package: dpatch
Version: 2.0.18
Severity: minor
Hi,
building a debian/rules file closely related to
/usr/share/doc/dpatch/examples/rules/rules.new.dh.gz has led to the
package being compiled multiple times.
I am by no means a make expert, but it looks like the attached patch
needs to be applied to rules.new.dh to properly handle the stamp
files. Please investigate.
Greetins
Marc
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15.6-zgsrv
Locale: LANG=C, LC_CTYPE=de_DE (charmap=ISO-8859-1)
dpatch depends on no packages.
Versions of packages dpatch recommends:
ii dpkg-dev 1.13.16 package building tools for Debian
ii fakeroot 1.5.7 Gives a fake root environment
ii patchutils 0.2.31-3 Utilities to work with patches
-- no debconf information
--- rules.new.dh.orig 2006-03-19 18:47:08.000000000 +0100
+++ rules.new.dh 2006-03-19 18:49:02.000000000 +0100
@@ -13,7 +13,7 @@
endif
build: build-stamp
-build-stamp: patch
+build-stamp: patch-stamp
@echo "--- Compiling"
dh_testdir
# Do something to build your package here
@@ -25,14 +25,17 @@
dh_testdir
dh_testroot
dh_clean -k
+ rm -f build-stamp install-stamp
# Clean your build tree
-install: build-stamp
+install: install-stamp
+install-stamp: build-stamp
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
# Install it here
+ touch install-stamp
# Build architecture-independent files here.
binary-indep: build install
@@ -51,6 +54,7 @@
patch-stamp:
dpatch apply-all
#dpatch call-all -a=pkg-info >patch-stamp
+ touch patch-stamp
unpatch:
dpatch deapply-all