[lfs-dev] chapter05/expect.xml

Milton Ott milton at mettech.me
Fri Jul 10 06:49:12 PDT 2015


My name is Milton and I'm from the lucky country that is Australia.
Hi nice to meet you. I also go by the nick handle Polyatomic. I started
reading the books in 2010, but only recently started building them. I
only have two rigs and they both run lfs, currently one is awaiting a
hardware update.

I was wondering about the file chapter05/expect.xml in Linux From Scratch
Version 20150628-systemd and was thinking about shortening the two commands
there into one command. I updated the book locally and created a patch.

I was thinking instead of:
cp -v configure{,.orig}
sed 's:/usr/local/bin:/bin:' configure.orig > configure

how about this:
sed -i.orig 's:/usr/local/bin:/bin:' configure

patch here:
>From c50d7ed10167981167b1ed3a8328a7d4cc568eb1 Mon Sep 17 00:00:00 2001
From: Polyatomic
Date: Fri, 10 Jul 2015 21:36:52 +0930
Subject: [PATCH 2/2] expect.xml patch

---
 chapter05/expect.xml | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Index: LFS-20150628-systemd/chapter05/expect.xml
===================================================================
--- LFS-20150628-systemd.orig/chapter05/expect.xml
+++ LFS-20150628-systemd/chapter05/expect.xml
@@ -46,8 +46,7 @@
     This will ensure that our test suite tools remain sane for the
final builds of our
     toolchain:</para>

-<screen><userinput remap="pre">cp -v configure{,.orig}
-sed 's:/usr/local/bin:/bin:' configure.orig > configure</userinput></screen>
+<screen><userinput remap="pre">sed -i.orig 's:/usr/local/bin:/bin:'
configure</userinput></screen>

     <para>Now prepare Expect for compilation:</para>


-- 
2.4.0

This is really just an excuse to introduce myself to the list and say G'day.
I've done that now, I hope I haven't balls up by posting a patch here, I can
see lfs uses trac which I'm not familiar with yet.

                             Maybe I'll see ya round, take it easy.
                             Milton


More information about the lfs-dev mailing list