pkgsrc-Users archive

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

Re: Can't build www/chromium with pbulk



Am 26.04.2026 um 14:57 schrieb Marc Baudoin:
> Hi,
> 
> Roland Illig <roland.illig%gmx.de@localhost> écrit :
>> Am 22.02.2026 um 18:49 schrieb Marc Baudoin:
>>>
>>> For the last week, I've been unable to build www/chromium with
>>> pbulk.  I get this in the
>>> pbulk/mnt/bulklog/chromium-145.0.7632.109/build.log file :
>>>
>>> make[1]: "/usr/pkgsrc/mk/tools/replace.mk" line 160: Malformed conditional ((${_TOOLS_DEPMETHOD.flex} == "TOOL_DEPENDS") &&  defined(_TOOLS_DEPMETHOD.lex))
>>> ...
>>> make: "/usr/bin/make -C ../../www/esbuild -V DISTNAME" returned non-zero status
> 
> 
> make[1]: /usr/pkgsrc/mk/tools/replace.mk:160: Variable "_TOOLS_DEPMETHOD.flex" is undefined
>         in /usr/pkgsrc/mk/tools/bsd.tools.mk:160
>         in /usr/pkgsrc/mk/bsd.pkg.mk:428
>         in /usr/pkgsrc/www/esbuild/Makefile:18
>         in make[1] in directory "/usr/pkgsrc/www/esbuild"

That's already better than the old and short error messages, but I still
don't know what's going on.

From the last line, you can see that the error is from "www/esbuild",
not from "www/chromium", but that was already apparent from the original
short error message.

To get further context, you can set the environment variable
MAKE_STACK_TRACE=yes to see how pkgsrc goes from building www/chromium
to www/esbuild.

> make: /usr/pkgsrc/mk/fetch/bsd.fetch-vars.mk:69: Wrong number of words (17) in .for substitution list with 4 variables
>         in /usr/pkgsrc/mk/bsd.pkg.mk:83
>         in /usr/pkgsrc/www/chromium/Makefile:438

make -C /usr/pkgsrc/www/chromium -v GITHUB_SUBMODULES

No idea why there would be an additional word in this variable.

> Any idea?

make -C /usr/pkgsrc/www/esbuild \
    -v USE_TOOLS \
    -v _USE_TOOLS

You could also insert some ".info" lines into mk/tools/replace.mk around
line 93, where _USE_TOOLS is prepared, and around line 159. Or, if that
doesn't provide enough information:

.MAKEFLAGS: -dcpv
# Between these lines, all make(1) conditions, parsed lines,
# variable assignments and evaluations are logged.
.MAKEFLAGS: -d0

That's still for finding out what happens in detail.

Roland



Home | Main Index | Thread Index | Old Index