r1153 - in trunk/BOOK: . chapter01 chapter04 chapter06

robert at linuxfromscratch.org robert at linuxfromscratch.org
Mon Jun 11 13:29:25 PDT 2007


Author: robert
Date: 2007-06-11 14:29:25 -0600 (Mon, 11 Jun 2007)
New Revision: 1153

Modified:
   trunk/BOOK/chapter01/changelog.xml
   trunk/BOOK/chapter04/patches.xml
   trunk/BOOK/chapter06/glibc.xml
   trunk/BOOK/patches.ent
Log:
added Glibc upstream patch to add more warn_unused_result attributes to stdio.h

Modified: trunk/BOOK/chapter01/changelog.xml
===================================================================
--- trunk/BOOK/chapter01/changelog.xml	2007-06-11 17:48:43 UTC (rev 1152)
+++ trunk/BOOK/chapter01/changelog.xml	2007-06-11 20:29:25 UTC (rev 1153)
@@ -52,6 +52,10 @@
       <para>June 11th, 2007</para>
       <itemizedlist>
         <listitem>
+          <para>[robert]: Added Glibc upstream patch to add more
+          warn_unused_result attributes to stdio.h.</para>
+        </listitem>
+        <listitem>
           <para>[robert]: Added arc4random() patch for Bash.</para>
         </listitem>
         <listitem>

Modified: trunk/BOOK/chapter04/patches.xml
===================================================================
--- trunk/BOOK/chapter04/patches.xml	2007-06-11 17:48:43 UTC (rev 1152)
+++ trunk/BOOK/chapter04/patches.xml	2007-06-11 20:29:25 UTC (rev 1153)
@@ -290,6 +290,14 @@
       </listitem>
     </varlistentry>
 
+    <varlistentry condition="glibc">
+      <term>Glibc __attribute_warn_unused_result__ Patch - <token>&glibc-wur-patch-size;</token>:</term>
+      <listitem>
+        <para>Download: <ulink url="&patches-root;&glibc-wur-patch;"/></para>
+        <para>MD5 sum: <literal>&glibc-wur-patch-md5;</literal></para>
+      </listitem>
+    </varlistentry>
+
     <varlistentry vendor="2.6">
       <term>GR Security Patch - <token>&grsecurity26-patch-size;</token>:</term>
       <listitem>

Modified: trunk/BOOK/chapter06/glibc.xml
===================================================================
--- trunk/BOOK/chapter06/glibc.xml	2007-06-11 17:48:43 UTC (rev 1152)
+++ trunk/BOOK/chapter06/glibc.xml	2007-06-11 20:29:25 UTC (rev 1153)
@@ -57,6 +57,13 @@
 
 <screen><userinput>patch -Np1 -i ../&glibc-ssp_hp-timing-patch;</userinput></screen>
 
+    <para>The following patch is from Glibc-cvs:
+    <ulink url="http://sourceware.org/ml/glibc-cvs/2006-q4/msg00118.html"/>, and
+    adds <function>__attribute_warn_unused_result__</function> to additional
+    functions, for more _FORTIFY_SOURCE compiler warnings:</para>
+
+<screen><userinput>patch -Np1 -i ../&glibc-wur-patch;</userinput></screen>
+
     <para>In the vi_VN.TCVN locale, <command>bash</command> enters an infinite loop
     at startup. It is unknown whether this is a <command>bash</command> bug or a
     Glibc problem. Disable installation of this locale in order to avoid the

Modified: trunk/BOOK/patches.ent
===================================================================
--- trunk/BOOK/patches.ent	2007-06-11 17:48:43 UTC (rev 1152)
+++ trunk/BOOK/patches.ent	2007-06-11 20:29:25 UTC (rev 1153)
@@ -138,6 +138,10 @@
 <!ENTITY glibc-strlcpy_strlcat-patch-md5 "d67b7df35e0b5861a592cf10625d5aa4">
 <!ENTITY glibc-strlcpy_strlcat-patch-size "12 KB">
 
+<!ENTITY glibc-wur-patch "glibc-&glibc-version;-wur-1.patch">
+<!ENTITY glibc-wur-patch-md5 "936a28a477002f1d67a7ee43f92d4ac6">
+<!ENTITY glibc-wur-patch-size "8 KB">
+
 <!ENTITY grsecurity26-patch "grsecurity-2.1.10-2.6.21.3-200706042125.patch">
 <!ENTITY grsecurity26-patch-md5 "52b1232ec07e35f49096691d988f5a60">
 <!ENTITY grsecurity26-patch-size "985 KB">




More information about the hlfs-book mailing list