Ah thanks, that looks promising, I can probably fix it in the build then
On 2022/06/08 22:31, Volker Schlecht wrote:
> From a (very) quick glance, the issue might be related to this:
>
> https://github.com/npm/cli/issues/4996
>
> I'll look into it, but due to time constraints might take a few days.
>
> Sorry for breaking the electron build ...
>
> On 6/8/22 20:12, Stuart Henderson wrote:
> > I had committed this but now backed it out as it's breaking build of
> > devel/electron
> >
> > [1132/32676] ACTION
> > //electron:electron_version_args(//build/toolchain/openbsd:clang_x64)
> > FAILED: gen/electron/electron_version.args
> > python ../../electron/build/npm-run.py --silent generate-version-json --
> > /usr/obj/ports/electron-8.2.0/chromium-80.0.3987.158/out/Release/gen/electron/electron_version.args
> > NPM script 'generate-version-json' failed with code '243':
> >
> > [1133/32676] CXX obj/device/base/base/features.o
> > [1134/32676] ACTION
> > //electron:build_electron_definitions(//build/toolchain/openbsd:clang_x64)
> > FAILED: gen/electron/tsc/typings/electron.d.ts
> > python ../../electron/build/npm-run.py --silent gn-typescript-definitions
> > --
> > /usr/obj/ports/electron-8.2.0/chromium-80.0.3987.158/out/Release/gen/electron/tsc/typings/electron.d.ts
> > NPM script 'gn-typescript-definitions' failed with code '243':
> >
> > It happens relatively early in the electron build so doesn't take hours to
> > repeat but there's no output at all from the command (including without
> > --silent) so hard to figure out what's going on
> >
> > To replicate after a failed build by running npm directly i.e. avoiding
> > the Python wrapper, it's like this:
> >
> > cd /pobj/electron-8.2.0/chromium-80.0.3987.158/out/Release
> > doas -u _pbuild npm run --prefix ../../electron gn-typescript-definitions
> > --
> > /pobj/electron-8.2.0/chromium-80.0.3987.158/out/Release/gen/electron/tsc/typings/electron.d.ts
> >
>