[ moving to ports@, hopefully reply-to will be set correctly if I got the gmane/nntp bits right :) ]
On 2022-12-17, Roger Marsh <r...@rmswch.plus.com> wrote: > The attempt to get at Berkeley DB, installed from packages, via tkinter fails > with some undefined symbol messages. > > Is there something I have not done which would make this work? > > I tried this because the bsddb3 (Python) package is not supported at Python > 10, and it's replacement, berkeleydb, does not support the Berkeley DB > versions provided as OpenBSD packages. You might possibly be able to kludge around it with some LD_PRELOAD, though tkinter is now built against Tcl 8.6 and the db-tcl package is built against Tcl 8.5 and I don't know if extensions are compatible cross-version. The real answer for direct access to bdb from Python is to provide a newer version of databases/db (probably by adding a v5 subdir for 5.3 i.e. the last pre-AGPL version) and replace py-bsddb3 with a new port for py-berkeleydb using this. There are newer 4.x versions but at least the log format if not the db format is different (I haven't looked in a while) and I have some recollection of db version updates being rather painful, so I feel it would make sense to review other ports using bdb individually to see if they can be updated to 5.x, and let sleeping cats lie for v4. -- Please keep replies on the mailing list.