From nobody Fri Jan 13 10:21:03 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 4Ntcrf4w1Xz2p33Q for ; Fri, 13 Jan 2023 10:21:06 +0000 (UTC) (envelope-from ehaupt@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Ntcrf4L7Wz3mNJ; Fri, 13 Jan 2023 10:21:06 +0000 (UTC) (envelope-from ehaupt@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1673605266; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qrtKiYUKPI2yGPN23WgqFYEJL15gBeii85iu57CYs+Y=; b=bCjivjTjS97C8P9by9j0kK9Akv70JwHCvhWD/3/bRbBV+DqiSAUOzKi9E34q+beihdwJv7 W7jChhte1m5YgeEUdAC+KisDe3LtPngFqNHWLetroim7QEvYpM214R0LsOl8YMuycw4rrp RDf5GPNrPHgBpRMAeZQ6eYUCjdhHuGGZnnYy6YWwP0Jq3lFuuqpfQw6qBdfk0UaeyUPeU8 yw8SXPfslLGff0tVmf1fTKwfxQSzN9eTeVFHgdCT1ZtzgV8JCop7DvHj/kiMMd722qj6vl 0Vf2FuqZCqmM/g+IGpGciYUedxQ1abPzyXorhxu5Vl0BM2/hwjhCec1eQtbfNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1673605266; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qrtKiYUKPI2yGPN23WgqFYEJL15gBeii85iu57CYs+Y=; b=nZgFvAyhKt7im8MxHFlGvJ3BpQWuIb5MwzJz4+l47b8SyozY9t8ATrSF239XgFtfFnJiLl 6TLTVzlEfJugKShie0E/+kOuBPgfkaRW0WnllQNiKSulUXaflIuu5BeK2B8eSIHO47oPLP cA23VcHNlFyG1EWriZKZSccodDXGVCCKhxPuOz8tdSl/TOi/nzFcfLNgtvfLSYAzSaSeY3 6vB9uJuZyf9Q3Wi8MjyO07vyPULGE0pKgdhlPgzZ3de3GsRaWVzpuYMEZzp3n433GduVYe zuZC2Z6ACNbX5xYBYSuAycTKEHrsV5S0yvLy4eS2PAlbMVRE5R/k2vj2y8JTcw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1673605266; a=rsa-sha256; cv=none; b=N8LjRsAMoX2fjDrn5tSYvyhUil6Z944u1hWzkSFS1DLq4mtZanloFLPzP1IFX1zzUVaPJD 4pjUIKo+9Rit9x36SY0vVdAtKeGXlQO1tmimB0KEoGmSoOl4JYaX4HKb0ROZ8MpytzIFVk oNYVYBdYb38Y07bvt07JHIUkodfXD6Dmogn3uylNQ/41gWpiqUVyMozjJh6yuq9SGaFbDe x55L7DJ9Mmq3FlAopRgo6kKQca+0N68Rs8NYReWBAoZCtn7JCOa8nzZwPQ+B5b0Q/8jWbY RvMdlYiPEed00J9qklZO4gm1iVtAYoZXPtzJf1AeD9VqliKITIBw6OftGL8nVQ== Received: from beaver (unknown [IPv6:2a02:169:175:0:12bf:48ff:fee1:88e]) (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) (Authenticated sender: ehaupt) by smtp.freebsd.org (Postfix) with ESMTPSA id 4Ntcrd6f02z1FV3; Fri, 13 Jan 2023 10:21:05 +0000 (UTC) (envelope-from ehaupt@FreeBSD.org) Date: Fri, 13 Jan 2023 11:21:03 +0100 From: Emanuel Haupt To: Matthias Fechner Cc: hiroo.ono+freebsd@gmail.com, freebsd-ports@freebsd.org Subject: Re: npm install, ports and poudriere Message-Id: <20230113112103.9f7a5185b884203127e807e0@FreeBSD.org> In-Reply-To: References: 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-ThisMailContainsUnwantedMimeParts: N Matthias Fechner wrote: > 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? You can query the npm dist tarballs with: $ npm view jquery dist.tarball https://registry.npmjs.org/jquery/-/jquery-3.6.3.tgz Download and unpack it: $ npm install --prefix $(make -CWRKDIR) wipeclean@1.1.0 I did something similar with games/wipeclean. Emanuel