Buildd-setup faffing around with __FILE__ breaks my unit tests.
Ximin Luo
infinity0 at debian.org
Sun Feb 10 19:00:00 GMT 2019
Sune Vuorela:
> On Sunday, February 10, 2019 3:08:00 AM CET Ximin Luo wrote:
>> Sune Vuorela:
>>> [..]
>>>
>>> My suggestion is to not change the meaning of __FILE__ and instead fix the
>>> programs that uses __FILE__ for something they shouldn't.
>>
>> You should pass this request to the QT test maintainers. This exact issue
>> came up in december 2017 and they were extremely rude and uncooperative
>> about it.
>
> So what's your suggestion to reference test data in the source folder?
>
My suggestion is just what you said:
> instead fix the programs that uses __FILE__ for something they shouldn't.
i.e. QT tests shouldn't use __FILE__, they should use something else.
Patching this one macro is easier than patching several hundred packages that use __FILE__ directly for more innocent (less assumptive) purposes that are unaffected by -ffile-prefix-mpa.
X
--
GPG: ed25519/56034877E1F87C35
GPG: rsa4096/1318EFAC5FBBDBCE
https://github.com/infinity0/pubkeys.git
More information about the Reproducible-builds
mailing list