RFR: 8275745: Reproducible copyright headers [v3]

Emmanuel Bourg duke at openjdk.java.net
Thu Nov 11 15:37:09 UTC 2021


> 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 incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains two additional commits since the last revision:

 - Make gensrc code use $COPYRIGHT_YEAR
 - Set COPYRIGHT_YEAR from SOURCE_DATE_EPOCH if present

-------------

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/1498/files
  - new: https://git.openjdk.java.net/jdk/pull/1498/files/9c4efbda..618d28a4

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=1498&range=02
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=1498&range=01-02

  Stats: 118724 lines in 2698 files changed: 90310 ins; 15575 del; 12839 mod
  Patch: https://git.openjdk.java.net/jdk/pull/1498.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/1498/head:pull/1498

PR: https://git.openjdk.java.net/jdk/pull/1498



More information about the build-dev mailing list