[MacPorts] #61154: Error: port deactivate failed: this entry does not own the given file
MacPorts
noreply at macports.org
Thu Sep 10 17:54:56 UTC 2020
#61154: Error: port deactivate failed: this entry does not own the given file
-------------------------+--------------------
Reporter: ryandesign | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: base | Version: 2.6.3
Resolution: | Keywords:
Port: |
-------------------------+--------------------
Comment (by ryandesign):
Turns out there was a problem with an index and rebuilding the index fixed
it:
{{{
sqlite> .load macports.sqlext
sqlite> pragma integrity_check;
row 907518 missing from index file_actual
row 907615 missing from index file_actual
row 907621 missing from index file_actual
row 907730 missing from index file_actual
row 907787 missing from index file_actual
row 907839 missing from index file_actual
row 907904 missing from index file_actual
row 907968 missing from index file_actual
row 908027 missing from index file_actual
row 908072 missing from index file_actual
row 908134 missing from index file_actual
row 908188 missing from index file_actual
row 908292 missing from index file_actual
row 908345 missing from index file_actual
row 908399 missing from index file_actual
sqlite> reindex file_actual;
sqlite> pragma integrity_check;
ok
sqlite> select * from files where actual_path =
"/opt/local/share/doc/gettext/examples/hello-c++-kde/po/mt.po";
9837|/opt/local/share/doc/gettext/examples/hello-c++-kde/po/mt.po|/opt/local/share/doc/gettext/examples/hello-c++-kde/po/mt.po|1|0
sqlite> ^D
$ sudo /opt/local/bin/port deact gettext
---> Deactivating gettext @0.19.8.1_2
---> Cleaning gettext
}}}
But I'm not sure what we can do to prevent corrupt indexes from occurring
in the future.
--
Ticket URL: <https://trac.macports.org/ticket/61154#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list