← Back to team overview

openjdk team mailing list archive

Bug#956154: openjdk-11: Make the copyright date reproducible

 

Source: openjdk-11
Version: 11.0.7+9-1
Severity: normal

The makefile of OpenJDK computes the current year to be used in the copyright
templates. By default the year is derived from the current date and this makes
the build non reproducible. There is a --with-copyright-year configure option
to override this date, it can be used to enforce a reproducible date:


diff --git a/debian/rules b/debian/rules
index a8fc578..326b274 100755
--- a/debian/rules
+++ b/debian/rules
@@ -451,6 +451,7 @@ COMMON_CONFIGURE_ARGS += \
        --with-pcsclite=system \
        --disable-warnings-as-errors \
        --disable-javac-server \
+       --with-copyright-year=$(shell dpkg-parsechangelog -STimestamp | date --utc +%Y) \

 ifneq (,$(filter $(distrel),precise))
   # building with a GCC from a PPA ...