From nobody Fri Jan 13 09:30:00 2023 X-Original-To: freebsd-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 4NtbkB44l7z2sdV7 for ; Fri, 13 Jan 2023 09:30:26 +0000 (UTC) (envelope-from idefix@fechner.net) Received: from anny.lostinspace.de (anny.lostinspace.de [195.30.95.33]) (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 4Ntbk86D0Vz3Mwd for ; Fri, 13 Jan 2023 09:30:24 +0000 (UTC) (envelope-from idefix@fechner.net) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=fechner.net header.s=default header.b=Roa0z0wq; spf=pass (mx1.freebsd.org: domain of idefix@fechner.net designates 195.30.95.33 as permitted sender) smtp.mailfrom=idefix@fechner.net; dmarc=pass (policy=none) header.from=fechner.net Received: from server2.idefix.lan (beta.fechner.net [89.58.45.13]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: idefix@fechner.net) by anny.lostinspace.de (Postfix) with ESMTPSA id 0D83A5A729; Fri, 13 Jan 2023 10:30:22 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fechner.net; s=default; t=1673602222; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=vm4XGM2Q0Fet59/I8Le3FKsbDvi6QUq5kg7w0gKKY3c=; b=Roa0z0wqwMVEMUzQrcvWG/DHEtO0QbMnnASpvnMgh0F1sJ30fHwanDcuCETqS0Q4eL/3SL m394/9zP5vwBwLIE1HfYXwwgdD6hkqdm79+SE73J5twD5SlPkDhrNLsoo9h1PlLA4Fxjhs ppynkZtzJvQzIMR14YIR4SVGKpMbFUg= Received: from [192.168.0.151] (unknown [93.182.104.176]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by server2.idefix.lan (Postfix) with ESMTPSA id 865953D1CE4; Fri, 13 Jan 2023 10:30:21 +0100 (CET) Message-ID: Date: Fri, 13 Jan 2023 11:30:00 +0200 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 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: npm install, ports and poudriere Content-Language: en-US To: hiroo.ono+freebsd@gmail.com, freebsd-ports@freebsd.org References: From: Matthias Fechner In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Action: no action X-Rspamd-Server: anny.lostinspace.de X-Spamd-Result: default: False [-6.70 / 15.00]; DWL_DNSWL_MED(-2.00)[fechner.net:dkim]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; DMARC_POLICY_ALLOW(-0.50)[fechner.net,none]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; RCVD_IN_DNSWL_MED(-0.20)[195.30.95.33:from]; R_DKIM_ALLOW(-0.20)[fechner.net:s=default]; R_SPF_ALLOW(-0.20)[+a]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TAGGED_RCPT(0.00)[freebsd]; BLOCKLISTDE_FAIL(0.00)[89.58.45.13:server fail,93.182.104.176:server fail]; ARC_NA(0.00)[]; ASN(0.00)[asn:5539, ipnet:195.30.0.0/16, country:DE]; MLMMJ_DEST(0.00)[freebsd-ports@freebsd.org]; DKIM_TRACE(0.00)[fechner.net:+]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_NONE(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_TO(0.00)[gmail.com,freebsd.org]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Queue-Id: 4Ntbk86D0Vz3Mwd X-Spamd-Bar: ------ X-ThisMailContainsUnwantedMimeParts: N Am 13.01.2023 um 04:30 schrieb Hiroo Ono (小野寛生): > I made a port of MongoDB Compasshttps://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) there are several frameworks that bring there own dependency management with it (go, node,  rust, ...). Go also needs to fetch dependencies and maybe it is an idea to do the in a post-fetch step. I and go is doing it be using something similar like this: https://cgit.freebsd.org/ports/tree/devel/gitaly/Makefile#n60 Maybe this can be done in a similar way for npm? Gruß Matthias -- "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning." -- Rich Cook