Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow to override resource file date
because some packages create resource input files at build time and thus get the build date embedded in binaries, so that they differ for each build. See https://reproducible-builds.org/ for why this matters and https://reproducible-builds.org/specs/source-date-epoch/ for the definition of this variable. Task-number: QTBUG-62511 Change-Id: I8908ac6182fab066e6ea398df2567f6d050c77e7 Reviewed-by: hjk <hjk@qt.io>
- Loading branch information
38271e9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you not call this variable
SOURCE_DATE_EPOCH
like the standard says? What a missed opportunity for simplicity.38271e9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@daym: There was a policy to prefix variables with QT_ and I did not want to discuss more with the reviewer.
But later, this was merged:
https://codereview.qt-project.org/#/c/243636/4/src/tools/rcc/rcc.cpp,unified
38271e9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! It's good to have that link here because distributors like us have to find out how make the builds reproducible somehow. So eventually just
SOURCE_DATE_EPOCH
alone will work, too. Cool!For the record, qtbase-everywhere-src-5.11.2 doesn't contain the latter patch.
38271e9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
5.12 does not either, so maybe 5.13 will. We added the linked patch on top of our openSUSE qt packages, though.
38271e9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To learn about these things faster, you can read our blog posts or search the git repo for "qtbase" to find info on updates