QFINDTESTDATA uses __FILE__

Holger Levsen holger at layer-acht.org
Mon Nov 13 17:57:42 UTC 2017


On Mon, Nov 13, 2017 at 05:35:00PM +0000, Ximin Luo wrote:
> Our patched dpkg tells GCC to map $PWD to "$srcpkg-$version" when expanding __FILE__. That is the source of the problem, because this path doesn't exist at test-time. You have the following options:
> 
> 1. Unset BUILD_PATH_PREFIX_MAP. This is not great because things that use __FILE__ will become unreproducible.

actually I tend to think this is the best option currently. Our
modification of gcc currently only exists in a test/development environment and
it seems totally unclear whether this implementation will be used or
another. so basing other changes in unstable (which will become buster
sooner or later) seems less than ideal to me.

> 2. Symlink "$srcpkg-$version" -> ".", so that the files can be accessed under the paths that __FILE__ was expanded to.
> 
> 3. Set BUILD_PATH_PREFIX_MAP to map $PWD to . instead. You do this by doing `export BUILD_PATH_PREFIX_MAP=$BUILD_PATH_PREFIX_MAP:.=$PWD`, then the tests should work. This makes any other uses of __FILE__ in this package, inconsistent with other Debian packages (built with our patched dpkg).
> 
> (maybe there are other options)

4. just ignore the ftbfs in unstable in tests.r-b.o setup.


-- 
cheers,
	Holger
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20171113/ce25286d/attachment.sig>


More information about the Reproducible-builds mailing list