Source: libsdl1.2
Version: 1.2.15-5
Severity: normal
Tags: patch

While investigating another bug I tried building libsdl1.2 repeatedly with
a simple "debuild". This turns out to fail, because debian/tmp-udeb is not
deleted by "debian/rules clean". Patch attached.

Regards,
    S
>From 3c1c2ed478017e40462fc6c5fc797516041e7c08 Mon Sep 17 00:00:00 2001
From: Simon McVittie <s...@debian.org>
Date: Sat, 18 May 2013 12:36:28 +0100
Subject: [PATCH 1/2] Clean debian/tmp-udeb so the package can build twice in
 a row

---
 debian/changelog |    6 ++++++
 debian/rules     |    4 ++++
 2 files changed, 10 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 43d4b33..bd79df8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+libsdl1.2 (1.2.15-6) UNRELEASED; urgency=low
+
+  * Clean debian/tmp-udeb so the package can build twice in a row
+
+ -- Simon McVittie <s...@debian.org>  Sat, 18 May 2013 01:55:38 +0100
+
 libsdl1.2 (1.2.15-5) unstable; urgency=low
 
   * Restrict libts (touch screen) input method to linux-any architectures, not
diff --git a/debian/rules b/debian/rules
index 1f4d484..7386b40 100755
--- a/debian/rules
+++ b/debian/rules
@@ -57,6 +57,10 @@ override_dh_auto_clean:
 	dh_auto_clean -Bbuilddir/udeb
 	rm -f debian/examples.tar.gz
 
+override_dh_clean:
+	dh_clean
+	rm -rf debian/tmp-udeb
+
 override_dh_install:
 	dh_install -plibsdl1.2debian-udeb --sourcedir=debian/tmp-udeb
 	dh_install --remaining-packages --fail-missing -XlibSDL.la -XlibSDLmain.la
-- 
1.7.10.4

Reply via email to