MacPorts on COW filesystem (and registry corruption)

René J.V. Bertin rjvbertin at gmail.com
Sat Jul 11 14:24:18 PDT 2015


So something *is* fishy (probably more due to me killing port instances than because of running on ZFS):

{{{
%> sudo port uninstall qt5-creator-mac-devel 
Warning: port definitions are more than two weeks old, consider updating them by running 'port selfupdate'.
--->  Deactivating qt5-creator-mac-devel @3.4.1_0
Error: Failed to deactivate qt5-creator-mac-devel: sqlite error: database disk image is malformed (11) while executing query: UPDATE registry.files INDEXED BY file_actual SET active=0 WHERE actual_path=? AND id=?
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_registry_portfiles_qt5-creator-mac-devel-3.4.1_0_17a23cd57bf236c2cef7833fb52b5acf4d3d66ed590ad129d4c31a9c480be065-8026/qt5-creator-mac-devel/main.log for details.
Warning: Failed to execute portfile from registry for qt5-creator-mac-devel @3.4.1_0
--->  Deactivating qt5-creator-mac-devel @3.4.1_0
Error: Failed to uninstall qt5-creator-mac-devel: sqlite error: database disk image is malformed (11) while executing query: UPDATE registry.files INDEXED BY file_actual SET active=0 WHERE actual_path=? AND id=?
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_registry_portfiles_qt5-creator-mac-devel-3.4.1_0_17a23cd57bf236c2cef7833fb52b5acf4d3d66ed590ad129d4c31a9c480be065-8026/qt5-creator-mac-devel/main.log for details.
Warning: Failed to execute portfile from registry for qt5-creator-mac-devel @3.4.1_0
--->  Deactivating qt5-creator-mac-devel @3.4.1_0
Error: Failed to deactivate qt5-creator-mac-devel: sqlite error: database disk image is malformed (11) while executing query: UPDATE registry.files INDEXED BY file_actual SET active=0 WHERE actual_path=? AND id=?
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_registry_portfiles_qt5-creator-mac-devel-3.4.1_0_17a23cd57bf236c2cef7833fb52b5acf4d3d66ed590ad129d4c31a9c480be065-8026/qt5-creator-mac-devel/main.log for details.
Warning: Failed to execute portfile from registry for qt5-creator-mac-devel @3.4.1_0
--->  Deactivating qt5-creator-mac-devel @3.4.1_0
Error: port uninstall failed: sqlite error: database disk image is malformed (11) while executing query: UPDATE registry.files INDEXED BY file_actual SET active=0 WHERE actual_path=? AND id=?
Exit 1
}}}

I hope there's a way to repair the registry, short of reinstalling everything from scratch?

R.


More information about the macports-dev mailing list