QFINDTESTDATA uses __FILE__
Adrian Bunk
bunk at debian.org
Sat Nov 11 22:45:41 UTC 2017
Control: reassign -1 qtbase5-dev
Control: reassign 876917 qtbase5-dev
Control: reassign 876933 qtbase5-dev
Control: forcemerge -1 876917 876933
Control: retitle -1 QFINDTESTDATA uses __FILE__
Control: severity -1 normal
Control: affects -1 src:karchive src:ki18n src:kcodecs src:kparts
thanks
The problem is the following implementation in
/usr/include/x86_64-linux-gnu/qt5/QtTest/qtestcase.h:
# define QFINDTESTDATA(basepath)\
QTest::qFindTestData(basepath, __FILE__, __LINE__)
With the patched gcc in the unstable reproducible builds setting
__FILE__ to something other value, this does no longer find the
test data.
I do not really see any reason for blaming the users here for using
a documented public Qt API for accesssing test data in the source
directory:
http://doc.qt.io/qt-5/qtest.html#QFINDTESTDATA
I've added reproducible-builds at lists.alioth.debian.org to Cc for giving
input what a reproducible and portable implementation might be for Qt.
cu
Adrian
--
"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
More information about the Reproducible-builds
mailing list