You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JDK8 binaries have a blank SOURCE string in their release files. They also contain a lot of missing data compared to jdk11+ binaries (could be due to it being an early version?):
I've been looking into this a bit and have managed to figure a few things out. There seems to be very little information about how the release file is generated and what can be found is either a) not applicable to jdk8u or b) completely outdated.
What I have found is that the "SOURCE" field is populated by this code:
# The source ids can come from the Mercurial repository, or in the files
# $(HGTIP_FILENAME) which contains the id but is also positioned in the same
# directory as the original $(HGDIR) directory.
# These should not be := assignments, only used from the root Makefile.
HG_VERSION = $(shell $(HG) version 2> /dev/null)
HG_DIRECTORY=.hg
HGTIP_FILENAME=.hgtip
HG_SEARCH = ./REPO ./*/REPO ./*/*/REPO ./*/*/*/REPO
REPO_LIST = $(patsubst ./%,%,$(patsubst %/,%,$(sort $(dir \
$(shell $(CD) $(SRC_ROOT) ; ( $(LS) -d $(HG_SEARCH:%/REPO=%/$(HG_DIRECTORY)) ; \
$(LS) $(HG_SEARCH:%/REPO=%/$(HGTIP_FILENAME)) ) \
2> /dev/null)))))
# Emit the repo:id pairs to $@
define GetSourceTips
$(CD) $(SRC_ROOT) ; \
for i in $(REPO_LIST) IGNORE ; do \
if [ "$${i}" = "IGNORE" ] ; then \
continue; \
elif [ -d $${i}/$(HG_DIRECTORY) -a "$(HG_VERSION)" != "" ] ; then \
$(PRINTF) " %s:%s" \
"$${i}" `$(HG) id -i --repository $${i}` ; \
elif [ -f $${i}/$(HGTIP_FILENAME) ] ; then \
$(PRINTF) " %s:%s" \
"$${i}" `$(CAT) $${i}/$(HGTIP_FILENAME)` ; \
fi; \
done >> $@
$(PRINTF) "\n" >> $@
endef
# Create the HGTIP_FILENAME file. Called from jdk/make/closed/bundles.gmk
define CreateHgTip
$(HG) id -i --repository $1' > $1/$(HGTIP_FILENAME); \
$(ECHO) $1/$(HGTIP_FILENAME)
endef
The course of action I'm planning to take now is to have the build scripts create a .hgtip after the jdk8u mirror repo is cloned and put the git sha of the mirror into it. If anyone can see any potential issues or a better way to do it let me know.
Platform:
Any
Architecture:
Any
Ref #897
JDK8 binaries have a blank
SOURCE
string in their release files. They also contain a lot of missing data compared to jdk11+ binaries (could be due to it being an early version?):JDK8
JDK11
The text was updated successfully, but these errors were encountered: