Ken Moffat wrote:
With expat-2.2.2 the tests are invoked from a run.sh script.

But that script starts:
#! /usr/bin/env bash

(I didn't know you could put a space after the shebang).

Sure, it's just a command line.  You can pass options on the line too.

At this point we do not yet have /usr/bin/env (from coreutils), but
we do have /bin/bash.  The following sed, run before configure,
solves this:

sed -i 's%^.*env bash$%#!/bin/bash%' run.sh.in

Good catch.  Running test in a partial environment like LFS is tricky.

How about:

sed -i 's|usr/bin/env |bin/|'  run.sh.in

Or even:

cat > run.sh.in << EOF
#! /bin/bash
exec "$@"
EOF

which is all we need.

  -- Bruce
--
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to