Date: Fri, 28 Jun 2024 16:21:47 +0900 From: Hiroo Ono <hiroo@oikumene.net> To: Ronald Klop <ronald-lists@klop.ws> Cc: ports@freebsd.org Subject: Re: [Bug 279519] [NEW PORT] databases/mongosh: mongodb official Shell CLI Message-ID: <20240628162147.55302ddd@nowhere.oikumene.ukehi.net> In-Reply-To: <1523041079.404.1719552426649@localhost> References: <bug-279519-42404-q8rdu43UPn@https.bugs.freebsd.org/bugzilla/> <1523041079.404.1719552426649@localhost>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, Not a committed port, so I do not know if it is the right solution. I managed to limit the networking in fetch phase in the port below: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272180 in short, I took the following steps in fetch phase, 1. HOME=3D${WRKDIR} npm install --ignore-scripts 2. backup ${WRKDIR}/.npm under ${DISTDIR} in extract phase 3. extract backup .npm under ${WRKDIR} in build phase 4. HOME=3D${WRKDIR} npm install --offline Another solution is electron port. When I looked into in (around version 22), it archived yarn cache somewhere and fetched it. On Fri, 28 Jun 2024 07:27:06 +0200 (CEST) Ronald Klop <ronald-lists@klop.ws> wrote: > Hi, >=20 > I=E2=80=99m not experienced in npm ports. This new port does networking a= fter > the fetch phase. Can somebody else suggest a good solution? >=20 > Regards, > Ronald=20 >=20 > Van: bugzilla-noreply@freebsd.org > Datum: 27 juni 2024 13:41 > Aan: ronald@FreeBSD.org > Onderwerp: [Bug 279519] [NEW PORT] databases/mongosh: mongodb > official Shell CLI >=20 > >=20 > >=20 > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D279519 > >=20 > > --- Comment #3 from Fabien Amelinck --- > > (In reply to Ronald Klop from comment #2) > >=20 > > Thank you for taking the time to review my port submission. > >=20 > > I actually know, that's why I have > > ALLOW_NETWORKING_PACKAGES=3D"mongosh" in poudriere.conf. > >=20 > > What do you suggest ? > > A repo with the node_modules populated or an ugly "npm install" at > > fetch step ? > >=20 > > I didn't find how electron and vscode are managing this constraint. > >=20 > > --=20 > > You are receiving this mail because: > > You are on the CC list for the bug. > >=20 > >=20 > >=20 > > =20
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20240628162147.55302ddd>