Changeset 7a6bcf9 for chapter06/glibc.xml
- Timestamp:
- 08/20/2012 11:51:22 PM (12 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- f0f7ea0
- Parents:
- 25d78ec
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/glibc.xml
r25d78ec r7a6bcf9 316 316 <screen><userinput>tar -xf ../tzdata&tzdata-version;.tar.gz 317 317 318 mkdir -pv /usr/share/zoneinfo/{posix,right} && 318 319 for tz in etcetera southamerica northamerica europe africa antarctica \ 319 320 asia australasia backward pacificnew solar87 solar88 solar89 systemv; do 320 zic -L leapseconds -d /usr/share/zoneinfo -y "sh yearistype.sh" ${tz} 321 zic -L /dev/null -d /usr/share/zoneinfo -y "sh yearistype.sh" ${tz} && 322 zic -L /dev/null -d /usr/share/zoneinfo/posix -y "sh yearistype.sh" ${tz} && 323 zic -L leapseconds -d /usr/share/zoneinfo/right -y "sh yearistype.sh" ${tz} 321 324 done 322 cp -v *.tab /usr/share/zoneinfo</userinput></screen> 323 324 <para>One way to determine the local time zone, run the following 325 cp -v zone.tab /usr/share/zoneinfo && 326 zic -d /usr/share/zoneinfo -p America/New_York</userinput></screen> 327 328 <variablelist> 329 <title>The meaning of the zic commands:</title> 330 331 <varlistentry> 332 <term><parameter>zic -L /dev/null ...</parameter></term> 333 <listitem> 334 <para>This creates posix timezones, without any leap seconds. It is 335 conventional to put these in both 336 <filename class="directory">zoneinfo</filename> and 337 <filename class="directory">zoneinfo/posix</filename>. It is 338 necessary to put the POSIX timezones in 339 <filename class="directory">zoneinfo</filename>, otherwise various 340 test-suites will report errors. On an embedded system, where space is 341 tight and you do not intend to ever update the timezones, you could save 342 1.9MB by not using the <filename class="directory">posix</filename> 343 directory, but some applications or test-suites might give less good 344 results</para> 345 </listitem> 346 </varlistentry> 347 <varlistentry> 348 <term><parameter>zic -L leapseconds ...</parameter></term> 349 <listitem> 350 <para>This creates right timezones, including leap seconds. On an 351 embedded system, where space is tight and you do not intend to 352 ever update the timezones, or care about the correct time, you could 353 save 1.9MB by omitting the <filename class="directory">right</filename> 354 directory.</para> 355 </listitem> 356 </varlistentry> 357 <varlistentry> 358 <term><parameter>zic ... -p ...</parameter></term> 359 <listitem> 360 <para>This creates the <filename>posixrules</filename> file.</para> 361 </listitem> 362 </varlistentry> 363 </variablelist> 364 365 366 <para>One way to determine the local time zone is to run the following 325 367 script:</para> 326 368
Note:
See TracChangeset
for help on using the changeset viewer.