RFR: 8275745: Reproducible copyright headers [v2]

Magnus Ihse Bursie ihse at openjdk.java.net
Thu Nov 11 15:16:00 UTC 2021


On Thu, 11 Nov 2021 15:12:21 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 incrementally with two additional commits since the last revision:
> 
>  - Make gensrc code use $COPYRIGHT_YEAR
>  - Set COPYRIGHT_YEAR from SOURCE_DATE_EPOCH if present

LGTM but then again I wrote most of it. :) Please await further reviewers before integrating.

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

Marked as reviewed by ihse (Reviewer).

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



More information about the build-dev mailing list