pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: libtool --tag issue with pkgsrc under Linux [SOLVED]



On Fri, Nov 28, 2008 at 10:57:15AM +0100, Joerg Sonnenberger wrote:
On Fri, Nov 28, 2008 at 04:02:06PM +0700, Robert Elz wrote:
It might be desirable for other reasons, but if bootstrapping pkgsrc
is causing people to need to do this, then something is broken.

bootstrap rejects /bin/dash as it is known to be broken.

for the record, the correct way to bootstrap should be
export SH=/bin/bash && ./bootstrap
(actually since Linux uses -DFORTIFY_SOURCES by default:
export SH=/bin/bash && CFLAGS="-U_FORTIFY_SOURCE" ./bootstrap )

The following code chunk in /usr/pkgsrc/bootstrap/bootstrap stops
execution:

# On some newer Ubuntu installations, /bin/sh is a symlink to
/bin/dash,
# whose echo(1) is not BSD-compatible.
dash_echo_test=bootstrap_sh -c 'echo "\\100"'if [ "$dash_echo_test" =
"@" ]; then
   { echo "ERROR: Your shell's echo command is not BSD-compatible."
     echo "ERROR: Please select another shell by setting the
     environment"
       echo "ERROR: variable SH."
        } 1>&2
        exit 1;
fi

Not sure of which individual packages will fail to build under Linux with a dash
shell due to this echo incompatibility.

Cheers,
Jonathan


Home | Main Index | Thread Index | Old Index