Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Jun 2018 11:12:54 -0600
From:      Adam Weinberger <adamw@adamw.org>
To:        wjw@digiware.nl
Cc:        ports@freebsd.org
Subject:   Re: Installing javascript code into a port with npm...
Message-ID:  <CAP7rwciO6sAoPk2K-VNv-bbKHYPEN93fX5oar2paQcFASpUGkw@mail.gmail.com>
In-Reply-To: <2285e8c5-21f5-98a2-5b1b-20e2f9747bd3@digiware.nl>
References:  <2285e8c5-21f5-98a2-5b1b-20e2f9747bd3@digiware.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jun 10, 2018 at 9:45 AM Willem Jan Withagen <wjw@digiware.nl> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAP7rwciO6sAoPk2K-VNv-bbKHYPEN93fX5oar2paQcFASpUGkw>