Wednesday, May 21, 2025

Re: [NEW] lang/erlang/28

Index: Makefile
===================================================================
RCS file: /cvs/ports/lang/erlang/28/Makefile,v
diff -u -p -r1.1.1.1 Makefile
--- Makefile 21 May 2025 18:19:25 -0000 1.1.1.1
+++ Makefile 21 May 2025 19:08:43 -0000
@@ -13,6 +13,7 @@ PKGNAME= erlang-${V}
PKGNAME-main= erlang-${V}
PKGNAME-wx= erlang-wx-${V}
EPOCH= 0
+REVISION= 0

VERSION_SPEC= >=28v0,<29v0
PKGSPEC-main= erlang-${VERSION_SPEC}
@@ -24,7 +25,7 @@ CONFIGURE_STYLE= simple

CONFIGURE_ARGS+=--disable-silent-rules \
--without-jinterface \
- --without-odbc \
+ --with-odbc=${PREFIX} \
--enable-threads \
--enable-kernel-poll \
--disable-hipe
@@ -36,15 +37,15 @@ MODGNU_CONFIG_GUESS_DIRS = ${WRKSRC}/ert

MULTI_PACKAGES = -main -wx

-WANTLIB = m pthread ${COMPILER_LIBCXX}
-WANTLIB-main = ${WANTLIB} c crypto kvm curses util z
+WANTLIB = m ${COMPILER_LIBCXX}
+WANTLIB-main += ${WANTLIB} c crypto curses iodbc util z

-WANTLIB-wx += ${WANTLIB} GL GLU
-WANTLIB-wx += wx_baseu-3.2 wx_baseu_xml-3.2 wx_gtk3u_aui-3.2
-WANTLIB-wx += wx_gtk3u_core-3.2 wx_gtk3u_gl-3.2 wx_gtk3u_html-3.2
-WANTLIB-wx += wx_gtk3u_stc-3.2 wx_gtk3u_xrc-3.2
-WANTLIB-wx += glib-2.0 intl
+WANTLIB-wx += ${WANTLIB}
+WANTLIB-wx += GLU glib-2.0 wx_baseu-3.2 wx_gtk3u_aui-3.2 wx_gtk3u_core-3.2
+WANTLIB-wx += wx_gtk3u_gl-3.2 wx_gtk3u_html-3.2 wx_gtk3u_stc-3.2
+WANTLIB-wx += wx_gtk3u_xrc-3.2

+LIB_DEPENDS-main += databases/iodbc
LIB_DEPENDS-wx +=x11/wxWidgets>=2.8.12p10
LIB_DEPENDS-wx +=devel/glib2

@@ -83,6 +84,7 @@ KERNEL_VSN 10.3 \
MEGACO_VSN 4.8 \
MNESIA_VSN 4.24 \
OBSERVER_VSN 2.18 \
+ODBC_VSN 2.16 \
OS_MON_VSN 2.11 \
PARSETOOLS_VSN 2.7 \
PUBLIC_KEY_VSN 1.18 \
Index: pkg/PLIST-main
===================================================================
RCS file: /cvs/ports/lang/erlang/28/pkg/PLIST-main,v
diff -u -p -r1.1.1.1 PLIST-main
--- pkg/PLIST-main 21 May 2025 18:19:26 -0000 1.1.1.1
+++ pkg/PLIST-main 21 May 2025 19:08:44 -0000
@@ -1821,6 +1821,27 @@ lib/${ERLANG_V}/lib/${ERL_MNESIA}/src/mn
lib/${ERLANG_V}/lib/${ERL_MNESIA}/src/mnesia_sup.erl
lib/${ERLANG_V}/lib/${ERL_MNESIA}/src/mnesia_text.erl
lib/${ERLANG_V}/lib/${ERL_MNESIA}/src/mnesia_tm.erl
+lib/${ERLANG_V}/lib/${ERL_ODBC}/
+lib/${ERLANG_V}/lib/${ERL_ODBC}/c_src/
+lib/${ERLANG_V}/lib/${ERL_ODBC}/c_src/odbcserver.c
+lib/${ERLANG_V}/lib/${ERL_ODBC}/c_src/odbcserver.h
+lib/${ERLANG_V}/lib/${ERL_ODBC}/ebin/
+lib/${ERLANG_V}/lib/${ERL_ODBC}/ebin/odbc.app
+lib/${ERLANG_V}/lib/${ERL_ODBC}/ebin/odbc.appup
+lib/${ERLANG_V}/lib/${ERL_ODBC}/ebin/odbc.beam
+lib/${ERLANG_V}/lib/${ERL_ODBC}/ebin/odbc_app.beam
+lib/${ERLANG_V}/lib/${ERL_ODBC}/ebin/odbc_sup.beam
+lib/${ERLANG_V}/lib/${ERL_ODBC}/include/
+lib/${ERLANG_V}/lib/${ERL_ODBC}/include/odbc.hrl
+lib/${ERLANG_V}/lib/${ERL_ODBC}/priv/
+lib/${ERLANG_V}/lib/${ERL_ODBC}/priv/bin/
+@bin lib/${ERLANG_V}/lib/${ERL_ODBC}/priv/bin/odbcserver
+lib/${ERLANG_V}/lib/${ERL_ODBC}/priv/obj/
+lib/${ERLANG_V}/lib/${ERL_ODBC}/src/
+lib/${ERLANG_V}/lib/${ERL_ODBC}/src/odbc.erl
+lib/${ERLANG_V}/lib/${ERL_ODBC}/src/odbc_app.erl
+lib/${ERLANG_V}/lib/${ERL_ODBC}/src/odbc_internal.hrl
+lib/${ERLANG_V}/lib/${ERL_ODBC}/src/odbc_sup.erl
lib/${ERLANG_V}/lib/${ERL_OS_MON}/
lib/${ERLANG_V}/lib/${ERL_OS_MON}/ebin/
lib/${ERLANG_V}/lib/${ERL_OS_MON}/ebin/cpu_sup.beam
I have acquired a profound distaste for odbc about 25 years ago and never had
the desire to check if it was still justified ... but this builds, installs
and passes tests. So if you're willing to test, I'm willing to commit :-)

(I regenerated WANTLIB on the occasion ...)

On 2025-05-21 19:17, Kirill A. Korinsky wrote:
>Erlang/OTP 28 contains a patch which fixes support of iodbc.
>
>I think that --with-odbc=/usr/local at configure should be enough to pick
>and use databases/iodbc.

No comments:

Post a Comment