Deactivating the installed version before trying to install the update
Joshua Root
jmr at macports.org
Sun Jan 19 21:07:40 PST 2014
On 2014-1-20 15:03 , Adam Mercer wrote:
> So I've been trying to use something like this, namely:
>
> pre-configure {
> # bug in swig bindings that causes build to fail if previous version is active
> if {![catch {set installed [lindex [registry_active lal] 0]}]} {
> registry_deactivate_composite lal "" [list ports_nodepcheck 1]
> }
> }
>
> But this is failing with the following:
>
> ---> Configuring lal
> ---> Deactivating lal @6.11.0_2+swig_python
> Error: org.macports.configure for port lal returned: sqlite error:
> unable to open database file (14) while executing query: UPDATE
> registry.files SET active=0 WHERE actual_path=? AND id=?
> Please see the log file for port lal for details:
> /opt/local/var/macports/logs/_Users_ram_git_mp_testing_science_lal/lal/main.log
> To report a bug, follow the instructions in the guide:
> http://guide.macports.org/#project.tickets
> Error: Processing of port lal failed
>
> With nothing extra in main.log, clearly I'm doing something wrong here
> but can't see it.
You can't modify the registry when privileges have been dropped.
- Josh
More information about the macports-dev
mailing list