Opened 3 years ago

Last modified 3 years ago

#63589 assigned defect

base: port select blindly overwrites pre-existing binaries, without warning

Reported by: mascguy (Christopher Nielsen) Owned by:
Priority: Normal Milestone:
Component: base Version:
Keywords: select Cc: cooljeanius (Eric Gallager)
Port:

Description

Per issue:57787, as well as subsequent PR 12501 - go-tools: eliminate conflict with Ruby, it appears that port select blindly overwrites existing binaries, even if they belong to another port.

Given that the rest of MacPorts makes every attempt to avoid such issues, this should be fixed.

Change History (4)

comment:1 Changed 3 years ago by mascguy (Christopher Nielsen)

Component: portsbase

comment:2 Changed 3 years ago by jmroot (Joshua Root)

Owner: jmroot deleted

comment:3 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Agreed.

If port select were to simply stop if it encountered an existing file, it would potentially leave the user's system in an inconsistent state with some symlinks having been created and others not. See #58785 for more on that.

Implementing this feature might somehow be helped if port select recorded the symlinks in the registry. See #43996 for more on that.

comment:4 Changed 3 years ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added
Note: See TracTickets for help on using tickets.