On 5/5/06, Bruce Dubbs <[EMAIL PROTECTED]> wrote:

How about shortening it up some:

sed -i '/^soname_spec.*/{
i # X.Org hack to match monolithic Xaw SONAME
i xorglibxawname="libXaw"
s/libname/xorglibxawname/
:a;{N;ba}
}' libtool

Looks good.

My testing shows it gives exactly the same output as the ed script.
It may be worthwhile passing this upstream, but the real fix would be to
create the libtool file correctly in the first place.

I've been thinking about how to best approach this upstream.  I think
if you try to tell anyone that you don't have ed on you're system,
they'll think you're a fool since it's probably considered given on
all systems.  The other thing about the above fix is that it uses -i
for sed, which is not portable.

I would be satisfied if they just fixed configure so it actually
tested the exit status and stopped instead of telling you "fixed"
without checking.  We can always maintain a local fix to prefer sed,
but I have a feeling most people would consider ed akin to not having
awk on your system.  It's just expected to be there.  I could be
wrong, though, since this is the first time in a long time I've needed
it.

As far as fixing libtool at the source, I'm not sure how that goes. Someone who understands autotools better than me will have to take a
stab at that.  The generated local script seems to be a generic
libtool script.  I don't know why the libs aren't setup to have the
SONAME generated correctly by the generic script.

--
Dan
--
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