From owner-freebsd-ports@freebsd.org Sun Jun 10 17:13:13 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 D8B8310057EC for ; Sun, 10 Jun 2018 17:13:12 +0000 (UTC) (envelope-from adamw@adamw.org) 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 5BA036CF4E for ; Sun, 10 Jun 2018 17:13:12 +0000 (UTC) (envelope-from adamw@adamw.org) Received: by mailman.ysv.freebsd.org (Postfix) id 1A95610057EA; Sun, 10 Jun 2018 17:13:12 +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 067C310057E9 for ; Sun, 10 Jun 2018 17:13:12 +0000 (UTC) (envelope-from adamw@adamw.org) Received: from mail-yb0-x236.google.com (mail-yb0-x236.google.com [IPv6:2607:f8b0:4002:c09::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 97E466CF4D for ; Sun, 10 Jun 2018 17:13:11 +0000 (UTC) (envelope-from adamw@adamw.org) Received: by mail-yb0-x236.google.com with SMTP id p22-v6so5949556yba.13 for ; Sun, 10 Jun 2018 10:13:11 -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=5sT7LLYMhrD5cAeXY5ONIlPz9V1yWNDyeyBzXuJX6Us=; b=Q+6tpsg3cpmRDDl9KB/kJ+sAhSrKGEAQhsn5C/sjHDuyQrbGBlB1YnOAD4rXwLl6pL XOc/gvJ0VKL9KOCBMVMfXQtCYORYjR6yS6rsOi2NoHrh2Lh4Mfx6Sga4uTIM8rWJytBX NCREbyS+/ffFeloshVw9UCsxWfSmJucAh6w2Fk4mu82jCkl+8ZMplVMSgER/zafke8Vc upzGpawsc7iw1lm22InIXj+feIjIAadIJm8MtMGMy2UfxkhDKCTni0+AW9VWnFqwJwFp rZ2fSZsBr4zbAB5d264lWDap3WKESiV67PTzFkkYhrKNF7QbuaVQv4E7Ic2NrPXLnvf4 YNqA== 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=5sT7LLYMhrD5cAeXY5ONIlPz9V1yWNDyeyBzXuJX6Us=; b=Czd10+JOKcRHA5tdbGBBh2J8T4Pw0d3cxFTUEguqgagPrVE0y16fXuUp8R+8aWlH39 TiQlNkqIPFwGOpDyX3GXvTk7OEIzowIv0plRhkwU5lcsoo1OXuqC2RysClx9GelTFmDO lVwmhTsDwSii5yYicloniLwoatBTcvUzh+DPJmSMmdE+ORBLkXPpTi4zX3BznHOhPs6/ cuH5Gra7URWVxWjISyiiSTp069AoqXRxfrGHOOwZOl0Bsn8occHGzC8OM98xjAYnLsIG ek4x29it8FaXlHXDll2o6OzvROgO5GSoQSU5RuMepllu7lwvcY/w/tilj/dPe9Tg4iuq qYWw== X-Gm-Message-State: APt69E2oXM8ORoY1axAItXtfy1L6+ApxJnUDUXL0t8gob6zritDPll+i vum4NyNBCHSMHzH6433A+aK2TES7ArsCRExORawGl2KO X-Google-Smtp-Source: ADUXVKIh7H2WBuVPEQoXc2a/E9NsyjYHTH/k3i2Z40dVVFHk+A7Q5ZQp1US8sUpNsvPRNj95VI1ptQoVlFfkv7ciNsE= X-Received: by 2002:a25:a467:: with SMTP id f94-v6mr1024711ybi.57.1528650790681; Sun, 10 Jun 2018 10:13:10 -0700 (PDT) MIME-Version: 1.0 References: <2285e8c5-21f5-98a2-5b1b-20e2f9747bd3@digiware.nl> In-Reply-To: <2285e8c5-21f5-98a2-5b1b-20e2f9747bd3@digiware.nl> From: Adam Weinberger Date: Sun, 10 Jun 2018 11:12:54 -0600 Message-ID: Subject: Re: Installing javascript code into a port with npm... To: wjw@digiware.nl Cc: ports@freebsd.org Content-Type: text/plain; charset="UTF-8" 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 17:13:13 -0000 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. # Adam -- Adam Weinberger adamw@adamw.org https://www.adamw.org