RFR: 8317979: Use TZ database style abbreviations in the CLDR locale provider [v3]
Naoto Sato
naoto at openjdk.org
Wed Oct 18 15:43:14 UTC 2023
On Wed, 18 Oct 2023 15:13:14 GMT, Magnus Ihse Bursie <ihse at openjdk.org> wrote:
>> Naoto Sato has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Delay populating GMT format at runtime. Reflecting review comments.
>
> make/modules/jdk.localedata/Gensrc.gmk line 39:
>
>> 37: GENSRC_DIR := $(SUPPORT_OUTPUTDIR)/gensrc/jdk.localedata
>> 38: CLDR_GEN_DONE := $(GENSRC_DIR)/_cldr-gensrc.marker
>> 39: TZ_DATA_DIR := $(MODULE_SRC)/../java.base/share/data/tzdata
>
> This seems like a bit of abuse of `$(MODULE_SRC)`. I thought we had a macro to get the proper source path for another module, but if we do, I cannot find it now.
>
> If you feel up for it, I'd encourage you to change this to:
>
> Suggestion:
>
> TZ_DATA_DIR := $(call FindModuleSrc, java.base)/share/data/tzdata
>
>
> and add
>
> ################################################################################
> # Find source dir for module
> # Param 1 - module name
> FindModuleSrc = \
> $(TOPDIR)/src/$(strip $1)
>
> at a suitable place in `Utils.gmk`.
>
> Otherwise, just replace it with:
>
>
> TZ_DATA_DIR := $(TOPDIR)/src/java.base/share/data/tzdata
Thanks, Magnus. In fact, I was wondering if I should move back tzdata into make as it is shared like cldr, but it would revert the work you did before, so I ended up traversing the directory structure. Fixed with the latter suggestion.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/16206#discussion_r1364102062
More information about the build-dev
mailing list