r1777 - in branches/clfs-2.0/BOOK: . cross-tools/arm cross-tools/common materials/common

jciccone at linuxfromscratch.org jciccone at linuxfromscratch.org
Sun Jun 18 12:55:18 PDT 2006


Author: jciccone
Date: 2006-06-18 13:55:16 -0600 (Sun, 18 Jun 2006)
New Revision: 1777

Modified:
   branches/clfs-2.0/BOOK/cross-tools/arm/glibc.xml
   branches/clfs-2.0/BOOK/cross-tools/common/glibc.xml
   branches/clfs-2.0/BOOK/materials/common/patches.xml
   branches/clfs-2.0/BOOK/patches.ent
Log:
Added a patch to create the zoneinfo files when glibc installs.

Modified: branches/clfs-2.0/BOOK/cross-tools/arm/glibc.xml
===================================================================
--- branches/clfs-2.0/BOOK/cross-tools/arm/glibc.xml	2006-06-18 15:12:31 UTC (rev 1776)
+++ branches/clfs-2.0/BOOK/cross-tools/arm/glibc.xml	2006-06-18 19:55:16 UTC (rev 1777)
@@ -51,6 +51,14 @@
 
     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     href="../common/glibc.xml"
+    xpointer="xpointer(//*[@os='p5'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../common/glibc.xml"
+    xpointer="xpointer(//*[@os='p6'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../common/glibc.xml"
     xpointer="xpointer(//*[@os='b'])"/>
 
     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"

Modified: branches/clfs-2.0/BOOK/cross-tools/common/glibc.xml
===================================================================
--- branches/clfs-2.0/BOOK/cross-tools/common/glibc.xml	2006-06-18 15:12:31 UTC (rev 1776)
+++ branches/clfs-2.0/BOOK/cross-tools/common/glibc.xml	2006-06-18 19:55:16 UTC (rev 1777)
@@ -48,6 +48,12 @@
 
 <screen os="p4"><userinput>patch -Np1 -i ../&glibc-localedef_segfault-patch;</userinput></screen>
 
+    <para os="p5">The following patch changes the way glibc generates it's
+    timezone information so that it can be generated when
+    cross-compiling:</para>
+
+<screen os="p6"><userinput>patch -Np1 -i ../&glibc-crosscompile_timezone_fix-patch;</userinput></screen>
+
     <para os="b">The Glibc documentation recommends building Glibc outside of the
     source directory in a dedicated build directory:</para>
 
@@ -272,15 +278,15 @@
 
     <para>To determine the local time zone, run the following script:</para>
 
-<screen role="nodump"><userinput>tzselect</userinput></screen>
+<screen role="nodump"><userinput>${LFS}/usr/bin/tzselect</userinput></screen>
 
     <para>After answering a few questions about the location, the script will
     output the name of the time zone (e.g., <emphasis>EST5EDT</emphasis> or
     <emphasis>Canada/Eastern</emphasis>). Then create the
     <filename>/etc/localtime</filename> file by running:</para>
 
-<screen><userinput>cp -v --remove-destination /usr/share/zoneinfo/<replaceable>[xxx]</replaceable> \
-    /etc/localtime</userinput></screen>
+<screen><userinput>cp -v --remove-destination ${LFS}/usr/share/zoneinfo/<replaceable>[xxx]</replaceable> \
+    ${LFS}/etc/localtime</userinput></screen>
 
     <para>Replace <replaceable>[xxx]</replaceable> with the name of the time zone
     that <command>tzselect</command> provided (e.g., Canada/Eastern).</para>

Modified: branches/clfs-2.0/BOOK/materials/common/patches.xml
===================================================================
--- branches/clfs-2.0/BOOK/materials/common/patches.xml	2006-06-18 15:12:31 UTC (rev 1776)
+++ branches/clfs-2.0/BOOK/materials/common/patches.xml	2006-06-18 19:55:16 UTC (rev 1777)
@@ -109,6 +109,15 @@
     </varlistentry>
 
     <varlistentry>
+      <term>Glibc Timezone Patch- <token>&glibc-crosscompile_timezone_fix-patch-size;</token>:</term>
+      <listitem>
+        <para>Download: <ulink
+        url="&patches-root;glibc/&glibc-crosscompile_timezone_fix-patch;"/></para>
+        <para>MD5 sum: <literal>&glibc-crosscompile_timezone_fix-patch-md5;</literal></para>
+      </listitem>
+    </varlistentry>
+
+    <varlistentry>
       <term>Glibc Disable linking with libgcc_eh.a - <token>&glibc-libgcc_eh-patch-size;</token>:</term>
       <listitem>
         <para>Download: <ulink

Modified: branches/clfs-2.0/BOOK/patches.ent
===================================================================
--- branches/clfs-2.0/BOOK/patches.ent	2006-06-18 15:12:31 UTC (rev 1776)
+++ branches/clfs-2.0/BOOK/patches.ent	2006-06-18 19:55:16 UTC (rev 1777)
@@ -44,6 +44,10 @@
 <!ENTITY gcc-posix-patch-md5 "0d88068740a0e00780891f2cb905b808">
 <!ENTITY gcc-posix-patch-size "9 KB">
 
+<!ENTITY glibc-crosscompile_timezone_fix-patch "glibc-&glibc-version;-crosscompile_timezone-fix-1.patch">
+<!ENTITY glibc-crosscompile_timezone_fix-patch-md5 "19f7f1fcd25409fa888b5af0364c8ec4">
+<!ENTITY glibc-crosscompile_timezone_fix-patch-size "4 KB">
+
 <!ENTITY glibc-libgcc_eh-patch "glibc-&glibc-version;-libgcc_eh-1.patch">
 <!ENTITY glibc-libgcc_eh-patch-md5 "e5122ea7b89a5f22615eaadf8e46b334">
 <!ENTITY glibc-libgcc_eh-patch-size "1 KB">




More information about the cross-lfs mailing list