Quellcode durchsuchen

Add a patch to fix a segfault in usb_id.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8421 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Matthew Burgess vor 18 Jahren
Ursprung
Commit
408d21fff1
4 geänderte Dateien mit 16 neuen und 0 gelöschten Zeilen
  1. 3 0
      chapter01/changelog.xml
  2. 4 0
      chapter01/whatsnew.xml
  3. 5 0
      chapter06/udev.xml
  4. 4 0
      patches.ent

+ 3 - 0
chapter01/changelog.xml

@@ -39,6 +39,9 @@
     <listitem>
       <para>2007-10-24</para>
       <itemizedlist>
+        <listitem>
+          <para>[matthew] - Add a patch to fix a segfault in usb_id.</para>
+        </listitem>
         <listitem>
           <para>[matthew] - Upgrade to Tcl-8.4.16. Fixes
           <ulink url="&lfs-ticket-root;2084">#2084</ulink>.</para>

+ 4 - 0
chapter01/whatsnew.xml

@@ -216,6 +216,10 @@
       <para>&readline-fixes-patch;</para>
     </listitem>
 
+    <listitem>
+      <para>&udev-usbid-patch;</para>
+    </listitem>
+
     <listitem>
       <para>&vim-fixes-patch;</para>
     </listitem>

+ 5 - 0
chapter06/udev.xml

@@ -57,6 +57,11 @@ ln -sv /proc/self/fd/1 /lib/udev/devices/stdout
 ln -sv /proc/self/fd/2 /lib/udev/devices/stderr
 ln -sv /proc/kcore /lib/udev/devices/core</userinput></screen>
 
+    <para><command>usb_id</command> is known to segfault under certain kernel
+    configurations.  Fix the issue by applying the following patch:</para>
+
+<screen><userinput remap="pre">patch -Np1 -i ../&udev-usbid-patch;</userinput></screen>
+
     <para>Compile the package:</para>
 
 <screen><userinput remap="make">make EXTRAS="`echo extras/*/`"</userinput></screen>

+ 4 - 0
patches.ent

@@ -103,6 +103,10 @@
 <!ENTITY texinfo-tempfile_fix-patch-md5 "559bda136a2ac7777ecb67511227af85">
 <!ENTITY texinfo-tempfile_fix-patch-size "2.2 KB">
 
+<!ENTITY udev-usbid-patch "udev-&udev-version;-usb_id-1.patch">
+<!ENTITY udev-usbid-md5 "247614818827422b99672ea8bf3909ec">
+<!ENTITY udev-usbid-patch-size "3.2 KB">
+
 <!ENTITY util-linux-cramfs-patch "util-linux-&util-linux-version;-cramfs-1.patch">
 <!ENTITY util-linux-cramfs-patch-md5 "1c3f40b30e12738eb7b66a35b7374572">
 <!ENTITY util-linux-cramfs-patch-size "2.8 KB">