pkgsrc-Bulk archive

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

Re: pkgsrc NetBSD 4.0_BETA2/i386 bulk build results 20070316.2125



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:

314a313

textproc/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 2

I 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



Home | Main Index | Thread Index | Old Index