Bug#876901: QFINDTESTDATA uses __FILE__

Lisandro Damián Nicanor Pérez Meyer perezmeyer at gmail.com
Thu Nov 16 12:54:52 UTC 2017


Explicitely CCing Guillem for this one.

On miércoles, 15 de noviembre de 2017 23:01:00 -03 Ximin Luo wrote:
[sip]
> The GCC patch (neither the previous nor the planned version) does not change
> the default behaviour of __FILE__, and was never intended to. Instead, it
> gives users the ability to rewrite __FILE__, more specifically a prefix of
> it.

So it basically does not changes the default __FILE__ behavior, so neither GCC 
nor other projects upstream developers will have anything to complain...

> 
> There is a separate patch to dpkg that enables this ability for all
> packages, in the same way that SOURCE_DATE_EPOCH is enabled. Guillem the
> dpkg maintainer has previously indicated that he's happy to take the patch,
> once GCC accepts their end of it.

...except for a Debian self-inflicted change that will *only* happen while 
building Debian packages, but not when using it for normal developing 
processes.

> It's a combination of these two patches that would cause these QT tests to
> fail. The reason it fails, is because we specifically map $PWD to a
> non-existent path. I suggested various ways around this. One of the
> suggestions, was to add an extra mapping to map $PWD/tests back to
> $PWD/tests (or just ./tests), overriding the earlier non-existent mapping.
> I think this is the cleanest suggestion - assuming that tests reside in the
> same directory, and away from the main source code. Kai Pastor over on bug
> #876934 indicated that this would probably work for
> openorienteering-mapper.

Yes, we do understand that your workaround solves the issue, but we do also 
understand that we should not be using this workaround in the first place.

Guillem: the thread is long, but be sure that we Qt/KDE maintainers consider 
that this change will be insta-RC I'm afraid.

Xi: you have found a *wonderful* way to find where bugs are, please try to fix 
the relevant code and not paper over it, because in the Qt case it is not a 
bug on our side.

-- 
“I don’t think security can solve problems.
We need to teach greater respect.”
  Oslo Mayor Stang when asked whether Oslo needs greater security
  after the attacks in Norway, 07/2011.

Lisandro Damián Nicanor Pérez Meyer
http://perezmeyer.com.ar/
http://perezmeyer.blogspot.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20171116/c43d5a42/attachment.sig>


More information about the Reproducible-builds mailing list