From nobody Fri Jan 13 09:14:13 2023 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 4NtbMc5rJ0z2sc5x for ; Fri, 13 Jan 2023 09:14:20 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Received: from www121.sakura.ne.jp (www121.sakura.ne.jp [153.125.133.21]) (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 4NtbMb1yNKz3LV6 for ; Fri, 13 Jan 2023 09:14:18 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Authentication-Results: mx1.freebsd.org; dkim=none; spf=none (mx1.freebsd.org: domain of junchoon@dec.sakura.ne.jp has no SPF policy when checking 153.125.133.21) smtp.mailfrom=junchoon@dec.sakura.ne.jp; dmarc=none Received: from kalamity.joker.local (123-1-88-210.area1b.commufa.jp [123.1.88.210]) (authenticated bits=0) by www121.sakura.ne.jp (8.16.1/8.16.1/[SAKURA-WEB]/20201212) with ESMTPA id 30D9EElw086843 for ; Fri, 13 Jan 2023 18:14:14 +0900 (JST) (envelope-from junchoon@dec.sakura.ne.jp) Date: Fri, 13 Jan 2023 18:14:13 +0900 From: Tomoaki AOKI To: ports@freebsd.org Subject: Re: npm install, ports and poudriere Message-Id: <20230113181413.d38e665bfe1f9e8f155a7006@dec.sakura.ne.jp> In-Reply-To: References: Organization: Junchoon corps X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd13.0) List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-1.59 / 15.00]; AUTH_NA(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; NEURAL_HAM_SHORT(-0.99)[-0.994]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:7684, ipnet:153.125.128.0/18, country:JP]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; R_SPF_NA(0.00)[no SPF record]; MLMMJ_DEST(0.00)[ports@freebsd.org]; RCVD_TLS_LAST(0.00)[]; HAS_ORG_HEADER(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; DMARC_NA(0.00)[sakura.ne.jp]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[ports@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Queue-Id: 4NtbMb1yNKz3LV6 X-Spamd-Bar: - X-ThisMailContainsUnwantedMimeParts: N On Fri, 13 Jan 2023 11:30:09 +0900 Hiroo Ono (小野寛生) wrote: > Hello, > > I made a port of MongoDB Compass https://www.mongodb.com/docs/compass/current/ . > As it is an electron app, I need to use "npm install" to build it. > > npm install does not work without network connection, while poudriere > allow network connection only at fetch time. > As a result, I need to do bunch of things in fetch mode, and the > Makefile became as attached. Is this acceptable as a port? > If not, I need to rework the Makefile to do npm install at build time, > but that makes the port not officially buildable I think. (though to > each of us, there is ALLOW_NETWORKING_PACKAGES option in > poudriere.conf) Can editors/vscode be any hint? It's electron app, too. https://cgit.freebsd.org/ports/tree/editors/vscode I'm not at all familiar with electron nor Node.js, but is there any cache mechanism for npm that can store required files into before install (at `make fetch` phase)? Does below be of any help? https://docs.npmjs.com/cli/v7/commands/npm-cache -- Tomoaki AOKI