[Clfs-commits] commit: r4344 - in /branches/clfs-sysroot/BOOK/final-system: arm/perl.xml common/gzip.xml

svn at cross-lfs.org svn at cross-lfs.org
Mon Jan 5 12:01:23 PST 2009


Author: chris at beaker67.com
Date: Mon Jan  5 20:01:23 2009
New Revision: 4344

Log:
Cannot depend on host system having recent GNU sed

Modified:
    branches/clfs-sysroot/BOOK/final-system/arm/perl.xml
    branches/clfs-sysroot/BOOK/final-system/common/gzip.xml

Modified: branches/clfs-sysroot/BOOK/final-system/arm/perl.xml
==============================================================================
--- branches/clfs-sysroot/BOOK/final-system/arm/perl.xml (original)
+++ branches/clfs-sysroot/BOOK/final-system/arm/perl.xml Mon Jan  5 20:01:23 2009
@@ -39,8 +39,9 @@
     to be built with -fPIC so it can be linked into a shared library
     later:</para>
 
-<screen os="s2"><userinput>sed -i -e "s at pldlflags=''@pldlflags=\"\$cccdlflags\"@g" \
-    -e "s at static_target='static'@static_target='static_pic'@g" Makefile.SH</userinput></screen>
+<screen os="s2"><userinput>cp -v Makefile.SH{,.orig}
+sed -e "s at pldlflags=''@pldlflags=\"\$cccdlflags\"@g" \
+    -e "s at static_target='static'@static_target='static_pic'@g" Makefile.SH.orig > Makefile.SH</userinput></screen>
 
     <para os="a">The Cross directory contains a Makefile for cross-compiling:</para>
 

Modified: branches/clfs-sysroot/BOOK/final-system/common/gzip.xml
==============================================================================
--- branches/clfs-sysroot/BOOK/final-system/common/gzip.xml (original)
+++ branches/clfs-sysroot/BOOK/final-system/common/gzip.xml Mon Jan  5 20:01:23 2009
@@ -29,7 +29,10 @@
     futimens to gl_futimens as newer versions of Glibc provide an incompatible
     version:</para>
 
-<screen os="s2"><userinput>sed -i "s/futimens/gl_&/" $(grep -lr futimens *)</userinput></screen>
+<screen os="s2"><userinput>for file in $(grep -lr futimens *); do
+  cp -v ${file}{,.orig}
+  sed -e "s/futimens/gl_&/" ${file}.orig > ${file}
+done</userinput></screen>
 
     <para os="a">Prepare Gzip for compilation:</para>
 




More information about the Clfs-commits mailing list