[Pkg-bitcoin-devel] Bug#672524: Bug#672524: bitcoin: FTBFS[any-i386]: testsuite errors

Scott Howard showard314 at gmail.com
Tue Jan 22 03:17:47 UTC 2013


On Sat, Jan 19, 2013 at 3:52 PM, Petter Reinholdtsen <pere at hungry.com> wrote:
> [Christoph Egger]
>>   We'll see as soon as it builds on the buildds I'd say.
>
> Still fail.  I am unable to understand why:

I can't reproduce this either in pbuilder, i386 sid. I'm forwarding
this to the pkg-bitcoin ML to see if anyone there has any ideas.

The test suites are failing to find *.json files on i386 and
kfreebsd-i386 builds only.
https://buildd.debian.org/status/package.php?p=bitcoin

I can't debug it since I can't reproduce it.

The error is:
HOME="/build/buildd-bitcoin_0.7.2-2-i386-2MCUBL/bitcoin-0.7.2/debian/home"
src/test_bitcoin
Running 70 test cases...
test/script_tests.cpp(106): error in "base58_EncodeBase58": Cound not
find/open base58_encode_decode.json
and a bunch more failures

I have a wild guess, but would appreciate feedback. script_tests.cpp
calls boost:filesystem:current_path(), which essentially reads in $PWD
from the environment. Is it possible that the i386 buildds cleared the
PWD variable prior to build? If so, we can append PWD=$(CURDIR) before
invoking the test_script command. [1,2] Or better yet, compile while
defining TEST_DATA_DIR (see [3]) so it doesn't depend on
current_path() at all.

I'm shooting in dark, but maybe we can get lucky.
~Scott

[1] http://lintian.debian.org/tags/debian-rules-uses-pwd.html
[2] http://www.boost.org/doc/libs/1_52_0/libs/filesystem/doc/reference.html#current_path
[3] http://anonscm.debian.org/gitweb/?p=collab-maint/bitcoin.git;a=blob;f=src/test/script_tests.cpp;h=61d9a64eebb2dc3158386402250072ed0182cbe5;hb=HEAD#l94



More information about the Pkg-bitcoin-devel mailing list