1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00
freebsd-ports/lang/erlang-java/Makefile
Dave Cottlehuber 9ab218f7eb MFH: r523921 r523923
lang/erlang*: repair 32-bit x86 erlang builds

Having HIPE & NATIVE enabled breaks OTP on 32-bit x86. They have not
built succesfully for quite some time.

Reported by:	pkg fallout
Reviewed by:	olgeni
Sponsored by:	SkunkWerks, GmbH
Differential Revision:	https://reviews.freebsd.org/D23296

lang/erlang*: include serious scheduler bugfixes

OTP-16371

Taking a scheduler offline could cause timers set while executing on
that scheduler to be delayed until the scheduler was put online again.
This bug was introduced in ERTS version 10.0 (OTP 21.0).

OTP-16378 | ERL-1125

The ets:update_counter/4 core dumped when given an ordered_set with
write_concurrency enabled and an invalid position.

OTP-16379

A process calling erlang:system_flag(multi_scheduling, block) could end
up blocked waiting for the operation to complete indefinitely.

Reviewed by:	olgeni
Sponsored by:	SkunkWerks, GmbH
Differential Revision:	https://reviews.freebsd.org/D23313

Approved by:	portmgr
2020-01-26 15:35:44 +00:00

54 lines
1.5 KiB
Makefile

# $FreeBSD$
PORTNAME= erlang
DISTVERSIONPREFIX= OTP-
DISTVERSION= 21.3.8.12
PORTEPOCH= 1
CATEGORIES= lang parallel java
PKGNAMESUFFIX= -java
DIST_SUBDIR= erlang
MAINTAINER= erlang@FreeBSD.org
COMMENT= Erlang interface for Java
LICENSE= APACHE20
RUN_DEPENDS= erl:lang/erlang
USES= autoreconf:build gmake perl5
USE_GITHUB= yes
GH_PROJECT= otp
USE_JAVA= yes
USE_PERL5= build
GNU_CONFIGURE= yes
MAKE_JOBS_UNSAFE=yes
PLIST_SUB= APP_VERSION=${APP_VERSION}
APP_VERSION= 1.9.1
APP_DIR= ${PREFIX}/lib/erlang/lib/jinterface-${APP_VERSION}
CONFIGURE_ARGS+=--enable-threads --without-odbc --with-javac --without-wx
CONFIGURE_ENV+= ac_cv_prog_JAVAC="${JAVAC}"
pre-configure:
@if [ ! $$(${CAT} ${WRKSRC}/lib/jinterface/vsn.mk | ${GREP} -E "JINTERFACE_VSN *=" | ${CUT} -w -f3) = ${APP_VERSION} ]; then \
${ECHO_MSG} "===> APP_VERSION (${APP_VERSION}) in Makefile does not match value in lib/jinterface/vsn.mk"; exit 1; \
fi
@cd ${WRKSRC} && ./otp_build autoconf
do-build:
@${MKDIR} ${WRKSRC}/lib/jinterface/ebin
cd ${WRKSRC}/lib/jinterface && ${GMAKE} ERL_TOP=${WRKSRC} TARGET=${CONFIGURE_TARGET}
${RM} -r ${WRKSRC}/lib/jinterface/priv/com
do-install:
@${MKDIR} ${STAGEDIR}${APP_DIR}
@${MKDIR} ${STAGEDIR}${APP_DIR}/priv
cd ${WRKSRC}/lib/jinterface && ${COPYTREE_SHARE} ebin ${STAGEDIR}${APP_DIR}
cd ${WRKSRC}/lib/jinterface && ${COPYTREE_SHARE} java_src ${STAGEDIR}${APP_DIR}
${INSTALL_DATA} ${WRKSRC}/lib/jinterface/priv/OtpErlang.jar ${STAGEDIR}${APP_DIR}/priv
.include <bsd.port.mk>