From owner-freebsd-ports@freebsd.org Sun Jun 10 19:31:41 2018 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AA9A310196EE for ; Sun, 10 Jun 2018 19:31:41 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 4713C73AE6 for ; Sun, 10 Jun 2018 19:31:41 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: by mailman.ysv.freebsd.org (Postfix) id 060B910196EB; Sun, 10 Jun 2018 19:31:41 +0000 (UTC) Delivered-To: ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E76C610196EA for ; Sun, 10 Jun 2018 19:31:40 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from smtp.digiware.nl (smtp.digiware.nl [176.74.240.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AAE8E73ADF for ; Sun, 10 Jun 2018 19:31:40 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from router.digiware.nl (localhost.digiware.nl [127.0.0.1]) by smtp.digiware.nl (Postfix) with ESMTP id 1A08B3DC7A; Sun, 10 Jun 2018 21:31:39 +0200 (CEST) X-Virus-Scanned: amavisd-new at digiware.com Received: from smtp.digiware.nl ([127.0.0.1]) by router.digiware.nl (router.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GCPZtbPwzp8E; Sun, 10 Jun 2018 21:31:38 +0200 (CEST) Received: from [192.168.11.152] (unknown [192.168.11.152]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.digiware.nl (Postfix) with ESMTPSA id 6698B3DC79; Sun, 10 Jun 2018 21:31:38 +0200 (CEST) Subject: Re: Installing javascript code into a port with npm... To: Adam Weinberger Cc: ports@freebsd.org References: <2285e8c5-21f5-98a2-5b1b-20e2f9747bd3@digiware.nl> From: Willem Jan Withagen Message-ID: Date: Sun, 10 Jun 2018 21:31:38 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Jun 2018 19:31:41 -0000 On 10/06/2018 19:12, Adam Weinberger wrote: > On Sun, Jun 10, 2018 at 9:45 AM Willem Jan Withagen wrote: >> >> Hi, >> >> The Ceph ports has since a while started to import all kinds of >> javascript code using npm. Which fetches external data and install this >> in the Ceph resulting tree. >> >> I have a question with this: >> >> How would that work under pouderiere building, because I was under the >> impression that fetching extra data whilest builing a ports is sort of >> not done. >> >> Other than that I still have errors in the building code, but I'd like >> to know this before I put major effort in getting it to work the way it >> now does... >> >> Thanx, >> --WjW > > poudriere cannot fetch during build. (However, it can if you whitelist > it in ALLOW_NETWORKING_PACKAGES in poudriere.conf.) > > The only thing you can do is fetch those dependencies as part of > do-fetch, or have the user do it after installation (pkg-message > instructions or a script or something). > > Please, try *not* to create ports for the dependencies. We absolutely > do not want npm packages in ports unless there's no other option. 'mmm Sounds like an effort. But avoiding npm packages is waht I expected, given that none we in the tree. --WjW