On Fri, 5 Nov 2021 15:26:40 GMT, Andrew Leonard <aleon...@openjdk.org> wrote:

> Fixes: https://bugs.openjdk.java.net/browse/JDK-8276654
> 
> A intermittent problem with the make dependencies means the jdk.javadoc 
> element-list-.txt generation can remove the src defined 
> element|package-list-<7,8,9,10>.txt files.
> Recreatable by using --with-jobs=1 causing jdk.javadoc "gendata" to always 
> occur after "java" module build dependency.
> This fix puts a dependency of jdk.javadoc-java on jdk.javadoc-gendata to 
> avoid this.
> 
> Signed-off-by: Andrew Leonard <anleo...@redhat.com>

Good catch, but wouldn't it be better if we could fix the recipe in 
jdk.javadoc/Gendata.gmk to only delete the files it intends to create. If I 
understand what files are created where correctly, you could generate a glob 
for the rm statement using something like this:

$(RM) $(ELEMENT_LISTS_DIR)/element-list-{$(call CommaList,$(call 
sequence,11,$(VERSION_FEATURE)))}.txt

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

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

Reply via email to