Pārlūkot izejas kodu

Finished adding system inotify support in linux-libc-headers and glibc.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/6.2/BOOK@7738 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Dan Nichilson 19 gadi atpakaļ
vecāks
revīzija
0ef66b34aa

+ 12 - 0
chapter01/changelog.xml

@@ -36,6 +36,18 @@
     </listitem>
 -->
 
+    <listitem>
+      <para>August 1, 2006</para>
+      <itemizedlist>
+        <listitem>
+          <para>[dnicholson] - Finished adding system inotify support.
+          Split the patch so that the syscall functions are part of the
+          Glibc installation. Thanks to Alexander Patrakov for supplying
+          the proper syscall bits.</para>
+        </listitem>
+      </itemizedlist>
+    </listitem>
+
     <listitem>
       <para>July 31, 2006</para>
       <itemizedlist>

+ 8 - 0
chapter03/patches.xml

@@ -114,6 +114,14 @@
       </listitem>
     </varlistentry>
 
+    <varlistentry>
+      <term>Glibc Inotify Syscall Functions Patch - <token>&glibc-inotify-patch-size;</token>:</term>
+      <listitem>
+        <para>Download: <ulink url="&patches-root;&glibc-inotify-patch;"/></para>
+        <para>MD5 sum: <literal>&glibc-inotify-patch-md5;</literal></para>
+      </listitem>
+    </varlistentry>
+
     <varlistentry>
       <term>Grep RedHat Fixes Patch - <token>&grep-fixes-patch-size;</token>:</term>
       <listitem>

+ 11 - 1
chapter06/glibc.xml

@@ -69,6 +69,11 @@
 
 <screen><userinput>patch -Np1 -i ../&glibc-linux_types-patch;</userinput></screen>
 
+    <para>Add a header to define syscall functions for the inotify feature
+    available in newer Linux kernels:</para>
+
+<screen><userinput>patch -Np1 -i ../&glibc-inotify-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
@@ -169,9 +174,14 @@ grep Error glibc-check-log</userinput></screen>
 
 <screen><userinput>make install</userinput></screen>
 
+   <para>Install the inotify header to the system header location:</para>
+
+<screen><userinput>cp -v ../glibc-&glibc-version;/sysdeps/unix/sysv/linux/inotify.h \
+    /usr/include/sys</userinput></screen>
+
     <para>The locales that can make the system respond in a different language
     were not installed by the above command. None of the locales are required,
-    but, if some of them are misssing, testuites of the future packages would
+    but if some of them are missing, testsuites of the future packages would
     skip important testcases.</para>
 
     <para>Individual locales can be installed using the

+ 2 - 2
chapter06/linux-libc-headers.xml

@@ -43,8 +43,8 @@
     which was designed to maintain an API stable version of the Linux
     headers.</para>
 
-    <para>Add a header that can be used by some applications to add additional
-    functionality:</para>
+    <para>Add a userspace header and syscall support for the inotify feature
+    available in newer Linux kernels:</para>
 
 <screen><userinput>patch -Np1 -i ../&linux-inotify-patch;</userinput></screen>
 

+ 1 - 1
general.ent

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!ENTITY version "6.2-pre3">
-<!ENTITY releasedate "July 30, 2006">
+<!ENTITY releasedate "August 1, 2006">
 <!ENTITY milestone "6.2">
 <!ENTITY generic-version "6.2"> <!-- Use "development", "testing", or "x.y[-pre{x}]" -->
 

+ 7 - 3
patches.ent

@@ -56,6 +56,10 @@
 <!ENTITY glibc-linux_types-patch-md5 "30ea59ae747478aa9315455543b5bb43">
 <!ENTITY glibc-linux_types-patch-size "1.1 KB">
 
+<!ENTITY glibc-inotify-patch "glibc-&glibc-version;-inotify-1.patch">
+<!ENTITY glibc-inotify-patch-md5 "7f2d849d28c413033dd2a1e739e9ae3c">
+<!ENTITY glibc-inotify-patch-size "1.4 KB">
+
 
 <!ENTITY grep-fixes-patch "grep-&grep-version;-redhat_fixes-2.patch">
 <!ENTITY grep-fixes-patch-md5 "2c67910be2d0a54714f63ce350e6d8a6">
@@ -98,9 +102,9 @@
 <!ENTITY linux-utf8-patch-md5 "d67b53e1e99c782bd28d879e11ee16c3">
 <!ENTITY linux-utf8-patch-size "11 KB">
 
-<!ENTITY linux-inotify-patch "linux-libc-headers-2.6.12.0-inotify-2.patch">
-<!ENTITY linux-inotify-patch-md5 "e6976f61b7d74b7f714830ee0ac47bcd">
-<!ENTITY linux-inotify-patch-size "5.7 KB">
+<!ENTITY linux-inotify-patch "linux-libc-headers-&linux-libc-headers-version;-inotify-3.patch">
+<!ENTITY linux-inotify-patch-md5 "8fd71a4bd3344380bd16caf2c430fa9b">
+<!ENTITY linux-inotify-patch-size "4.7 KB">
 
 
 <!ENTITY mktemp-tempfile-patch "mktemp-&mktemp-version;-add_tempfile-3.patch">