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 22.02.2026 um 18:49 schrieb Marc Baudoin:
> Hi,
>
> 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
This is strange. Why would "make -V DISTNAME" in www/esbuild succeed in
the configure stage of www/chromium but not in the build stage? And why
would _TOOLS_DEPMETHOD.flex be undefined at that point in www/esbuild,
thus leading to the misleading error message "Malformed conditional"?
Maybe the following commands give you a hint:
$ make -C www/chromium show-all
$ make -C www/chromium debug
You could try to print the environment or other helpful data in the
EB_DISTNAME command, defined in www/chromium/Makefile:21.
This part of www/chromium/Makefile looks wrong:
> do-configure:
> cd ${WRKSRC}/esbuild && \
> ${RUN} ...
The ${RUN} should only ever appear at the very beginning of a shell
command line, not in the middle. I'll teach pkglint to warn about cases
like this.
Are there any leftover files in the pkgsrc work directory?
> I'm using NetBSD/amd64 10.1 with an up-to-date pkgsrc tree.
>
> Any idea?
To get better error messages from /usr/bin/make, you could rebuild
usr.bin/make from NetBSD-current and temporarily install it as
/usr/bin/make. This will replace "Malformed conditional" with "Undefined
variable" and print stack traces.
Roland
Home |
Main Index |
Thread Index |
Old Index