From owner-freebsd-ports@freebsd.org Tue Oct 29 00:41:33 2019 Return-Path: Delivered-To: freebsd-ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E7D6F161A46 for ; Tue, 29 Oct 2019 00:41:33 +0000 (UTC) (envelope-from adamw@adamw.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 472CSs57Bbz3D4C for ; Tue, 29 Oct 2019 00:41:33 +0000 (UTC) (envelope-from adamw@adamw.org) Received: by mailman.nyi.freebsd.org (Postfix) id AE0D1161A43; Tue, 29 Oct 2019 00:41:33 +0000 (UTC) Delivered-To: ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id ADCDF161A40 for ; Tue, 29 Oct 2019 00:41:33 +0000 (UTC) (envelope-from adamw@adamw.org) Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 472CSq6xX6z3D4B for ; Tue, 29 Oct 2019 00:41:31 +0000 (UTC) (envelope-from adamw@adamw.org) Received: by mail-wr1-x42c.google.com with SMTP id t16so11785771wrr.1 for ; Mon, 28 Oct 2019 17:41:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adamw-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8VmUjDUJmMGz7FcYySz3sdn1TmPefqLoin/Rv9s4H2o=; b=nLUuBtfeMCiprllh5CDOj7BXirfl0rXM8v6iNoIugBl8ILaiIzRAwuri8Q7hBAzrHU VpeQ5dvsZIkLz9QEchYPMkzXSu/C5Hl6XR8D1U+BnSpTsm9Xhb4/N1tFO1brsRVazLH5 GdC34/N7t7HvkhsvLJ1/5hf3HaY7fIvgvQ56yDBEhtV4rg1WkLcX7gCF3CPE822CFScx PJTJyZK5hMgWvceqEUhB29jsVb6KIWwPPqTNzR+WMHj/t4HUqIx6wxzDKD0iZ37sEATH vouXtq0wK56s4ByHFvf9cxONFnr3Kloe/gmWSdoAyW/hESJ5kQTaIt2uSkNTELUZ0eep nHxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8VmUjDUJmMGz7FcYySz3sdn1TmPefqLoin/Rv9s4H2o=; b=m6jZK1JsfBkFJ8aStnUfyrSqymnddrggU0oPZEcAG5y26oeqnQINkefvRJ1EuMUQTB va8yn3chyfn8Tucpk1ysb2/bIStdt0lJIAPE4Cry+52QIFfFMwAS5y+l7u40UFIy2A92 IFEr8mXi/+SgvdpS2NYELCf9EzPyY3BIRK8wPdNLMfHf3XFu4yKWTjyRjG0YMhrfyxoR xrJAjFeosDJKkrpjNXG5yxGLULQkn0RAEMbkIU/As0HPMXRMqY5MTvaPpSzv30t5Qk7Z /HHaHzGWhGaRenNhxM+MWa81SNtqBSDBPLfWQ7vjZOa/aZOGAvZOt7mntCtD0mteYDpk IQ3g== X-Gm-Message-State: APjAAAV3XlrpGgr9Svc5AKbF96evlbv6D836jYZkx3Z8Ln91M6+06pnF 1KW39Fu4zq7lFJVrOZTxWNN4pT2NL2lgyseQTARzMMDTupQ= X-Google-Smtp-Source: APXvYqyznS4eFPnuMH22CY8dOaIyEW2+98mPkp3zB8QYm9dlTH9WflGr2XwAcAOKlmqn87wDNgjS5Tvf0rm7IXrj1Nk= X-Received: by 2002:adf:e286:: with SMTP id v6mr17767787wri.241.1572309690072; Mon, 28 Oct 2019 17:41:30 -0700 (PDT) MIME-Version: 1.0 References: <4f4ba55b-fc5e-f700-2d78-e0c210453d4d@digiware.nl> In-Reply-To: <4f4ba55b-fc5e-f700-2d78-e0c210453d4d@digiware.nl> From: Adam Weinberger Date: Mon, 28 Oct 2019 18:41:14 -0600 Message-ID: Subject: Re: packaging a port that uses npm during build. To: Willem Jan Withagen Cc: "ports@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 472CSq6xX6z3D4B X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=adamw-org.20150623.gappssmtp.com header.s=20150623 header.b=nLUuBtfe; dmarc=none; spf=pass (mx1.freebsd.org: domain of adamw@adamw.org designates 2a00:1450:4864:20::42c as permitted sender) smtp.mailfrom=adamw@adamw.org X-Spamd-Result: default: False [-5.31 / 15.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; R_DKIM_ALLOW(-0.20)[adamw-org.20150623.gappssmtp.com:s=20150623]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[ports@freebsd.org]; DMARC_NA(0.00)[adamw.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[adamw-org.20150623.gappssmtp.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[c.2.4.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-2.81)[ip: (-9.14), ipnet: 2a00:1450::/32(-2.80), asn: 15169(-2.05), country: US(-0.05)]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Oct 2019 00:41:34 -0000 On Mon, Oct 28, 2019 at 6:34 AM Willem Jan Withagen wrote: > > On 28-10-2019 13:28, Adam Weinberger wrote: > > On Mon, Oct 28, 2019 at 5:17 AM Willem Jan Withagen wrote: > >> > >> Hi, > >> > >> The ceph ports should have a manager module called dashboard that > >> exists of a large bundle op JS-scripts that get installed with npm/node > >> during running make on the configured build. > >> > >> Uptil now I've exclude that from builds, but that gets more and more > >> complicated. Ceph cluster status is not reported not healty if the > >> dashboard is not running.... > >> > >> Apart from the fact that npm does not like to be ran as 'root', > >> poudriere also complains about fetching data afte the fetch fase. > >> > >> There are about 1000 npm-modules included in this project. > >> So that would be a large set of things to maintain correctly. > >> > >> Is there a way around this? > >> Or does anybody here have experience with this? > >> > >> I think I read once somewhere that there is also a "flag" that indicates > >> that the port wants network access during the build. Is that feasible? > > > > Can the modules be installed after installation? As in, does a > > package.json get installed somewhere? If so, I'd put the `npm install` > > instructions in pkg-message. > > I'd have to dig deeper, but as far as I can now see it is a rather > convoluted part of the Cmake infra that gets called by gmake to run > several scripts and others... > But the hint is very temping if it was only like: call npm in something > like /usr/local/share/ceph/dasboard/frontend It looks like in the tarball there is src/pybind/mgr/dashboard/frontend/package.json. Does this have what you're looking for? > > > The flag you're talking about has to go in poudriere.conf, so it > > wouldn't be able to help much here. It's for local control. > > Bummer... > What is the latest moment a (Make)script can get access to the network? > Tried finding this in the porters manual, but could not find that detail. The fetch phase is the only time that the network is available, unfortunately. It's a great feature, though it does require rethinking in situations like this. # Adam -- Adam Weinberger adamw@adamw.org https://www.adamw.org