In a mess with libc++ libstdc++ and OSX 10.7.5 Lion

Ian Wadham at
Sun Sep 17 13:04:57 UTC 2017

Hi db and guys,

Good news! I have managed to revert to the previous working versions of all
my ports, in effect reversing the effects of the failed "port upgrade outdated".

On 17/09/2017, at 10:19 PM, db wrote:
> On 17 Sep 2017, at 07:56, Ian Wadham < at> wrote:
>> Versus, in my case, updating the books by hand.  It should only take a few days...
>> Luckily I have hard copy of reports from last year.  Maybe even my KMyMoney
>> data-file would be loadable into other software…  We'll see.
> Did you try going back to a branch of MP that can actually build kmymoney4 in your Lion system?
> # backup /opt/local/ and /Applications/MacPorts/
> sudo port uninstall installed
> cd /opt/local/var/macports/sources/
> # search a commit around the time you last modified your data file
> git log | grep 'commit\|Date'
> # or just try the first from 2016
> git checkout 1a4d3d46b6eb55dc007e4b909c04c078b7130f35
> sudo port install kmymoney4
> # if it doesn't work search for another commit and retry

Thanks, but I did not try this.  Instead I did something else.

I remembered that, before the "port upgrade outdated" I had uninstalled all
the inactive ports, quite by accident actually --- by not understanding the
full implications of "port -u uninstall xxx", where xxx was a port I no longer
required.  Not only did it uninstall all active and inactive versions of xxx,
but also it went on to uninstall ALL inactive ports…

Anyway, this meant that I could undo the effects of the partial "port upgrade outdated"
simply by:

    sudo port clean akonadi           # Clean the port that failed to upgrade.
    sudo port activate inactive        # Reinstate previous versions of ports that upgraded.

And voila, all is as it was in my Lion machine.  My financial records are accessible again… :-)

In future, I think I will make a list of all active ports before using "port upgrade outdated",
then I can use it to revert the upgrade should anything go wrong.

Thanks very much for all your help,
Cheers, Ian W.

More information about the macports-users mailing list