Takahiro Kambe wrote:
In message <20070319232559.71E6013A7D6%danbala.tuwien.ac.at@localhost> on Tue, 20 Mar 2007 00:25:59 +0100 (CET), Thomas Klausner <wiz%NetBSD.org@localhost> wrote:314a313textproc/ruby-eruby 1 taca%NetBSD.org@localhost===> Configuring for ruby18-eruby-1.0.5nb6 => Checking for portability problems in extracted files /usr/pkg/bin/ruby18: 1: Syntax error: "(" unexpected *** Error code 2I thanks much to Roland Illig <rillig@> who fixed the problem on 17th Mar.
... and who introduced exactly this problem a few days before. :)The variable CONFIG_SHELL had only been set in mk/configure/gnu-configure.mk, but it was used in mk/configure/configure.mk. That sounded wrong to me, so I changed it. In addition, the variable CONFIGURE_SCRIPT had misused in some places; there were definitions like:
CONFIGURE_SCRIPT= ${PYTHONBIN} ./setup.py CONFIGURE_SCRIPT= ksh ./configure pkglint says about it: WARN: Makefile:19: "ruby configure.rb" is not a valid pathname.From the name of the variable, it is clear that its value should only be the name of a script, not a complete shell command. It would have been called CONFIGURE_SCRIPT_CMD in that case.
If more of these build failures should appear, the proper fix is to set CONFIG_SHELL to the correct interpreter for the configure script. In some cases this may be "perl" or ${PYTHONBIN}, "ruby" or "ksh".
Roland