Changeset 7a6bcf9


Ignore:
Timestamp:
08/20/2012 11:51:22 PM (12 years ago)
Author:
Ken Moffat <ken@…>
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
Message:

Correct how timezones are installed - this fixes various errors in test-suites. Thanks to Markku Pesonen for noting how Debian install timezones.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9944 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • chapter01/changelog.xml

    r25d78ec r7a6bcf9  
    4545          failures.</para>
    4646        </listitem>
     47        <listitem>
     48          <para>[ken] - Fix how the timezones are installed.</para>
     49        </listitem>
    4750      </itemizedlist>
    4851    </listitem>
  • chapter06/glibc.xml

    r25d78ec r7a6bcf9  
    316316<screen><userinput>tar -xf ../tzdata&tzdata-version;.tar.gz
    317317
     318mkdir -pv /usr/share/zoneinfo/{posix,right} &amp;&amp;
    318319for tz in etcetera southamerica northamerica europe africa antarctica \
    319320  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} &amp;&amp;
     322    zic -L /dev/null -d /usr/share/zoneinfo/posix -y "sh yearistype.sh" ${tz} &amp;&amp;
     323    zic -L leapseconds -d /usr/share/zoneinfo/right -y "sh yearistype.sh" ${tz}
    321324done
    322 cp -v *.tab /usr/share/zoneinfo</userinput></screen>
    323 
    324     <para>One way to determine the local time zone, run the following
     325cp -v zone.tab /usr/share/zoneinfo &amp;&amp;
     326zic -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
    325367    script:</para>
    326368
  • general.ent

    r25d78ec r7a6bcf9  
    1 <!ENTITY version "SVN-20120816">
    2 <!ENTITY releasedate "August 16, 2012">
     1<!ENTITY version "SVN-20120820">
     2<!ENTITY releasedate "August 20, 2012">
    33<!ENTITY copyrightdate "1999-2012"><!-- jhalfs needs a literal dash, not &ndash; -->
    44<!ENTITY milestone "7.2">
  • udev-config/ChangeLog

    r25d78ec r7a6bcf9  
     12012-06-13      Ken Moffat <ken@linuxfromscratch.org>
     2        * add rule_generator/: with persistent net and cd alias rules
     3          and functions which were removed from udev-182 after it was merged
     4          into systemd.
     5
    162010-01-26      Matt Burgess <matthew@linuxfromscratch.org>
    27        * 55-lfs.rules: Remove lots of rules that have been merged upstream.
  • udev-config/Makefile

    r25d78ec r7a6bcf9  
    55INSTALL = install
    66INSTALL_DATA = $(INSTALL) -m644
     7INSTALL_EXEC = $(INSTALL) -m755
    78RULES_FILES = \
    89        55-lfs.rules
     
    1112# Location to install the docs
    1213DOC_DIR = $(PREFIX)/share/doc/udev-config
     14
     15# for files shipped with udev up to version 182
     16SYS_LIB = /lib/udev
     17SYS_RULES_DIR = $(SYS_LIB)/rules.d
     18SYS_RULES = 75-cd-aliases-generator.rules \
     19            75-persistent-net-generator.rules
     20SYS_FUNCTIONS = rule_generator.functions
     21SYS_SCRIPTS = write_cd_rules write_net_rules
    1322
    1423all:
     
    2130                $(INSTALL_DATA) $$rule $(DESTDIR)$(RULES_DIR) || exit 1; \
    2231        done;
     32        $(INSTALL) -d $(DESTDIR)$(SYS_LIB)
     33        for function in $(SYS_FUNCTIONS); do \
     34                $(INSTALL_DATA) rule_generator/$$function $(DESTDIR)$(SYS_LIB) || exit 1; \
     35        done;
     36        for script in $(SYS_SCRIPTS); do \
     37                $(INSTALL_EXEC) rule_generator/$$script $(DESTDIR)$(SYS_LIB) || exit 1; \
     38        done;
     39        $(INSTALL) -d $(DESTDIR)$(SYS_RULES_DIR)
     40        for rule in $(SYS_RULES); do \
     41                $(INSTALL_DATA) rule_generator/$$rule $(DESTDIR)$(SYS_RULES_DIR) || exit 1; \
     42        done;
    2343
    2444install-doc:
Note: See TracChangeset for help on using the changeset viewer.