Opened 15 years ago

Closed 15 years ago

Last modified 14 years ago

#22001 closed defect (fixed)

If any file is missing from a port, it can't be uninstalled

Reported by: vaulse@… Owned by: macports-tickets@…
Priority: Normal Milestone: MacPorts 1.8.2
Component: base Version: 1.8.1
Keywords: Cc: jmroot (Joshua Root), ryandesign (Ryan Carsten Schmidt)
Port:

Description (last modified by ryandesign (Ryan Carsten Schmidt))

The error is:

Error: port uninstall failed: realpath failed: No such file or directory

I use a script to delete unnecessary files from my MacPorts installation, saving a lot of storage space and backup time in the process. I don't, for example, need localizations in languages such as Malayalam or Klingon, nor do I need 200 copies of the GPL. This used to cause no problems, but now it does. What's wrong with just skipping a missing file during the uninstall process, perhaps with a warning?

Change History (5)

comment:1 Changed 15 years ago by tobypeterson

should just be a warning, just sounds like excessively-fatal error handling

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

If you're going to mess with the contents of the port behind MacPorts' back, mess with the receipt as well...

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

Cc: jmr@… added
Resolution: fixed
Status: newclosed

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

Cc: ryandesign@… added
Description: modified (diff)
Milestone: MacPorts 1.8.2

I don't think we need a warning; we never had one before. realpath was added to MacPorts 1.8.1 to fix a different problem; we just didn't consider that files might be missing.

Files could also be missing from a port by accident or as the result of another MacPorts bug. We had this recently on the mailing list. We should get this fix into 1.8.2.

comment:5 Changed 14 years ago by jmroot (Joshua Root)

Merged to branch in r60773.

Note: See TracTickets for help on using tickets.