Bug#623682: [PATCH 3/3] debian/rules: allow clean as non-root

Jonathan Nieder jrnieder at gmail.com
Tue May 3 00:24:05 UTC 2011


After running "debian/rules build" as an unprivileged user, there is
no reason to require (fake) root privileges to clean up.  Even when
cleaning up after "sudo debian/rules install", at worst the clean
target would error out because unable to remove a file in a directory
owned by root and the operator will know to run "debian/rules clean"
as root to fix it.

Signed-off-by: Jonathan Nieder <jrnieder at gmail.com>
---
 debian/changelog |    1 +
 debian/rules     |    1 -
 2 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 0a70434..cb6a9ae 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ libav (4:0.7~b1-2.1) local; urgency=low
   * move note on source package lineage to README.Debian
   * install NEWS.Debian in libavcodec-dev
   * use dpkg source format 3.0 (quilt)
+  * allow "debian/rules clean" as unprivileged user
 
  -- Jonathan Nieder <jrnieder at gmail.com>  Mon, 02 May 2011 19:10:14 -0500
 
diff --git a/debian/rules b/debian/rules
index d883601..fe4a6ea 100755
--- a/debian/rules
+++ b/debian/rules
@@ -61,7 +61,6 @@ build-stamp: $(addprefix build-stamp-, $(FLAVORS)) debian-shared/tools/qt-fastst
 
 clean:
 	dh_testdir
-	dh_testroot
 	rm -f build-stamp $(addprefix build-stamp-, $(FLAVORS)) \
 	    $(addprefix configure-stamp-, $(FLAVORS)) \
 	    build-doxy-stamp
-- 
1.7.5






More information about the pkg-multimedia-maintainers mailing list