On 5/2/06, Dan Nicholson <[EMAIL PROTECTED]> wrote:
On 4/30/06, Archaic <[EMAIL PROTECTED]> wrote:
>
> Aaak! Wouldn't a sed to use sed be preferred? Why anyone is still
> relying on ed is beyond me.

I'm really unfamiliar with ed, so I don't know if the ed script would
work correctly as an sed script.  I'd be willing to try it, though, as
this is the first time in a longggg time I can recall needing ed.
Going, from memory, I think this sed would fix it

sed -i 's/^ed/sed/' configure

I was way off base.  Turns out that ed and sed are kind of opposite,
and some of the script commands didn't completely work in sed. Anyway, the sed script I came up with in configure is different enough
that this fix is patch worthy.  Below is the patch.  Is it still worth
it not to have ed as a dependency?

--
Dan

--- libXaw-1.0.1.orig/configure 2005-12-21 07:08:11.000000000 +0000
+++ libXaw-1.0.1/configure      2006-05-05 15:25:11.331608792 +0000
@@ -19147,15 +19147,17 @@ if grep "xorglibxawname" libtool > /dev/
        echo "$as_me:$LINENO: result: already done" >&5
echo "${ECHO_T}already done" >&6
else
-       ed libtool << \EOF
-/^soname_spec/i
-# X.Org hack to match monolithic Xaw SONAME
-xorglibxawname="libXaw"
-.
-/^soname_spec/s/libname/xorglibxawname/
-w
-q
-EOF
+       sed -i '
+/^soname_spec/{
+i # X.Org hack to match monolithic Xaw SONAME
+i xorglibxawname="libXaw"
+s/libname/xorglibxawname/
+:a
+$!{
+       N
+       ba
+}
+}' libtool
        echo "$as_me:$LINENO: result: fixed" >&5
echo "${ECHO_T}fixed" >&6
fi
--
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to