Sunday, April 26, 2020

Re: explanation of FETCH_PACKAGES in ports(7)

Stuart Henderson - Sun, 26 April 2020 at 16:29:30
> On 2020/04/26 16:42, f.holop wrote:
> > hi,
> >
> > i am having difficulties understanding this sentence, could someone
> > help me out?
> >
> >
> > FETCH_PACKAGES
> > If set, try to use as options to pkg_add(1) to install the
> > missing packages from PKG_PATH. For instance:
> >
> > make FETCH_PACKAGES=
> >
> > -f
> > --
> >
>
> If set, even to an empty string) rather than building missing
> dependencies from source, pkg_add(1) will be called to install missing
> packages from PKGPATH.
>
> If not an empty string, it will be called as "pkg_add ${FETCH_PACKAGES}"
> which is useful in some niche cases.

thank you for the explanations. i am afraid none of this comes across
really from the man page as it is formulated now. but i am not a native
speaker, true.

i roughly parse it as: "if you want to pass parameters to pkg_add, set
this to something." and then there is a (unexplained example) of
passing nothing...

while it's main function is really to stop `make build` going recursive
and all ballistic building every single needed thing not installed atm
as a package... (which is rarely what a single port job needs)

-f
--

No comments:

Post a Comment