[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Lynx-dev] lynx2.9.1 build issues
From: |
Steffen Nurpmeso |
Subject: |
Re: [Lynx-dev] lynx2.9.1 build issues |
Date: |
Wed, 17 Apr 2024 20:27:00 +0200 |
User-agent: |
s-nail v14.9.24-612-g7e3bfac540 |
Thomas Dickey wrote in
<Zh-B4c1ZnujmeMGt@prl-debianold-64.jexium-island.net>:
|On Tue, Apr 16, 2024 at 09:26:12PM +0200, Steffen Nurpmeso wrote:
|> Thomas Dickey wrote in
|> <Zh7OoyaQ5NTubZHs@prl-debianold-64.jexium-island.net>:
|>|On Tue, Apr 16, 2024 at 08:43:20AM -0600, Nelson H. F. Beebe wrote:
...
|>|> (1) On Solaris systems, configure fails like this:
|>|>
|>|> checking for DESTDIR... ./configure: syntax error at line 1343: `('
|>|> unexpected
|>|>
|>|> The fix was simple: use a newer shell than /bin/sh:
|>|>
|>|> ksh ./configure ....
|>|
|>|That's been my recommendation for several years (actually, for tin,
|>|I provided Urs with a script to alter the configure script, but don't
|>|recall anyone else commenting on it) - I posted a copy here:
|>|
|>| https://lists.gnu.org/archive/html/lynx-dev/2019-02/msg00033.html
|>|
|>|Either way, I've been building with Solaris 10 and 11.4 :-)
|>
|> Fwiw i use variants of
|>
|> # For heaven's sake auto-redirect on SunOS/Solaris
|> if [ -z "${__DKIM_KEY_CREATE_UP}" ] && [ -d /usr/xpg4 ]; then
|> if [ "x${SHELL}" = x ] || [ "${SHELL}" = /bin/sh ]; then
|> echo >&2 'SunOS/Solaris, redirecting through $SHELL=/us\
|> r/xpg4/bin/sh'
|> __DKIM_KEY_CREATE_UP=y PATH=/usr/xpg4/bin:${PATH} \
|> SHELL=/usr/xpg4/bin/sh
|> export __DKIM_KEY_CREATE_UP PATH SHELL
|> exec /usr/xpg4/bin/sh "${0}" "${@}"
|> fi
|> fi
|
|I use this (at the moment, only recall that CONFIG_SHELL is needed for
|the configure script):
|
|case .$SHELL in
|.*/sh)
| ;;
|*)
| SHELL=/bin/sh
| test -f /usr/xpg4/bin/sh && SHELL=/usr/xpg4/bin/sh
| ;;
|esac
|
|export SHELL
|CONFIG_SHELL=$SHELL
|export CONFIG_SHELL
Interesting -- i just now realized that i only partially
understood a user request. CONFIG_SHELL seems to be an autotools
thing. No normal average person knows that.
I use the above snippet not in my personal profile etc, but in the
portable test runner scripts, or in configure shell scripts. And
in the lynx configure script there is
SHELL=${CONFIG_SHELL-/bin/sh}
so your own convenience umbrella will not cover your users!?!
--steffen
|
|Der Kragenbaer, The moon bear,
|der holt sich munter he cheerfully and one by one
|einen nach dem anderen runter wa.ks himself off
|(By Robert Gernhardt)