From: Kirill A. Korinsky Subject: Re: lang/erlang: enabled ODBC To: "Kirill A. Korinsky" , OpenBSD ports , Volker Schlecht Date: Tue, 19 Nov 2024 01:05:12 +0100 On Mon, 18 Nov 2024 19:23:14 +0100, Stuart Henderson wrote: > > On 2024/11/18 18:17, Kirill A. Korinsky wrote: > > ports@, Volker, > > > > To make using of net/ejabberd better, we need a support of ODBC at erlang. > > > > Here a diff which enables ODBC support, and new port databases/unixodbc > > which is required by erlang. To avoid conflict with databases/iodbc I > > installed headers into include/unixodbc. > > This needs some thought / checking of logs, other ports are likely to > pick up unixODBC if present during build. (also IIRC some other ports > required patching etc to use iodbc in the first place and are probably > happier with unixODBC..) > Well, I think we need to move headers from databases/iodbc into /usr/local/include/iodbc to avoid piking a wrong library for used headers. Probably that need to be done with switching some ports into unixodbc, but it is the next step. > > : share/examples/unixodbc/ > : share/examples/unixodbc/odbc.ini > : @sample ${SYSCONFDIR}/odbc.ini > : share/examples/unixodbc/odbcinst.ini > : @sample ${SYSCONFDIR}/odbcinst.ini > > possibly slightly confusing to have those direct in /etc but the > headers in a subdir, and the other way round for iodbc, I think > ${SYSCONFDIR}/unixodbc or ${SYSCONFDIR}/unixODBC might be better. > Indeed, it make things clenaer, indeed. So, here an updated databases/unixodbc which doesn't build libltdl. -- wbr, Kirill