Procházet zdrojové kódy

Add patch to fix glibc occasional crash with problem nameservers

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9965 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Bruce Dubbs před 13 roky
rodič
revize
8d2a1f4c95
5 změnil soubory, kde provedl 26 přidání a 3 odebrání
  1. 5 3
      chapter01/changelog.xml
  2. 4 0
      chapter01/whatsnew.xml
  3. 8 0
      chapter03/patches.xml
  4. 5 0
      chapter06/glibc.xml
  5. 4 0
      patches.ent

+ 5 - 3
chapter01/changelog.xml

@@ -40,11 +40,13 @@
       <para>2012-08-27</para>
       <itemizedlist>
         <listitem>
-          <para>[bdubbs] - Add instructions to Chapter 5 glibc
-          to add rpc headers to the host system if they are missing.</para>
+          <para>[bdubbs] - Add patch to fix glibc occasional crash
+          with problem nameservers. Fixes
+          <ulink url="&lfs-ticket-root;3172">#3172</ulink>.</para>
         </listitem>
         <listitem>
-          <para>[bdubbs] - Apply upstream patches to make.</para>
+          <para>[bdubbs] - Add instructions to Chapter 5 glibc
+          to add rpc headers to the host system if they are missing.</para>
         </listitem>
       </itemizedlist>
     </listitem>

+ 4 - 0
chapter01/whatsnew.xml

@@ -235,6 +235,10 @@
       <para>&flex-bison-patch;</para>
     </listitem>
 
+    <listitem>
+      <para>&glibc-fix-resolv-patch;</para>
+    </listitem>
+
     <listitem>
       <para>&kbd-fixes-patch;</para>
     </listitem>

+ 8 - 0
chapter03/patches.xml

@@ -58,6 +58,14 @@
       </listitem>
     </varlistentry>
 
+    <varlistentry>
+      <term>Glibc DNS Resolve Patch - <token>&glibc-fix-resolv-patch-size;</token>:</term>
+      <listitem>
+        <para>Download: <ulink url="&patches-root;&glibc-fix-resolv-patch;"/></para>
+        <para>MD5 sum: <literal>&glibc-fix-resolv-patch-md5;</literal></para>
+      </listitem>
+    </varlistentry>
+
 <!--
     <varlistentry>
       <term>GRUB Disk Geometry Patch - <token>&grub-geometry-patch-size;</token>:</term>

+ 5 - 0
chapter06/glibc.xml

@@ -103,6 +103,11 @@ unset DL</userinput></screen>-->
 
 <screen><userinput remap="pre">sed -i 's|@BASH@|/bin/bash|' elf/ldd.bash.in</userinput></screen>
 
+    <para>Now fix a problem that causes some applications to crash when 
+    utilizing problem nameservers:</para>
+
+<screen><userinput remap="pre">patch -Np1 -i ../&glibc-fix-resolv-patch;</userinput></screen>
+
     <para>The Glibc documentation recommends building Glibc outside of the source
     directory in a dedicated build directory:</para>
 

+ 4 - 0
patches.ent

@@ -34,6 +34,10 @@
 <!ENTITY gcc-startfiles-patch-md5 "799ef1971350d2e3c794f2123f247cc6">
 <!ENTITY gcc-startfiles-patch-size "1.5 KB">
 
+<!ENTITY glibc-fix-resolv-patch "glibc-&glibc-version;-res_query_fix-1.patch">
+<!ENTITY glibc-fix-resolv-patch-md5 "d37659c643b1a2150624120238e5b295">
+<!ENTITY glibc-fix-resolv-patch-size "2.0 KB">
+
 
 <!ENTITY grub-inode-patch "grub-&grub-version;-256byte_inode-1.patch">
 <!ENTITY grub-inode-patch-md5 "2482bef9c1866b4045767a56268ba673">