What have I forgotten about specifying which Perl should be /opt/local/bin/perl?

Marius Schamschula lists at schamschula.com
Mon Jan 24 21:41:32 UTC 2022


On Jan 24, 2022, at 3:33 PM, Ryan Schmidt <ryandesign at macports.org> wrote:
> 
>> A possible alternative: a reasonably easy way to keep only the most recent X inactive versions of a port with a given set of variants. That way one could keep things reasonably clean but have something to fall back to. If there's a non-manual way to do that (short of a creative script that digests the output of "port installed"), I must have missed it.
> 
> There isn't anything built-in to do that. It could be scripted, as you suggest. "port reclaim" deletes all inactive ports, I believe. It wouldn't be unreasonable to enhance it with the ability to keep the n most recent versions of each port.

I have a simple shell script, mptidy, that keeps the two most recent versions of a port.

It allows me to reactivate the old version if there is an issue with a new build.

However, it isn’t smart enough to deal with multiple variant builds, etc.

Marius
--
Marius Schamschula


More information about the macports-users mailing list