New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #14906 (closed enhancement: fixed)

Opened 4 years ago

Last modified 3 years ago

port requires too many flags for simple operations

Reported by: paulbeard@… Owned by: macports-tickets@…
Priority: Not set Milestone: MacPorts 1.7.0
Component: base Version: 1.7.0
Keywords: Cc:
Port:

Description

Ideally, this would be filed against a 2.0 release not the trunk or the next release.

-f force mode (ignore state file)

why is -f (force) needed for upgrades of installed ports? Is there a reason that upgrade should not do just that? And why not put in a .conf file in that case? The idea of forcing something just seems wrong to new users, in many cases.

-c autoclean mode (execute clean after install)

I would vote for putting "clean" in a conf file, since it seems unlikely a user would change their mind per port or upgrade cycle. That there is a -k, the opposite command, suggests one should be the default.

-n don't follow dependencies in upgrade (only for upgrading)

Likewise, why not have this be the default?

Feel free to create a new version to apply this to.

Change History

in reply to: ↑ description   Changed 4 years ago by afb@…

Replying to 14906:

Ideally, this would be filed against a 2.0 release not the trunk or the next release. -f force mode (ignore state file) why is -f (force) needed for upgrades of installed ports? Is there a reason that upgrade should not do just that? And why not put in a .conf file in that case? The idea of forcing something just seems wrong to new users, in many cases.

See #12989 (and #7361). It shouldn't be needed...

-c autoclean mode (execute clean after install) I would vote for putting "clean" in a conf file, since it seems unlikely a user would change their mind per port or upgrade cycle. That there is a -k, the opposite command, suggests one should be the default.

It is already available:

# Set whether to automatically execute "clean" after "install" of ports
portautoclean		yes

-n don't follow dependencies in upgrade (only for upgrading) Likewise, why not have this be the default?

It says "The upgrade target works on a port and its dependencies.", so it's a design decision.

The flags are workarounds to dependendency engine bugs, so most likely won't be needed if/when those are fixed...

  Changed 3 years ago by jmr@…

  • status changed from new to closed
  • resolution set to fixed
  • milestone changed from MacPorts Future to MacPorts 1.7.0

You don't need -f in normal usage as of 1.7.0, and as Anders pointed out, the rest of this appears invalid.

Note: See TracTickets for help on using tickets.