We're updating the issue view to help you get more done. 

Unable to remove tree resources in "featureFilters" using the data builder tool

Description

STR:

1 2 3 4 5 6 7 cd /tmp/ echo '{"featureFilters": { "region_tree": { "filterType": "exclude" } } }' > filter.json mkdir icubuild && cd $_ ICU_DATA_FILTER_FILE="/tmp/filter.json" CXXFLAGS="-std=c++14" CPPFLAGS="-DU_CHARSET_IS_UTF8=1 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -U_HIDE_OBSOLETE_UTF_OLD_H=1" $ICU_SRC/icu4c/source/runConfigureICU Linux --prefix=/tmp/icu make

fails with

1 *** No rule to make target 'out/tmp/region/res_index.txt', needed by 'out/build/icudt64l/region/res_index.res'. Stop.

The same error also happens with other resource trees (tested with "rbnf_tree", "brkitr_tree", "lang_tree", and "unit_tree").

As a workaround I'm currently using "resourceFilters" with the exclusion rule "-/*/*" for Firefox builds with ICU 64 RC (just "-/*" doesn't work, because it seems that the "*" needs to occur in the middle of a path). This kind of works, but only removes most, but not all resource data for the requested trees.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 { "featureFilters": { "brkitr_dictionaries": { "filterType": "exclude" }, "brkitr_rules": { "filterType": "exclude" }, "conversion_mappings": { "whitelist": [ "ibm-37_P100-1995", "ibm-1047_P100-1995" ] }, "translit": { "filterType": "exclude" } }, "resourceFilters": [ { "categories": [ "brkitr_tree", "lang_tree", "rbnf_tree", "region_tree", "unit_tree" ], "rules": [ "-/*/*" ] }, { "categories": [ "zone_tree" ], "rules": [ "-/zoneStrings/*/ec" ] } ] }

Status

Assignee

Shane Carr

Reporter

André Bargull

Time Needed

Hours

Components

Fix versions

Priority

assess