On Mon, 25 Jul 2016, Kurt Roeckx wrote:

> The error you get is a testsuite failure.  It outputs this to
> stderr:
> ERROR: ld.so: object 'libfakeroot-sysv.so' from LD_PRELOAD cannot be 
> preloaded (cannot open shared object file): ignored.
> 
> And then the testsuite fails because it wasn't expecting any
> output on stderr.
> 
> Anyway, this seems like a setup problem, not a problem with the
> package, and cleary unrelated to using -A.

Well, it only happens when using -A, so it's clearly related.

I already explained the reason: Because of the way debian/rules is
written, the test suite runs as root when built with "dpkg-buildpackage -A".

Then it fails because there is some sort of conflict with fakeroot.

But this is a bug in debian/rules for running the test suite as root,
not a setup problem.

If you do not believe that the test suite runs as root when built
with "dpkg-buildpackage -A", try this simple patch:

--- a/debian/rules
+++ b/debian/rules
@@ -132,6 +132,8 @@ build-stamp: config-stamp
 
 ifeq ($(make_check), yes)
 #      Now make sure it works
+       echo I am `whoami`
+       false
        -$(MAKE) check || touch tests-failed
        -cat test-suite.log
        -cat tests/testsuite.log

and then try "dpkg-buildpackage -A".

You will see "I am root".

Reply via email to