Ignore:
Timestamp:
Jun 6, 2013, 1:09:45 PM (12 years ago)
Author:
William Harrington <kb0iic@…>
Branches:
clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
Children:
874ec12
Parents:
5ae61b1
Message:

Update eglibc install commands for 2.17 update and add time zone data install.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOOK/final-system/common/eglibc.xml

    r5ae61b1 r52ed4da  
    5858unset LINKER</userinput></screen>
    5959
    60     <para os="p3">The following patch fixes an issue that can cause
    61       ALSA to crash:</para>
    62      
    63 <screen os="p4"><userinput>patch -Np1 -i ../&eglibc-fixes-patch;</userinput></screen>
    64 
    6560    <para os="b">The EGLIBC build system is self-contained and will install
    6661    perfectly, even though the compiler specs file and linker are still
     
    7974
    8075<screen os="h"><userinput>../eglibc-&eglibc-version;/configure --prefix=/usr \
    81     --disable-profile --enable-kernel=2.6.32 --libexecdir=/usr/lib/eglibc</userinput></screen>
     76    --disable-profile --enable-kernel=2.6.32 --libexecdir=/usr/lib/eglibc \
     77    --enable-obsolete-rpc</userinput></screen>
    8278
    8379    <variablelist os="i">
     
    152148<screen os="t"><userinput>make install</userinput></screen>
    153149
    154     <para os="ra">Install NIS and RPC related headers that are not installed by default.</para>
    155 
    156 <screen os="rb"><userinput>cp -v ../eglibc-&eglibc-version;/sunrpc/rpc/*.h /usr/include/rpc
    157 cp -v ../eglibc-&eglibc-version;/sunrpc/rpcsvc/*.h /usr/include/rpcsvc
    158 cp -v ../eglibc-&eglibc-version;/nis/rpcsvc/*.h /usr/include/rpcsvc</userinput></screen>
    159 
    160150  </sect2>
    161151
     
    249239# End /etc/nsswitch.conf</literal>
    250240EOF</userinput></screen>
     241
     242    <para>Install timezone data:</para>
     243<screen><userinput>tar -xf ../tzdata&tzdata-version;.tar.gz
     244
     245ZONEINFO=/usr/share/zoneinfo
     246mkdir -pv $ZONEINFO/{posix,right}
     247
     248for tz in etcetera southamerica northamerica europe africa antarctica  \
     249          asia australasia backward pacificnew solar87 solar88 solar89 \
     250          systemv; do
     251    zic -L /dev/null   -d $ZONEINFO       -y "sh yearistype.sh" ${tz}
     252    zic -L /dev/null   -d $ZONEINFO/posix -y "sh yearistype.sh" ${tz}
     253    zic -L leapseconds -d $ZONEINFO/right -y "sh yearistype.sh" ${tz}
     254done
     255
     256cp -v zone.tab iso3166.tab $ZONEINFO
     257zic -d $ZONEINFO -p America/New_York
     258unset ZONEINFO</userinput></screen>
     259
     260    <variablelist>
     261      <title>The meaning of the zic commands:</title>
     262
     263      <varlistentry>
     264        <term><parameter>zic -L /dev/null ...</parameter></term>
     265        <listitem>
     266          <para>This creates posix timezones, without any leap seconds.  It is
     267          conventional to put these in both
     268          <filename class="directory">zoneinfo</filename> and
     269          <filename class="directory">zoneinfo/posix</filename>. It is
     270          necessary to put the POSIX timezones in
     271          <filename class="directory">zoneinfo</filename>, otherwise various
     272          test-suites will report errors. On an embedded system, where space is
     273          tight and you do not intend to ever update the timezones, you could save
     274          1.9MB by not using the <filename class="directory">posix</filename>
     275          directory, but some applications or test-suites might give less good
     276          results</para>
     277        </listitem>
     278      </varlistentry>
     279      <varlistentry>
     280        <term><parameter>zic -L leapseconds ...</parameter></term>
     281        <listitem>
     282          <para>This creates right timezones, including leap seconds. On an
     283          embedded system, where space is tight and you do not intend to
     284          ever update the timezones, or care about the correct time, you could
     285          save 1.9MB by omitting the <filename class="directory">right</filename>
     286          directory.</para>
     287        </listitem>
     288      </varlistentry>
     289      <varlistentry>
     290        <term><parameter>zic ... -p ...</parameter></term>
     291        <listitem>
     292          <para>This creates the <filename>posixrules</filename> file. We use
     293          New York because POSIX requires the daylight savings time rules
     294          to be in accordance with US rules.</para>
     295        </listitem>
     296      </varlistentry>
     297    </variablelist>
    251298
    252299    <para>To determine the local time zone, run the following script:</para>
Note: See TracChangeset for help on using the changeset viewer.