2.5 and cxx_stdlib

Rainer Müller raimue at macports.org
Tue May 29 14:02:55 UTC 2018


On 2018-05-29 11:39, Vincent Habchi wrote:
> Josh,
> 
>> Not sure how you ran into that. Installing the new version of base must
>> be done as root as well, and it runs scripts that open the registry and
>> should trigger that upgrade.
> 
> Transcript from my terminal:
> 
> Air > sudo port selfupdate
> --->  Updating MacPorts base sources using rsync
> MacPorts base version 2.4.1 installed,
> MacPorts base version 2.5.0 downloaded.
> --->  Updating the ports tree
> --->  MacPorts base is outdated, installing new version 2.5.0
> Installing new MacPorts release in /opt/local as root:admin; permissions 0755
> 
> Air > port outdated
> sqlite error: attempt to write a readonly database (8) while executing query: ALTER TABLE registry.ports ADD COLUMN cxx_stdlib TEXT
>  while executing
> "registry::open $db_path"
>  (procedure "mportinit" line 664)
>  invoked from within
> "mportinit ui_options global_options global_variations"
> Error: /opt/local/bin/port: Failed to initialize MacPorts, sqlite error: attempt to write a readonly database (8) while executing query: ALTER TABLE registry.ports ADD COLUMN cxx_stdlib TEXT

Hm, the 'make install' target should run several scripts that are also
supposed to update the registry to the latest schema. Not sure why these
were not executed with 'sudo port selfupdate' in your case...

Rainer


More information about the macports-dev mailing list