On Sun, Nov 12, 2017 at 10:57:38AM +0100, Kai Pastor, DG0YT wrote:
> Am 11.11.2017 um 17:18 schrieb Adrian Bunk:
> > I found what causes the problem:
> > 
> > The failing tests use the following for finding the path to test files:
> > QDir::addSearchPath(prefix, 
> > QFileInfo(QString::fromUtf8(__FILE__)).dir().absoluteFilePath(prefix));
> > 
> > In unstable reproducible builds the build path is varied,
> > and gcc patched to accept setting __FILE__ to a fixed
> > (reproducible) location.
> > 
> > In other words, when Debian will start changing __FILE__ also on the
> > buildds this will become a FTBFS also there.
> 
> Hm, I understand the benefit of reproducible builds. But does this really
> need to extend to test binaries which do not get packaged? These tests need
> to be as much stand-alone as possible and work out of the box in any context
> (host OS, target OS).
> 
> I didn't find a recommendation how to solve the issue. I hope a custom macro
> is okay.

Based on the discussion in #876901 [1] it is still unclear how this 
should be resolved in general.

Semi-related, why aren't you using QFINDTESTDATA [2]?

> Kai
> (upstream)

cu
Adrian

[1] https://bugs.debian.org/876901
[2] http://doc.qt.io/qt-5/qtest.html#QFINDTESTDATA

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed

Reply via email to