#635612 fakeroot: `fakeroot debian/rules binary` fails test

Package:
fakeroot
Source:
fakeroot
Description:
tool for simulating superuser privileges
Submitter:
Geert Stappers
Date:
2011-07-29 18:36:06 UTC
Severity:
minor
#635612#5
Date:
2011-07-27 16:15:46 UTC
From:
To:
Hello,

While building fakeroot, I did get this output

make[3]: `defs' is up to date.
make[3]: Leaving directory `/usr/src/fakeroot-1.16/obj-sysv/test'
/usr/bin/make  check-TESTS
make[3]: Entering directory `/usr/src/fakeroot-1.16/obj-sysv/test'
FAIL: t.chmod_dev
FAIL: t.echoarg
PASS: t.falsereturn
FAIL: t.mknod
FAIL: t.no_ld_preload
FAIL: t.no_ld_preload_link
FAIL: t.option
FAIL: t.tar
FAIL: t.touchinstall
FAIL: t.truereturn
=================================
9 of 10 tests failed
Please report to clint@debian.org
=================================
make[3]: *** [check-TESTS] Error 1
make[3]: Leaving directory `/usr/src/fakeroot-1.16/obj-sysv/test'
make[2]: *** [check-am] Error 2
make[2]: Leaving directory `/usr/src/fakeroot-1.16/obj-sysv/test'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/usr/src/fakeroot-1.16/obj-sysv'
make: *** [build-stamp] Error 2
$

and NO Debian package.

For me is this a Fails To Build From Source

#635612#10
Date:
2011-07-27 16:33:08 UTC
From:
To:
To reproduce:
- have an up-to-date amd64 unstable
- apt-get source fakeroot
- cd fakeroot-1.16
- fakeroot debian/rules binary


hth
Geert Stappers

#635612#15
Date:
2011-07-29 17:13:25 UTC
From:
To:
So the problem here is that fakeroot cannot be run within fakeroot
(see bug#409856).

In the interim, you can build with pbuilder/cowbuilder,
dpkg-buildpackage, debuild, or
debian/rules build && fakeroot debian/rules binary

The key is to run the build target outside of fakeroot so that
the tests run in a cleaner environment, and then only run the
binary target specifically under your system fakeroot.

We should probably test for this condition and emit some
relevant warning.

#635612#20
Date:
2011-07-29 18:32:21 UTC
From:
To:
retitle 635612 fakeroot: `fakeroot debian/rules binary` fails test
severity 635612 minor
thanks


doing
  dpkg-buildpackage -rfakeroot -uc -us
did get me beyond the test.

Fine for me. Bugreport is triaged. Feel free to close.


Cheers
Geert Stappers