[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#876901: QFINDTESTDATA uses __FILE__



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

Attachment: signature.asc
Description: PGP signature


Reply to: