From f8da344582e083037b5f76d343a67886a1ffdf22 Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Fri, 31 Dec 2021 11:21:23 -0700 Subject: [PATCH] print a warning about use of ERL_DIST_PORT on erts prior to 11.1 --- priv/templates/extended_bin | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/priv/templates/extended_bin b/priv/templates/extended_bin index 4290b55d2..3fbee28dd 100644 --- a/priv/templates/extended_bin +++ b/priv/templates/extended_bin @@ -709,6 +709,13 @@ if [ "$ERL_DIST_PORT" ]; then EXTRA_DIST_ARGS="-erl_epmd_port ${ERL_DIST_PORT}" fi else + ERL_DIST_PORT_WARNING="ERL_DIST_PORT is set and used to set the port, but doing so on ERTS version ${ERTS_VSN} means remsh/rpc will not work for this release" + if ! command -v logger > /dev/null 2>&1 + then + echo "WARNING: ${ERL_DIST_PORT_WARNING}" + else + logger -p warning -t "${REL_NAME}[$$]" "${ERL_DIST_PORT_WARNING}" + fi EXTRA_DIST_ARGS="-kernel inet_dist_listen_min ${ERL_DIST_PORT} -kernel inet_dist_listen_max ${ERL_DIST_PORT}" fi fi