[Midnightbsd-cvs] [MidnightBSD/mports] e80ae8: devel/electron41: restore the stock vendored packa...
Lucas Holt
noreply at github.com
Thu Sep 3 18:48:31 EDT 2026
Branch: refs/heads/devel/electron41
Home: https://github.com/MidnightBSD/mports
Commit: e80ae803c50bd090ed4849174b725241c7186db5
https://github.com/MidnightBSD/mports/commit/e80ae803c50bd090ed4849174b725241c7186db5
Author: Lucas Holt <luke at foolishgames.com>
Date: 2026-09-03 (Thu, 03 Sep 2026)
Changed paths:
M devel/electron41/Makefile
M devel/electron41/distinfo
R devel/electron41/files/packagejsons/.yarn/install-state.gz
M devel/electron41/files/packagejsons/package.json
M devel/electron41/files/packagejsons/yarn.lock
Log Message:
-----------
devel/electron41: restore the stock vendored packagejsons
files/packagejsons/{package.json,yarn.lock} must mirror the Electron source
tarball's own files: the prefetch resolves the offline cache from them, but
pre-configure runs yarn against ${WRKSRC}/electron, whose package.json and
yarn.lock come from the source tarball. Nothing in this port copies the
vendored files over the source ones -- FreeBSD's Mk/Uses/npm.mk does that at
extract time, and the corepack replacement here never replicated it.
The dependabot bumps merged in #673, #674, #801 and #806 edited the vendored
lock, so the cache stopped containing the versions the source lock asks for.
With enableNetwork false, pre-configure failed:
YN0056: @xmldom/xmldom at npm:0.8.11: Cache entry required but missing
YN0056: fast-uri at npm:3.0.1: Cache entry required but missing
YN0056: linkify-it at npm:5.0.0: Cache entry required but missing
Those bumps also never affected the built product, since the build resolves
the source lock either way; they only changed what landed in the cache.
Restore package.json and yarn.lock to the vendor files, drop the
dependabot-generated .yarn/install-state.gz that FreeBSD does not ship, and
regenerate the cache. The result reproduces the distfile recorded when this
port was imported in e4ef6ee1b5, byte for byte.
Verified by extracting the Electron 41.10.2 source tarball, unpacking the
regenerated cache into it and running the pre-configure install offline
(--immutable --immutable-cache, enableNetwork false): completes cleanly.
AI-Assisted-by: Claude Opus 5 <noreply at anthropic.com>
Signed-off-by: Lucas Holt <luke at foolishgames.com>
To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/mports/settings/notifications
More information about the Midnightbsd-cvs
mailing list