From nobody Fri Jun 28 07:21:47 2024 X-Original-To: ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4W9RhT5786z5PXYD for ; Fri, 28 Jun 2024 07:22:01 +0000 (UTC) (envelope-from hiroo@oikumene.net) Received: from barleycorn.oikumene.net (tk2-231-25124.vs.sakura.ne.jp [160.16.110.128]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4W9RhT086Yz4XpC for ; Fri, 28 Jun 2024 07:22:01 +0000 (UTC) (envelope-from hiroo@oikumene.net) Authentication-Results: mx1.freebsd.org; none Received: from nowhere.oikumene.ukehi.net (KD059129091046.ppp-bb.dion.ne.jp [59.129.91.46]) by barleycorn.oikumene.net (Postfix) with ESMTPSA id D13A761F8B; Fri, 28 Jun 2024 16:27:02 +0900 (JST) Received: from nowhere.oikumene.ukehi.net ([IPv6:240f:3f:802f:2:82c1:6eff:fef8:b41e]) by nowhere.oikumene.ukehi.net (8.18.1/8.18.1) with ESMTP id 45S7Lm8j047337; Fri, 28 Jun 2024 16:21:50 +0900 (JST) (envelope-from hiroo@oikumene.net) X-Authentication-Warning: nowhere.oikumene.ukehi.net: Host [IPv6:240f:3f:802f:2:82c1:6eff:fef8:b41e] claimed to be nowhere.oikumene.ukehi.net Date: Fri, 28 Jun 2024 16:21:47 +0900 From: Hiroo Ono To: Ronald Klop 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: <1523041079.404.1719552426649@localhost> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.42; amd64-portbld-freebsd14.1) List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports@freebsd.org Sender: owner-freebsd-ports@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:9370, ipnet:160.16.0.0/17, country:JP] X-Rspamd-Queue-Id: 4W9RhT086Yz4XpC 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 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