[Build-common-hackers] Bug#568611: cdbs: please allow 'debian/rules clean' as non-root

Julien Cristau julien.cristau at logilab.fr
Thu Aug 2 15:25:18 UTC 2012


tag 568611 + patch
kthxbye

On Sat, Feb  6, 2010 at 01:25:59 -0600, Jonathan Nieder wrote:

> $ debian/rules clean
> test -x debian/rules
> dh_testroot
> dh_testroot: You must run this as root (or use fakeroot).
> make: *** [testroot] Error 255

Should be fixed with the following patch.

Cheers,
Julien

diff -Nru cdbs-0.4.116/1/rules/buildcore.mk.in cdbs-0.4.116+nmu1/1/rules/buildcore.mk.in
--- cdbs-0.4.116/1/rules/buildcore.mk.in	2012-07-07 13:48:34.000000000 +0200
+++ cdbs-0.4.116+nmu1/1/rules/buildcore.mk.in	2012-08-02 17:08:20.000000000 +0200
@@ -180,7 +180,7 @@
 # Typically you will invoke upstream's "make clean" rule here, although you
 # can also hook in other stuff here.  Many of the included rules and classes
 # add stuff to this rule.
-clean:: testdir testroot cleanbuilddir reverse-config testsanity
+clean:: testdir cleanbuilddir reverse-config testsanity
 reverse-config::
 ifneq (::, $(config_guess):$(config_sub):$(config_rpath))
 	for i in $(config_guess) $(config_sub) $(config_rpath) ; do \
diff -Nru cdbs-0.4.116/debian/changelog cdbs-0.4.116+nmu1/debian/changelog
--- cdbs-0.4.116/debian/changelog	2012-07-07 14:46:02.000000000 +0200
+++ cdbs-0.4.116+nmu1/debian/changelog	2012-08-02 17:08:46.000000000 +0200
@@ -1,3 +1,10 @@
+cdbs (0.4.116+nmu1) UNRELEASED; urgency=low
+
+  * Non-maintainer upload.
+  * Allow clean as non-(fake)root (closes: #568611)
+
+ -- Julien Cristau <julien.cristau at logilab.fr>  Thu, 02 Aug 2012 17:08:25 +0200
+
 cdbs (0.4.116) unstable; urgency=low
 
   * Simplify auto-resolved build-dependencies to be unversioned when

-- 
Julien Cristau          <julien.cristau at logilab.fr>
Logilab		        http://www.logilab.fr/
Informatique scientifique & gestion de connaissances



More information about the Build-common-hackers mailing list