Przeglądaj źródła

Fix a bug in Less whereby the deprecated sigsetmask function was being used instead of sigprocmask

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7844 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Matthew Burgess 19 lat temu
rodzic
commit
eb0d4d82f9
5 zmienionych plików z 28 dodań i 0 usunięć
  1. 7 0
      chapter01/changelog.xml
  2. 3 0
      chapter01/whatsnew.xml
  3. 8 0
      chapter03/patches.xml
  4. 5 0
      chapter06/less.xml
  5. 5 0
      patches.ent

+ 7 - 0
chapter01/changelog.xml

@@ -39,6 +39,13 @@
     <listitem>
       <para>2006-10-28</para>
       <itemizedlist>
+        <listitem>
+          <para>[matthew] - Fix a bug in Less whereby the <type>sigset_t</type>
+          type is not detected by the <command>configure</command> script, which
+          causes <function>sigsetmask</function> to be used instead of the
+          preferred <function>sigprocmask</function> function.  Thanks to Robert
+          Connolly for the report and patch.</para>
+        </listitem>
         <listitem>
           <para>[matthew] - Upgrade to IPRoute2-2.6.18-20061002.</para>
         </listitem>

+ 3 - 0
chapter01/whatsnew.xml

@@ -204,6 +204,9 @@
     <listitem>
       <para>&bash-comment-patch;</para>
     </listitem>
+    <listitem>
+      <para>&less-signal_fix-patch;</para>
+    </listitem>
     <listitem>
       <para>&linux-unifdef-patch;</para>
     </listitem>

+ 8 - 0
chapter03/patches.xml

@@ -154,6 +154,14 @@
       </listitem>
     </varlistentry>
 
+    <varlistentry>
+      <term>Less Signal Fix Patch - <token>&less-signal_fix-patch-size;</token>:</term>
+      <listitem>
+        <para>Download: <ulink url="&patches-root;&less-signal_fix-patch;"/></para>
+        <para>MD5 sum: <literal>&less-signal_fix-patch-md5;</literal></para>
+      </listitem>
+    </varlistentry>
+
     <varlistentry>
       <term>Linux Unifdef Patch - <token>&linux-unifdef-patch-size;</token>:</term>
       <listitem>

+ 5 - 0
chapter06/less.xml

@@ -34,6 +34,11 @@
   <sect2 role="installation">
     <title>Installation of Less</title>
 
+    <para>Apply a patch that prevents Less from using a deprecated function:
+    </para>
+
+<screen><userinput>patch -Np1 -i ../&less-signal_fix-patch;</userinput></screen>
+
     <para>Prepare Less for compilation:</para>
 
 <screen><userinput>./configure --prefix=/usr --sysconfdir=/etc</userinput></screen>

+ 5 - 0
patches.ent

@@ -81,6 +81,11 @@
 <!ENTITY kbd-gcc4_fixes-patch-size "1.4 KB">
 
 
+<!ENTITY less-signal_fix-patch "less-&less-version;-signal_fix-1.patch">
+<!ENTITY less-signal_fix-patch-md5 "ef8f5750b1ef047e6a06cd4ea23068b0">
+<!ENTITY less-signal_fix-patch-size "2.9 KB">
+
+
 <!ENTITY linux-unifdef-patch "linux-&linux-version;-unifdef-1.patch">
 <!ENTITY linux-unifdef-patch-md5 "7d6a92f0d10492e06a3275627377df86">
 <!ENTITY linux-unifdef-patch-size "32 KB">