[MacPorts] #24880: Registry conversion fails after force activation has been used in the flat format
MacPorts
noreply at macports.org
Thu May 13 10:53:06 PDT 2010
#24880: Registry conversion fails after force activation has been used in the flat
format
---------------------------------+------------------------------------------
Reporter: raimue@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone: MacPorts 1.9.0
Component: base | Version: 1.8.99
Keywords: | Port:
---------------------------------+------------------------------------------
There is a problem with the registry conversion from flat to sqlite when
ports have been force activated in the flat registry.
I've setup a prefix `/opt/regupgrade` to reproduce this problem. The port
`foo` and `bar` (same Portfile, different names) have been installed which
just touches `${prefix}/foo`. Force activation has been used to have both
active at the same time.
{{{
$ port contents foo bar
Port foo contains:
/opt/regupgrade/foo.mp_1273772338
Port bar contains:
/opt/regupgrade/foo
}}}
Now switching portdbformat to sqlite and then triggering the conversion:
{{{
$ sudo port -d info
Warning: Converting your registry to sqlite format, this might take a
while...
DEBUG: /opt/regupgrade/foo is being used by another port
while executing
"$regref activate $props(imagefiles) $props(files)"
invoked from within
"registry::write {
set regref [registry::entry create $props(name) $props(version)
$props(revision) $props(variants) $props(epoch)]
$re..."
(procedure "receipt_sqlite::create_entry_l" line 3)
invoked from within
"receipt_sqlite::create_entry_l $proplist"
(procedure "registry::convert_to_sqlite" line 61)
invoked from within
"registry::convert_to_sqlite"
Failed to convert your registry to sqlite!
while executing
"error "Failed to convert your registry to sqlite!""
(procedure "mportinit" line 543)
invoked from within
"mportinit ui_options global_options global_variations"
Error: /opt/regupgrade/bin/port: Failed to initialize MacPorts, Failed to
convert your registry to sqlite!
}}}
Originally reported by ricci@/gh1 on IRC.
--
Ticket URL: <http://trac.macports.org/ticket/24880>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list