1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-05 06:27:37 +00:00

Force using erlang-runtime19 for net/rabbitmq: the current version is NOT

COMPATIBLE with Erlang 20 and can lead to data corruption during upgrades.

The proper solution would be to build a release with a bundled runtime, but
this will have to do for now.
This commit is contained in:
Jimmy Olgeni 2017-06-24 18:16:32 +00:00
parent c74894da8a
commit 2d18aa7cf6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=444234

View File

@ -3,6 +3,7 @@
PORTNAME= rabbitmq
PORTVERSION= 3.6.10
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= http://www.rabbitmq.com/releases/rabbitmq-server/v${PORTVERSION}/
DISTNAME= ${PORTNAME}-server-${PORTVERSION}
@ -12,12 +13,12 @@ COMMENT= RabbitMQ is an implementation of AMQP
LICENSE= MPL
BUILD_DEPENDS= erl:lang/erlang \
BUILD_DEPENDS= erlang-runtime19>=19.0:lang/erlang-runtime19 \
${PYTHON_PKGNAMEPREFIX}simplejson>=2.0:devel/py-simplejson \
xmlto:textproc/xmlto \
zip:archivers/zip \
rsync:net/rsync
RUN_DEPENDS= erl:lang/erlang
RUN_DEPENDS= erlang-runtime19>=19.0:lang/erlang-runtime19
OPTIONS_DEFINE= ADMIN
OPTIONS_SUB= yes
@ -41,7 +42,8 @@ REINPLACE_ARGS= -i ""
SCRIPTS_DIR= ${WRKSRC}/deps/rabbit/scripts
SHEBANG_FILES= deps/rabbitmq_management/bin/rabbitmqadmin
MAKE_ARGS+= PYTHON=${PYTHON_CMD}
MAKE_ENV+= TARGET_DIR="${STAGEDIR}${PREFIX}/lib/erlang/lib/rabbitmq_server-${PORTVERSION}" \
MAKE_ENV+= PATH="${LOCALBASE}/lib/erlang19/bin:${PATH}" \
TARGET_DIR="${STAGEDIR}${PREFIX}/lib/erlang/lib/rabbitmq_server-${PORTVERSION}" \
SBIN_DIR="${STAGEDIR}${PREFIX}/sbin/" \
MAN_DIR="${STAGEDIR}${PREFIX}/man" \
DOC_INSTALL_DIR="${STAGEDIR}${EXAMPLESDIR}" \
@ -52,7 +54,7 @@ MAKE_JOBS_UNSAFE= yes
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e 's|/etc/rabbitmq|${PREFIX}/etc/rabbitmq|g ; s|/var/lib|/var/db|g ; s|$${ERL_DIR}erl|${PREFIX}/bin/erl|g' \
@${REINPLACE_CMD} -e 's|/etc/rabbitmq|${PREFIX}/etc/rabbitmq|g ; s|/var/lib|/var/db|g ; s|$${ERL_DIR}erl|${PREFIX}/lib/erlang19/bin/erl|g' \
${SCRIPTS_DIR}/rabbitmq-server \
${SCRIPTS_DIR}/rabbitmqctl \
${SCRIPTS_DIR}/rabbitmq-env \