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



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
> 
> 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

When running this from the pbulk sandbox (with an up-to-date
pkgsrc tree, including www/chromium updated to the latest
version, 145.0.7632.116), I get:

make[1]: "/usr/pkgsrc/mk/tools/replace.mk" line 160: Malformed conditional ((${_TOOLS_DEPMETHOD.flex} == "TOOL_DEPENDS") &&  defined(_TOOLS_DEPMETHOD.lex))
make[1]: "/usr/pkgsrc/mk/tools/replace.mk" line 172: Malformed conditional ((${_TOOLS_DEPMETHOD.gm4} == "TOOL_DEPENDS") &&  defined(_TOOLS_DEPMETHOD.m4))
make[1]: Fatal errors encountered -- cannot continue
make: "/usr/bin/make -C ../../www/esbuild -V DISTNAME" returned non-zero status
make[1]: "/usr/pkgsrc/mk/tools/replace.mk" line 160: Malformed conditional ((${_TOOLS_DEPMETHOD.flex} == "TOOL_DEPENDS") &&  defined(_TOOLS_DEPMETHOD.lex))
make[1]: "/usr/pkgsrc/mk/tools/replace.mk" line 172: Malformed conditional ((${_TOOLS_DEPMETHOD.gm4} == "TOOL_DEPENDS") &&  defined(_TOOLS_DEPMETHOD.m4))
make[1]: Fatal errors encountered -- cannot continue
make: "/usr/bin/make -C ../../www/esbuild -V DISTNAME" returned non-zero status
make: "/usr/pkgsrc/mk/fetch/bsd.fetch-vars.mk" line 69: Wrong number of words (15) in .for substitution list with 4 variables
make[1]: "/usr/pkgsrc/mk/tools/replace.mk" line 160: Malformed conditional ((${_TOOLS_DEPMETHOD.flex} == "TOOL_DEPENDS") &&  defined(_TOOLS_DEPMETHOD.lex))
make[1]: "/usr/pkgsrc/mk/tools/replace.mk" line 172: Malformed conditional ((${_TOOLS_DEPMETHOD.gm4} == "TOOL_DEPENDS") &&  defined(_TOOLS_DEPMETHOD.m4))
make[1]: Fatal errors encountered -- cannot continue
make: "/usr/bin/make -C ../../www/esbuild -V DISTNAME" returned non-zero status
make: "/usr/pkgsrc/mk/fetch/github.mk" line 78: Wrong number of words (15) in .for substitution list with 4 variables
make: Fatal errors encountered -- cannot continue
make: stopped in /usr/pkgsrc/www/chromium

> $ make -C www/chromium debug

Same thing.

That's why I suspect a problem in my pbulk sandbox but all the
packages other than www/chromium I recently compiled built just
fine in the same sandbox (including mail/thunderbird,
misc/libreoffice, www/firefox ans a bunch of others) so I don't
understand why only www/chromium has that problem.

I started using pbulk just a few months ago so I don't know where
to look for the source of my problem. Or should I just destroy
and rebuild the pbulk sandbox? Though I'd prefer to understand
what's going on there.

> You could try to print the environment or other helpful data in the
> EB_DISTNAME command, defined in www/chromium/Makefile:21.

make: "/usr/pkgsrc/mk/tools/replace.mk" line 160: Malformed conditional ((${_TOOLS_DEPMETHOD.flex} == "TOOL_DEPENDS") &&  defined(_TOOLS_DEPMETHOD.lex))
make: "/usr/pkgsrc/mk/tools/replace.mk" line 172: Malformed conditional ((${_TOOLS_DEPMETHOD.gm4} == "TOOL_DEPENDS") &&  defined(_TOOLS_DEPMETHOD.m4))
make: Fatal errors encountered -- cannot continue
make: stopped in /usr/pkgsrc/www/esbuild

> Are there any leftover files in the pkgsrc work directory?

In <pbulk sandbox>/tmp/work, I have:

- chromium-145.0.7632.116 (whole www/chromium source code)
- a vendor directory containing a bunch of subdirectories with a
  lot of Rust source files

> 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.

Will try that next week.

Thanks.


Home | Main Index | Thread Index | Old Index