librelist archives

« back to archive

optional and recommended keywords

optional and recommended keywords

From:
Christer Solskogen
Date:
2010-11-21 @ 16:33
Hi!

I just installed ffmpeg using homebrew and noticed that it installed a
lot of unneeded dependencies(IMHO). I looked at the formula and saw
that much of the dependencies had a optional-keyword. What does that
mean? I can't find any information about it on the webpage/wiki.

--
chs

Re: [homebrew] optional and recommended keywords

From:
Benoit Daloze
Date:
2010-11-21 @ 18:51
On 21 November 2010 17:33, Christer Solskogen
<christer.solskogen@gmail.com> wrote:
> Hi!
>
> I just installed ffmpeg using homebrew and noticed that it installed a
> lot of unneeded dependencies(IMHO). I looked at the formula and saw
> that much of the dependencies had a optional-keyword. What does that
> mean? I can't find any information about it on the webpage/wiki.
>
> --
> chs
>

I was wondering too, but as Mike said, it is not coded yet.

I guess it is rather tricky to do, because there is no default to
please everyone
(e.g.: I would like my ffmpeg able to convert most of common formats
by default, while you want bare minimal).

Re: [homebrew] optional and recommended keywords

From:
Adam Vandenberg
Date:
2010-11-21 @ 19:07
My take on optionals is that a higher-level tool could use "brew" on
the command-line to inspect the desired formula, its dependency graph,
and what the user already has installed.

It could then provide a UI with checkboxes that would let the user
pick optionals (and have recommendeds pre-checked.)

The installs would then be run through the brew command line with
"--ignore-dependencies" in a proper order.

Of course, this tool doesn't exist, nor does "copious free time".

Re: [homebrew] optional and recommended keywords

From:
Christer Solskogen
Date:
2010-11-21 @ 19:13
On Sun, Nov 21, 2010 at 8:07 PM, Adam Vandenberg <flangy@gmail.com> wrote:

> It could then provide a UI with checkboxes that would let the user
> pick optionals (and have recommendeds pre-checked.)
>

Thanks for the information, everybody. You answered my question.

@Adam: The FreeBSD ports collection have that, and it works perfectly IMHO.
One "easy" way of handling those dependencies (or, more as a quick
hack) is that the application Bar will
use the dependency of libfoo if libfoo is installed of libfoo is a
optional dependency.

-- 
chs

Re: [homebrew] optional and recommended keywords

From:
Mike McQuaid
Date:
2010-11-21 @ 17:15
On 21 November 2010 16:33, Christer Solskogen
<christer.solskogen@gmail.com> wrote:
> I just installed ffmpeg using homebrew and noticed that it installed a
> lot of unneeded dependencies(IMHO). I looked at the formula and saw
> that much of the dependencies had a optional-keyword. What does that
> mean? I can't find any information about it on the webpage/wiki.

It doesn't do anything (yet) as far as I'm aware but we'll eventually
get around to coding it.

-- 
Mike McQuaid
http://mikemcquaid.com