RFR: 8278766: Enable OpenJDK build support for reproducible jars and jmods using --date [v3]

Andrew Leonard aleonard at openjdk.java.net
Wed Dec 22 15:44:41 UTC 2021


On Wed, 22 Dec 2021 15:28:52 GMT, Andrew Leonard <aleonard at openjdk.org> wrote:

>> make/InitSupport.gmk line 317:
>> 
>>> 315:     export SOURCE_DATE_EPOCH := $$(SOURCE_DATE)
>>> 316:     ifeq ($$(IS_GNU_DATE), yes)
>>> 317:       SOURCE_DATE_ISO_8601 := $(shell $(DATE) --utc --date="@$(SOURCE_DATE_EPOCH)" +"%Y-%m-%dT%H:%M:%SZ" 2> /dev/null)
>> 
>> Are you getting this to work without `export`? I would have expected that to be needed.
>
> @erikj79 fixed it I think, problems is above not enough $'s !! for $(shell.......

resolved, thanks

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

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



More information about the build-dev mailing list