RFR: 8278766: Enable OpenJDK build support for reproducible jars and jmods using --date
Andrew Leonard
aleonard at openjdk.java.net
Fri Dec 17 20:07:26 UTC 2021
On Fri, 17 Dec 2021 17:54:46 GMT, Erik Joelsson <erikj at openjdk.org> wrote:
>> If "reproducible build" is enabled, then utilize the new --date option in the building of jar's and jmods.
>> Validating the boot jdk supports --date for the building of the jars.
>>
>> Signed-off-by: Andrew Leonard <anleonar at redhat.com>
>
> make/common/MakeBase.gmk line 148:
>
>> 146: ifeq ($(SOURCE_DATE_ISO_8601), )
>> 147: # GNU date format did not work, try BSD date options
>> 148: SOURCE_DATE_ISO_8601 := $(shell $(DATE) -u -j -f "%s" "$(SOURCE_DATE_EPOCH)" +"%Y-%m-%dT%H:%M:%SZ" 2> /dev/null)
>
> Could we maybe figure out the date command line to use in configure instead to avoid the trial and error at build time?
I based this trial and error based on util.m4 code and copied the method, so yes I can store the result from then...
-------------
PR: https://git.openjdk.java.net/jdk/pull/6878
More information about the build-dev
mailing list