On Tue, Apr 16, 2024 at 09:26:12PM +0200, Steffen Nurpmeso wrote:
> Thomas Dickey wrote in
>  <zh7ooyaq5ntub...@prl-debianold-64.jexium-island.net>:
>  |On Tue, Apr 16, 2024 at 08:43:20AM -0600, Nelson H. F. Beebe wrote:
>  |> At Utah, I ran build attempts of lynx2.9.1 in more than 70 systems in
>  |> our test farm. Of those, 59 built and validated successfully, and
>  |> 2.9.1 is now the default version of lynx on all of our physical
>  |> servers.
>  |> 
>  |> The remaining failures are traced to just two issues:
>  |> 
>  |> (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=/usr/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

-- 
Thomas E. Dickey <dic...@invisible-island.net>
https://invisible-island.net

Attachment: signature.asc
Description: PGP signature

Reply via email to