r5432 - in trunk/BOOK: introduction/welcome pst/ps

randy at linuxfromscratch.org randy at linuxfromscratch.org
Thu Dec 15 12:42:01 PST 2005


Author: randy
Date: 2005-12-15 13:42:00 -0700 (Thu, 15 Dec 2005)
New Revision: 5432

Modified:
   trunk/BOOK/introduction/welcome/changelog.xml
   trunk/BOOK/pst/ps/fop.xml
Log:
Added a sed command to the FOP instructions to fix a tail command with obsolete syntax in the JAI binary

Modified: trunk/BOOK/introduction/welcome/changelog.xml
===================================================================
--- trunk/BOOK/introduction/welcome/changelog.xml	2005-12-15 19:49:59 UTC (rev 5431)
+++ trunk/BOOK/introduction/welcome/changelog.xml	2005-12-15 20:42:00 UTC (rev 5432)
@@ -45,6 +45,10 @@
       <para>December 15, 2005</para>
       <itemizedlist>
         <listitem>
+          <para>[randy] - Added a sed command to the FOP instructions to fix
+          a tail command with obsolete syntax in the JAI binary.</para>
+        </listitem>
+        <listitem>
           <para>[randy] - Updated to Gamin-0.1.7.</para>
         </listitem>
         <listitem>

Modified: trunk/BOOK/pst/ps/fop.xml
===================================================================
--- trunk/BOOK/pst/ps/fop.xml	2005-12-15 19:49:59 UTC (rev 5431)
+++ trunk/BOOK/pst/ps/fop.xml	2005-12-15 20:42:00 UTC (rev 5432)
@@ -132,7 +132,9 @@
       the <systemitem class="username">root</systemitem> user while in the
       root of the <application>FOP</application> source tree:</para>
 
-<screen role="root"><userinput>chmod 755 ../jai-1_1_2_01-lib-linux-i586-jdk.bin &&
+<screen role="root"><userinput>sed -i 's/tail +122/tail -n +122/' \
+    ../jai-1_1_2_01-lib-linux-i586-jdk.bin &&
+chmod 755 ../jai-1_1_2_01-lib-linux-i586-jdk.bin &&
 FOP_BUILD_DIR=$(pwd) &&
 cd $JAVA_HOME &&
 yes | $FOP_BUILD_DIR/../jai-1_1_2_01-lib-linux-i586-jdk.bin &&
@@ -148,7 +150,7 @@
 
 <screen><userinput>patch -Np1 -i ../fop-&fop-version;-jdk_1.5.0-1.patch &&
 ./build.sh &&
-sed -i -e "s/build/lib/" fop.sh</userinput></screen>
+sed -i "s/build/lib/" fop.sh</userinput></screen>
 
       <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
 
@@ -211,7 +213,7 @@
       package, run the following commands as the <systemitem
       class="username">root</systemitem> user:</para>
 
-<screen role="root"><userinput>sed -i -e "s/build/lib/" xalan.sh &&
+<screen role="root"><userinput>sed -i "s/build/lib/" xalan.sh &&
 install -v -m755 xalan.sh /opt/fop-&fop-version;/bin &&
 install -v -m644 lib/xml-apis.jar \
                  lib/xercesImpl-2.2.1.jar \
@@ -241,6 +243,12 @@
   <sect2 role="commands">
     <title>Command Explanations</title>
 
+    <para><command>sed -i 's/tail +122/tail -n +122/' ...</command>:
+    The <application>JAI</application> binary file has a <command>tail</command>
+    command imbedded in the file which uses obsolete syntax and causes the
+    file to not unpack correctly. This command fixes the obsolete
+    syntax.</para>
+
     <para><command>yes | $FOP_BUILD_DIR/../jai-...-jdk.bin</command>: This
     command installs the <application>JAI</application> components
     into the <application>JDK</application> file structure. The
@@ -250,7 +258,7 @@
     a reference point to the source executable and as a method to return back to
     the <application>FOP</application> source tree.</para>
 
-    <para><command>sed -i -e "s/build/lib/" ...</command>: These commands modify
+    <para><command>sed -i "s/build/lib/" ...</command>: These commands modify
     the installed shell scripts so that the location of the installed
     <filename>fop.jar</filename> file is correctly identified.</para>
 




More information about the blfs-book mailing list