How to clean registry

Ryan Schmidt ryandesign at
Tue Jun 26 14:53:03 PDT 2012

On Jun 26, 2012, at 11:24, Wahlstedt Jyrki wrote:

> How
> to clean this up? I started to uninstall inactive ports, but interrupted that, and got an error message (I did not pick that up), some SQLite error, IIRC. Now, with some ports (some behave beautifully) I get the following:
> an invalid entry was passed
>     while executing
> "$dependent name"
>     (procedure "receipt_sqlite::list_dependents" line 18)
>     invoked from within
> "${macports::registry.format}::list_dependents $name $version $revision $variants"
>     (procedure "registry::list_dependents" line 3)
>     invoked from within
> "registry::list_dependents $pvals(name)"
>     (procedure "portlist_sortdependents" line 7)
>     invoked from within
> "portlist_sortdependents $portlist"
>     (procedure "action_uninstall" line 17)
>     invoked from within
> "$action_proc $action $portlist [array get global_options]"
>     (procedure "process_cmd" line 95)
>     invoked from within
> "process_cmd $remaining_args"
>     invoked from within
> "if { [llength $remaining_args] > 0 } {
>     # If there are remaining arguments, process those as a command
>     set exit_status [process_cmd $remaining..."
>     (file "/opt/local/bin/port" line 4784)
> So, do I have to clean registry.db or receipts.db manually, or is there some cleaning operation already that I do not know of?

I don't know how to clean or fix the registry. What command(s) lead to the error message you showed above? Some registry problems get cleaned up automatically next time you use any port command, but only if MacPorts has write access to the repository, meaning try using "sudo port info zlib" or something and see if that helps.

To avoid problems in the future, don't interrupt MacPorts when it's uninstalling ports. Or when it's activating or deactivating.

More information about the macports-users mailing list