#26585: Intelligent upgrade ---------------------------------+------------------------------------------ Reporter: tommyd@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: base | Version: 1.9.1 Keywords: | Port: p5-io-compress-zlib ---------------------------------+------------------------------------------ Changes (by ryandesign@…): * cc: narf_tm@… (added) * port: => p5-io-compress-zlib Comment: Replying to [ticket:26585 tommyd@…]:
I haven't upgraded my ports installation for quite some time, so recently triggered `port upgrade installed` unattended and thought it should be finished after a couple of hours. But unfortunately it got stuck in between, while it tried to upgrade several old (apparently removed in upstream MP) ports like `p5-io-compress-zlib`.
I wish upgrade would be so intelligent to find out that these ports are no longer existant and would rather mark the particular ports for removal instead of trying and failing to install them.
MacPorts base already has this capability since version 1.8.0; it's called the `replaced_by` keyword. But it's up to individual port maintainers to remember that this capability exists and to employ it when renaming ports. In this case (see #21167), the p5-io-compress-zlib port should have been retained and marked as replaced_by p5-... (whatever it was replaced by), instead of being deleted immediately. However, we do remove the replaced ports after awhile, when we remember to do so. I typically recommend this be a period of no less than one year; I would hope users would update their ports at least once a year, hopefully much more frequently. Unfortunately in your case it looks like your ports are over a year old, so even if we had used the replaced_by feature, it probably wouldn't have helped you now. See #21167 for recommendations on how to complete this particular upgrade, if you still need assistance. -- Ticket URL: <https://trac.macports.org/ticket/26585#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS