portmaster and meaning of --show-work
dougb at FreeBSD.org
Thu Jan 21 15:54:00 UTC 2010
On 1/21/2010 6:08 AM, Miroslav Lachman wrote:
> manpage of portmaster says:
> show what dependent ports are, and are not installed (implies -t).
> It is right behavior of this option, but I think its name is confusing.
Yes, I've never liked the name, but I've never been able to come up with
something better. I've always sucked at naming things, which is sort of
ironic for a DNS guy. :)
> The name "show-work" is more like "show me what steps will be done",
Yes, that's the idea. Also, if you look at the usage it is supposed to
be clear that it's relevant to one port specified on the command line.
So the idea is to show what "work" will be done to install that port.
> for example in the following case "I want" to know what is installed
> (and up to date), what is installed (but will be updated), and what is
> not installed and will be installed.
At the moment the --show-work feature lacks the ability to show you
installed ports that need updating, yes. I agree that this is a
desirable feature, more on that below.
> list of available updates
To get the whole list of things that need updating use 'portmaster -L',
but I have a feeling that's not what you meant.
> The next step (non default) can be interactive run of portmaster for
> beginers with questions like:
> # portmaster php5-extensions
> The following ports will be updated or installed
> as part of update of php5-extensions:
> [there will be similar list as above]
> Do you really want to continue the update? Y/N:
Funny you should mention that. :) The current svn version of portmaster
(users/dougb/portmaster) has this exact feature, and it's almost ready
to be committed to the port. It's currently on by default, and I just
need to add a knob to disable it, and some code to override it if the
only thing to do is the one port the user specified on the command line.
I may get to that today, but $REALLIFE has been kicking my *hrmph*
lately, so it may not be done till the weekend. I would appreciate it if
you would give that a look and tell me if it suits your needs. It's
likely that once I'm 100% convinced that this new feature is the right
way to go that I will drop the --show-work option altogether.
Improve the effectiveness of your Internet presence with
a domain name makeover! http://SupersetSolutions.com/
Computers are useless. They can only give you answers.
-- Pablo Picasso
More information about the freebsd-ports