From 75ff16ccef5ed660961022e8e50cc310aadc30ee Mon Sep 17 00:00:00 2001 From: Bill Allombert Date: Tue, 16 Jun 2009 22:14:33 +0200 Subject: [PATCH 1/1] debian/rules: Fix a race condition while generating DEBIAN/md5sums. --- debian/changelog | 8 +++++--- debian/rules | 3 ++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/debian/changelog b/debian/changelog index c861aaa..8202307 100644 --- a/debian/changelog +++ b/debian/changelog @@ -46,10 +46,12 @@ debian-policy (3.8.2.0) unstable; urgency=low [ Bill Allombert ] * Add myself to Uploaders. * Update Standards-Version to 3.8.1 (no changes required). - * debian/rules: use dpkg --print-architecture instead of - obsolete form dpkg --print-installation-architecture + * debian/rules: + - use `dpkg --print-architecture' instead of obsolete form + `dpkg --print-installation-architecture'. + - fix a race condition while generating DEBIAN/md5sums. - -- Bill Allombert Tue, 16 Jun 2009 20:46:11 +0200 + -- Bill Allombert Tue, 16 Jun 2009 21:42:53 +0200 debian-policy (3.8.1.0) unstable; urgency=low diff --git a/debian/rules b/debian/rules index aa42324..4fa4518 100755 --- a/debian/rules +++ b/debian/rules @@ -142,7 +142,8 @@ stamp-policy: build $(sanitycheck) $(install_file) $(FHS_HTML) $(DOCDIR)/fhs @set -ex; \ cd debian/tmp; \ - find . -type f -printf '%P\0' | xargs -r0 md5sum > DEBIAN/md5sums + find . -path "./DEBIAN" -prune -o -type f -printf '%P\0' \ + | xargs -r0 md5sum > DEBIAN/md5sums dpkg-gencontrol -p$(package) -Pdebian/tmp -isp chown -R root:root debian/tmp chmod -R go=rX debian/tmp -- 2.39.2