From b288d5c76370e44fef3a9caa6fbb888435057a2a Mon Sep 17 00:00:00 2001 From: Badlop Date: Mon, 13 May 2024 10:36:24 +0200 Subject: [PATCH] make-binaries: Revert temporarily an OTP commit that breaks MSSQL (#4178) --- tools/make-binaries | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/make-binaries b/tools/make-binaries index 4e5339105..90ddae8e8 100755 --- a/tools/make-binaries +++ b/tools/make-binaries @@ -684,6 +684,9 @@ build_deps() export erl_xcomp_sysroot="$prefix" fi cd "$target_src_dir/$otp_dir" + # Revert https://github.com/erlang/otp/commit/53ef5df40c733ce3d8215c5c98805f99f378f656 + # because it breaks MSSQL, see https://github.com/processone/ejabberd/issues/4178 + sed -i 's|if(size == 0 && (sql_type == SQL_LONGVARCHAR|if((sql_type == SQL_LONGVARCHAR|g' lib/odbc/c_src/odbcserver.c # The additional CFLAGS/LIBS below are required by --enable-static-nifs. # The "-ldl" flag specifically is only needed for ODBC, though. $configure \