[Bug 271982] [patch] tools/tools/locale/Makefile: fix generate locale source files

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 13 Jun 2023 14:57:32 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271982

            Bug ID: 271982
           Summary: [patch] tools/tools/locale/Makefile: fix generate
                    locale source files
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: misc
          Assignee: bugs@FreeBSD.org
          Reporter: kikadf.01@gmail.com

Created attachment 242762
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=242762&action=edit
Makefile.patch

I noticed some issues in tools/tools/locale/Makefile when generating locale
source files. I followed the make obj; make; make install way from the Readme
file.

1) make doesn’t fetch and extract necessary files by default
2) extracts cldr-tools jar file, but it is not needed
3) got an error: Caused by: java.lang.IllegalArgumentException: Directory
doesn't exist: […]/freebsd-src/amd64.amd64/tools/tools/locale/unicode/seed/main

As I see the core.zip doesn't contain the seed directory only the common
directory. But I read in the https://github.com/unicode-org/cldr source tree,
in the seed subfolder’s Readme file: "The seed directory and its subdirectories
are no longer used by CLDR. See the common directory instead. This obsolete
directory and readme may be kept for backward compatibility." 

I think it is possible to fix this error with link seed to common directory.

With the attached patch I run the make obj && make && make install commands
successful. 

Also I noticed FreeBSD not use the patch/patch-UnicodeData.txt patch to
generate the locale files, however this patch is broken anyway.

-- 
You are receiving this mail because:
You are the assignee for the bug.