r969 - branches/2.4-branch/BOOK/chapter01 branches/2.4-branch/BOOK/chapter05 trunk/BOOK/chapter01 trunk/BOOK/chapter05

robert at linuxfromscratch.org robert at linuxfromscratch.org
Wed Feb 7 07:53:38 PST 2007


Author: robert
Date: 2007-02-07 08:53:38 -0700 (Wed, 07 Feb 2007)
New Revision: 969

Modified:
   branches/2.4-branch/BOOK/chapter01/changelog.xml
   branches/2.4-branch/BOOK/chapter05/expect.xml
   trunk/BOOK/chapter01/changelog.xml
   trunk/BOOK/chapter05/expect.xml
Log:
Fix Expect to compile with uClibc (HAVE_STROPTS_H)

Modified: branches/2.4-branch/BOOK/chapter01/changelog.xml
===================================================================
--- branches/2.4-branch/BOOK/chapter01/changelog.xml	2007-02-07 14:28:25 UTC (rev 968)
+++ branches/2.4-branch/BOOK/chapter01/changelog.xml	2007-02-07 15:53:38 UTC (rev 969)
@@ -110,6 +110,8 @@
 </listitem>
 -->
 
+<listitem><para>February 7th, 2007 [Robert]: Fix Expect to compile with uClibc (HAVE_STROPTS_H).</para></listitem>
+
 <listitem><para>February 7th, 2007 [Robert]: Bump to Bash-3.2.</para></listitem>
 
 <listitem><para>February 7th, 2007 [Robert]: Removed chapter05/libintl.xml. libintl is provided by

Modified: branches/2.4-branch/BOOK/chapter05/expect.xml
===================================================================
--- branches/2.4-branch/BOOK/chapter05/expect.xml	2007-02-07 14:28:25 UTC (rev 968)
+++ branches/2.4-branch/BOOK/chapter05/expect.xml	2007-02-07 15:53:38 UTC (rev 969)
@@ -96,6 +96,14 @@
 
     </variablelist>
 
+    <para condition="uclibc">uClibc does not have the
+    <filename class="headerfile">stropts.h</filename> header, but it may be
+    found on the host system. The following command will disable its use so
+    Expect can build with uClibc:</para>
+
+<screen condition="uclibc"><userinput>cp -v expect_cf.h{,.orig}
+sed 's/#define HAVE_STROPTS_H 1/#undef HAVE_STROPTS_H/' > expect_cf.h</userinput></screen>
+
     <para>Build the package:</para>
 
 <screen><userinput>make</userinput></screen>

Modified: trunk/BOOK/chapter01/changelog.xml
===================================================================
--- trunk/BOOK/chapter01/changelog.xml	2007-02-07 14:28:25 UTC (rev 968)
+++ trunk/BOOK/chapter01/changelog.xml	2007-02-07 15:53:38 UTC (rev 969)
@@ -112,6 +112,8 @@
 </listitem>
 -->
 
+<listitem><para>February 7th, 2007 [Robert]: Fix Expect to compile with uClibc (HAVE_STROPTS_H).</para></listitem>
+
 <listitem><para>February 7th, 2007 [Robert]: Bump to Bash-3.2.</para></listitem>
 
 <listitem><para>February 7th, 2007 [Robert]: Removed chapter05/libintl.xml. libintl is provided by

Modified: trunk/BOOK/chapter05/expect.xml
===================================================================
--- trunk/BOOK/chapter05/expect.xml	2007-02-07 14:28:25 UTC (rev 968)
+++ trunk/BOOK/chapter05/expect.xml	2007-02-07 15:53:38 UTC (rev 969)
@@ -96,6 +96,14 @@
 
     </variablelist>
 
+    <para condition="uclibc">uClibc does not have the
+    <filename class="headerfile">stropts.h</filename> header, but it may be
+    found on the host system. The following command will disable its use so
+    Expect can build with uClibc:</para>
+
+<screen condition="uclibc"><userinput>cp -v expect_cf.h{,.orig}
+sed 's/#define HAVE_STROPTS_H 1/#undef HAVE_STROPTS_H/' > expect_cf.h</userinput></screen>
+
     <para>Build the package:</para>
 
 <screen><userinput>make</userinput></screen>




More information about the hlfs-book mailing list