Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.8.0
-
ef7e1a217 (dev), f84f5a95e (6.10), 9d1deb37b (6.9), 044eb2c75 (tqtc/lts-6.8)
Description
Order of qRegisterMetaType changes randomly in generated output. Those types seem to be stored in a QSet which in turn holds them in QHash and the hash is randomly seeded so the order may change between runs.
This means the builds are not reproducible and it also causes unnecessary recompilation for tools like ccache since it sees the file has changed.
Perhaps repc could set QT_HASH_SEED=0 environment variable at startup to avoid this.
Attachments
Issue Links
- relates to
-
QTBUG-105926 Qt should support reproducible builds
-
- Open
-
For Gerrit Dashboard: QTBUG-130972 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
649976,3 | repc: Create reproduceable builds | dev | qt/qtremoteobjects | Status: MERGED | +2 | +1 |
651241,2 | repc: Create reproduceable builds | 6.10 | qt/qtremoteobjects | Status: MERGED | +2 | 0 |
651430,2 | repc: Create reproduceable builds | 6.9 | qt/qtremoteobjects | Status: MERGED | +2 | 0 |
651492,2 | repc: Create reproduceable builds | tqtc/lts-6.8 | qt/tqtc-qtremoteobjects | Status: MERGED | +2 | 0 |