RFR: 8275745: Reproducible copyright headers [v3]
Magnus Ihse Bursie
ihse at openjdk.java.net
Thu Nov 11 20:22:36 UTC 2021
On Thu, 11 Nov 2021 15:37:09 GMT, Emmanuel Bourg <duke at openjdk.java.net> wrote:
>> The copyright headers are generated at build time, and the year inserted in the template depends on the current date. This means the headers are not reproducible if the project is built a year later. The year in the headers could be derived from the SOURCE_DATE_EPOCH environment variable to make the build reproducible (this variable is already used in other parts of the build).
>
> Emmanuel Bourg has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains two commits:
>
> - Make gensrc code use $COPYRIGHT_YEAR
> - Set COPYRIGHT_YEAR from SOURCE_DATE_EPOCH if present
In the future, please refrain from force pushing to a PR. It makes history hard to follow for reviewers, and is generally strongly discouraged. OpenJDK uses the Skara tools which will automatically squash and rebase the commits in the PR.
-------------
PR: https://git.openjdk.java.net/jdk/pull/1498
More information about the build-dev
mailing list