33
|
1 |
|
|
2 |
OPENSOLARIS.ORG G11N LOCALE WORKSPACE
|
|
3 |
=====================================
|
|
4 |
|
46
|
5 |
This file describes the structure and contains the instructions for
|
|
6 |
downloading and building the G11n Locale workspace for OpenSolaris.
|
33
|
7 |
|
|
8 |
|
|
9 |
Description of the Workspace
|
|
10 |
----------------------------
|
|
11 |
|
46
|
12 |
This workspace is a part of G11n Common Workspace (CWS). Along with other parts
|
|
13 |
it allows to build all OpenSolaris.org G11n packages. See build instructions at:
|
50
|
14 |
http://www.opensolaris.org/os/project/nv-g11n/documents/building/
|
33
|
15 |
|
46
|
16 |
The workspace allows to compile OpenSolaris locale data objects (locales) based
|
|
17 |
on the CLDR data (http://cldr.unicode.org/). This workspace does not contain the
|
|
18 |
upstream sources and tools. The sources are downloaded during the build process,
|
|
19 |
so internet access is required to build the workspace.
|
33
|
20 |
|
|
21 |
|
|
22 |
Structure of the Workspace
|
|
23 |
--------------------------
|
|
24 |
|
|
25 |
./Makefile master makefile
|
|
26 |
./config.mk build configuration
|
|
27 |
./downloads/ all data downloaded from internet,
|
46
|
28 |
'make clean' does not clean this directory
|
33
|
29 |
./jars/ all jars necessary to build the locale data,
|
46
|
30 |
some are built from upstream
|
45
|
31 |
./locales/*.spec locale spec files (see 'Locale Spec File Structure' section)
|
|
32 |
./locales/charmap/ charmap files are generated there
|
|
33 |
./locales/src/ posix src files are generated there
|
33
|
34 |
./misc/ misc files for locale object generation
|
|
35 |
./misc/patches/ patches of upstream code
|
|
36 |
./misc/patches/cldr_core/ patches of CLDR locale data,
|
|
37 |
fix known bugs or add solaris specific code
|
|
38 |
./misc/patches/cldr_tools/ patches of CLDR tools,
|
|
39 |
fix known bugs and add solaris specific code
|
|
40 |
./tools tools used for build
|
|
41 |
|
|
42 |
|
45
|
43 |
Locale Specification File Structure
|
|
44 |
-----------------------------------
|
33
|
45 |
|
46
|
46 |
Locale is described by files locale/*.spec. The files are named:
|
45
|
47 |
locales/xx_YY.eee[@variant].spec
|
33
|
48 |
|
46
|
49 |
Format of the files is:
|
33
|
50 |
# comments ...
|
|
51 |
<key>TAB+<data>
|
|
52 |
|
46
|
53 |
If a key is missing default value is used. The default value is perfect for
|
|
54 |
most of the locales, so for ordinary locales the file is empty.
|
45
|
55 |
|
33
|
56 |
|
|
57 |
Keys:
|
45
|
58 |
pkg_name pkg name for the locale
|
|
59 |
default: 'lang-xx'
|
|
60 |
|
|
61 |
cldr_variant cldr locale variant, see XXX for description
|
|
62 |
default: 'xx_YY@platform=solaris,yesno=solaris,copy_ctype=locales/src/eee.charmap'
|
|
63 |
|
|
64 |
locale_desc locale description (/usr/lib/locales/<loc>/locale_description file)
|
|
65 |
default: 'Language, Country (Encoding)'
|
|
66 |
|
|
67 |
prototype pkg prototype
|
|
68 |
default: misc/prototype.default
|
|
69 |
|
|
70 |
locale_map locale_map (/usr/lib/locale/<loc>/locale_mask file)
|
|
71 |
default: misc/locale_map.default
|
33
|
72 |
|
|
73 |
|
46
|
74 |
Build Instructions
|
|
75 |
------------------
|
45
|
76 |
|
46
|
77 |
The following build instructions are for OpenSolaris 2009.06 (and later).
|
|
78 |
Building on older versions of Solaris/OpenSolaris is possible, but there
|
|
79 |
would be difference in installation of the build tools.
|
|
80 |
|
45
|
81 |
|
|
82 |
Prepare the build environment:
|
|
83 |
|
|
84 |
$ pfexec pkg install SUNWmercurial SUNWgmake SUNWant sunstudio
|
|
85 |
$ # 'pfexec svccfg -s application/pkg/server setprop pkg/port=10000'
|
|
86 |
$ # or 'export PKG_REPO=http://localhost:80'
|
|
87 |
$ # pfexec svccfg -s application/pkg/server setprop pkg/inst_root=/export/home/jl149544/repository2
|
|
88 |
$ pfexec svcadm refresh application/pkg/server
|
|
89 |
$ pfexec svcadm restart pkg/server
|
|
90 |
|
50
|
91 |
$ hg clone ssh://[email protected]/hg/nv-g11n/locale g11n-locale
|
45
|
92 |
$ cd g11n-locale
|
|
93 |
|
|
94 |
|
|
95 |
Build the workspace:
|
|
96 |
|
|
97 |
$ gmake
|
|
98 |
|
|
99 |
|
|
100 |
Test the pkgs:
|
|
101 |
|
|
102 |
$ gmake ips
|
|
103 |
$ pfexec pkg install SUNWlang-xx
|
|
104 |
|