Cannot uninstall local port with invalid version number
S P Arif Sahari Wibowo
arifsaha at yahoo.com
Fri Jul 20 22:15:23 UTC 2018
On 2018-07-20, 13:32, Ryan Schmidt wrote:
> please write to the new list address in the future.
Will do, thanks.
> It has always been invalid to specify anything other than a
> nonnegative integer for the revision. It was a bug that
> previous versions of MacPorts allowed this to happen.
And apparently more than one bugs, I remember at one time I can
use alphanumeric strings as revision, then when that was
rejected, I start use this current one.
> MacPorts now correctly complains about it.
Unfortunately MacPorts did not do the proper thing to make sure
no invalid package trapped in like this, e.g. MacPorts should
refuse to update if there is any invalid entry in the registry.
> I do not know how you can uninstall this port now. I have a
> feeling that a similar situation has come up before; you could
> search the list archives.
I did search, but only found 1-2 issues on installing, not
uninstalling, package.
> You're not meant to modify this file manually, but the
> registry is an SQLite 3 database located at:
>
> /opt/local/var/macports/registry/registry.db
>
> If you wish to examine or manipulate the database, you will
> need to load the MacPorts SQLite extension into your SQLite
> client. I don't remember how to do that but it's been
> discussed on the list before; you can search the archives.
>
> It's possible that changing the revision for this installed
> port from this invalid revision to a valid value will allow
> you to uninstall it. It's possible you would still have to
> delete the installed port's tbz2 file afterward, since its
> filename contains the revision.
Seems like I running out of choices, right?
Thanks!
--
____ ____ ____ ____ (stephan paul) Arif Sahari Wibowo
/___ /___/ /___/ /___ http://www.arifsaha.com/
____/ / / / ____/
More information about the macports-users
mailing list