2021-02-20 02:02:29 +01:00
|
|
|
# $NetBSD: options.mk,v 1.13 2021/02/20 01:02:29 gutteridge Exp $
|
2005-12-30 11:32:16 +01:00
|
|
|
|
2016-12-17 13:55:29 +01:00
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.erlang
|
|
|
|
PKG_SUPPORTED_OPTIONS= java erlang-hipe
|
2009-12-15 13:07:57 +01:00
|
|
|
PKG_OPTIONS_OPTIONAL_GROUPS= odbc
|
|
|
|
PKG_OPTIONS_GROUP.odbc= iodbc unixodbc
|
2005-12-30 11:32:16 +01:00
|
|
|
|
2011-04-14 21:34:07 +02:00
|
|
|
PKG_SUGGESTED_OPTIONS= # empty
|
|
|
|
###
|
|
|
|
### Activate HiPE by default on some systems or if the user has
|
|
|
|
### defined the erlang-hipe option in mk.conf
|
|
|
|
###
|
|
|
|
.if (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64") && \
|
|
|
|
(${OPSYS} == "FreeBSD" || ${OPSYS} == "Linux" || \
|
2021-02-19 13:50:13 +01:00
|
|
|
${OPSYS} == "NetBSD" || ${OPSYS} == "OpenBSD" || ${OPSYS} == "SunOS")
|
2011-04-14 21:34:07 +02:00
|
|
|
PKG_SUGGESTED_OPTIONS+= erlang-hipe
|
|
|
|
.endif
|
|
|
|
|
2012-04-16 09:28:14 +02:00
|
|
|
.if ${OPSYS} == "SunOS" || ${OPSYS} == "Darwin" || ${OPSYS} == "FreeBSD" || \
|
|
|
|
${OPSYS} == "Linux"
|
|
|
|
PKG_SUPPORTED_OPTIONS+= dtrace
|
|
|
|
.endif
|
|
|
|
|
2005-12-30 11:32:16 +01:00
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
Update lang/erlang to 17.5.
erlang-17.5
================================
Highlights:
- ERTS: Added command line argument option for setting the initial size
of process dictionaries.
- Diameter: configurable incoming_max len and string_decode for diameter
messages
- Bugfixes and minor small features in applications such as compiler,
common_test, crypto, debugger, eldap, erts, hipe, inets, ssh, ssl,...
Full changelog:
http://www.erlang.org/download/otp_src_17.5.readme
erlang-17.4
================================
Highlights:
- eldap: Nearly all TCP options are possible to give in the eldap:open/2 call.
- ssh: Added API functions ptty_alloc/3 and ptty_alloc/4, to allocate
a pseudo tty.
- ssl: Handle servers that may send an empty SNI extension to the client.
Full changelog:
http://www.erlang.org/download/otp_src_17.4.readme
erlang-17.3
================================
Highlights:
- erts: Introduced enif_schedule_nif() which allows a long running NIF
to be broken into separate NIF invocations without the help of a wrapper
function written in Erlang
- common_test: Experimental support for running Quickcheck and PropEr tests
from common_test suites is added. Examples of usage in the suites for
the ssh and inets applications
- Bugfixes and minor new features in applications such as asn1, erts, kernel,
stdlib, diameter, ssh, mnesia, ssl, jinterface
Full changelog:
http://www.erlang.org/download/otp_src_17.3.readme
erlang-17.1
================================
Highlights:
- crypto: Add aes_cfb8 cypher to crypto:block_encrypt and block_decrypt.
- diameter: Add result code counters for CEA, DWA, and DPA.
- erts: The following built in functions in the erlang and binary modules
now bump an appropriate amount of reductions and yield when
out of reductions:
binary_to_list/1, binary_to_list/3, bitstring_to_list/1,
list_to_binary/1, iolist_to_binary/1, list_to_bitstring/1,
binary:list_to_bin/1
- hipe: Handle Maps instructions get_map_elements, put_map_assoc,
put_map_exact in the HiPE native code compiler.
- mnesia: The time for inserting locks for a transaction with large
number of locks is reduced significantly.
- ssh: Option max_sessions added to ssh:daemon/{2,3}.
- stdlib: Add maps:get/3 to maps module. The function will return the
supplied default value if the key does not exist in the map.
Full changelog:
http://www.erlang.org/download/otp_src_17.1.readme
erlang-17.0
================================
Highlights:
- Erlang/OTP has been ported to the realtime operating system OSE.
- Maps, a new dictionary data type (experimental)
- A more natural mapping from ASN.1 OCTET STRING and BIT STRING to
Erlang types, and other ASN.1 improvements and optimizations
- The {active, N} socket option for TCP, UDP, and SCTP
- A new (optional) scheduler utilization balancing mechanism
- Migration of memory carriers has been enabled by default on all
ERTS internal memory allocators
- Increased garbage collection tenure rate
- Experimental "dirty schedulers" functionality
- Funs can now be given names
- Miscellaneous unicode support enhancements
- A new version scheme for OTP its applications has been introduced
Full changelog:
http://www.erlang.org/download/otp_src_17.0.readme
erlang 16.1.3.1 (R16B03-1)
================================
Highlights:
- The ODBC application was missing in the prebuilt Windows installers
- 3 corrections in the SSL application:
- Add missing validation of the server_name_indication option and test
for its explicit use.
- Elliptic curve selection in server mode now properly selects a curve
suggested by the client, if possible.
- The server did not indicate support for secure renegotiation during
TLS extension handling.
- In the syntax tools application a bug was introduced which broke
reverting of local funs. This is now corrected (thanks to Anthony Ramine)
- wx - Solved a problem which caused the debugger to crash when closing
a window. Fixed static linking on Mac.
- xmerl - Fixed a problem in the SAX-parser when the header of
the next document was appearing in the buffer when using
the xmerl_sax_parser:stream/2 function.
Full changelog:
http://www.erlang.org/download/otp_src_R16B03-1.readme
erlang-16.1.3 (R16B03)
================================
Highlights:
- A new memory allocation feature called "super carrier" has been introduced.
It can for example be used for pre-allocation of all memory that the
runtime system should be able to use. It is enabled by passing the +MMscs
(size in MB) command line argument. For more information see
the documentation of the +MMsco, +MMscrfsd, +MMscrpm, +MMscs, +MMusac, and,
+Mlpm command line arguments in the erts_alloc(3) documentation.
- The ldap client eldap now supports the start_tls operation. This upgrades
an existing tcp connection to encryption using tls,
see eldap:start_tls/2 and /3.
- The ftp client (inets application) now supports ftp over tls (ftps).
Full changelog:
http://www.erlang.org/download/otp_src_R16B03.readme
2015-04-28 16:34:20 +02:00
|
|
|
PLIST_SRC= ${PLIST_SRC_DFLT}
|
2012-04-16 09:28:14 +02:00
|
|
|
PLIST_VARS+= odbc dtrace
|
2011-04-14 21:34:07 +02:00
|
|
|
|
2005-12-30 11:32:16 +01:00
|
|
|
.if !empty(PKG_OPTIONS:Mjava)
|
|
|
|
USE_JAVA= yes
|
|
|
|
USE_JAVA2= yes
|
|
|
|
.include "../../mk/java-vm.mk"
|
|
|
|
PLIST_SRC+= PLIST.java
|
2006-05-23 17:09:52 +02:00
|
|
|
.else
|
2011-04-14 21:34:07 +02:00
|
|
|
CONFIGURE_ARGS+= --without-javac
|
2005-12-30 11:32:16 +01:00
|
|
|
.endif
|
2009-12-15 13:07:57 +01:00
|
|
|
|
2021-02-20 02:02:29 +01:00
|
|
|
# Some hipe-related files are still installed even when --disable-hipe
|
|
|
|
# is supplied, and these should remain in the general PLIST.
|
2009-12-15 13:07:57 +01:00
|
|
|
.if !empty(PKG_OPTIONS:Merlang-hipe)
|
|
|
|
CONFIGURE_ARGS+= --enable-hipe
|
2011-04-14 21:34:07 +02:00
|
|
|
PLIST_SRC+= PLIST.hipe
|
2021-02-19 13:50:13 +01:00
|
|
|
USE_TOOLS+= gm4 # needs -P
|
2009-12-15 13:07:57 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-hipe
|
|
|
|
.endif
|
|
|
|
|
|
|
|
###
|
|
|
|
### Provide iodbc/unixodbc option support
|
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Miodbc)
|
|
|
|
. include "../../databases/iodbc/buildlink3.mk"
|
|
|
|
CONFIGURE_ARGS+= --with-odbc=${BUILDLINK_PREFIX.iodbc}
|
2011-04-14 21:34:07 +02:00
|
|
|
PLIST.odbc= yes
|
2015-04-24 20:25:54 +02:00
|
|
|
.elif !empty(PKG_OPTIONS:Munixodbc)
|
2009-12-15 13:07:57 +01:00
|
|
|
. include "../../databases/unixodbc/buildlink3.mk"
|
|
|
|
CONFIGURE_ARGS+= --with-odbc=${BUILDLINK_PREFIX.unixodbc}
|
2011-04-14 21:34:07 +02:00
|
|
|
PLIST.odbc= yes
|
2015-04-24 20:25:54 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-odbc
|
2009-12-15 13:07:57 +01:00
|
|
|
.endif
|
2011-04-14 21:34:07 +02:00
|
|
|
|
2012-04-16 09:28:14 +02:00
|
|
|
###
|
|
|
|
### DTrace support
|
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Mdtrace)
|
|
|
|
. if ${OPSYS} == "SunOS" || ${OPSYS} == "Darwin" || ${OPSYS} == "FreeBSD"
|
|
|
|
CONFIGURE_ARGS+= --with-dynamic-trace=dtrace
|
|
|
|
. elif ${OPSYS} == "Linux"
|
|
|
|
CONFIGURE_ARGS+= --with-dynamic-trace=systemtap
|
|
|
|
. endif
|
|
|
|
PLIST.dtrace= yes
|
erlang: Update to 22.1.7
Potential Incompatibilities
Mnesia: Transactions with sticky locks could with async_asym transactions be committed in the wrong order, since asym transactions are spawned on the remote nodes. To fix this bug the communication protocol between mnesia nodes had to be updated, thus mnesia will no longer be able to connect to nodes earlier than mnesia-4.14 ,first realeased in OTP-19.0.
Stdlib: Debugging of time-outs in gen_statem has been improved. Starting a time-out is now logged in sys:log and sys:trace. Running time-outs are visible in server crash logs, and with sys:get_status. Due to this system events {start_timer, Action, State} and {insert_timout, Event, State} have been added, which may surprise tools that rely on the format of these events. New features: The EventContent of a running time-out can be updated with {TimeoutType, update, NewEventContent}. Running time-outs can be cancelled with {TimeoutType, cancel} which is more readable than using Time = infinity.{rel, Name, Vsn, RelApps, Opts}.
Highlights
Compiler:
erlc can now automatically use a compile server to avoid starting an Erlang system for each file to be compiled in a multi-file project. See the documentation for how to enable it.
Standard libraries:
SSL: Basic support for TLS 1.3 Client for experimental use. For more information see the Standards Compliance chapter of the User's Guide.
crypto: The Message Authentication Codes (MAC) CMAC, HMAC and Poly1305 are unified into common functions in the New Crypto API. See the manual for CRYPTO. cipher_info/1 functions returns maps with information about the hash or cipher in the argument.
2019-11-18 21:46:01 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-dynamic-trace
|
2012-04-16 09:28:14 +02:00
|
|
|
.endif
|
|
|
|
|
2011-04-14 21:34:07 +02:00
|
|
|
# Help generate optional PLIST parts:
|
2013-07-05 14:42:48 +02:00
|
|
|
PRINT_PLIST_AWK+= {if ($$0 ~ /dtrace_user/) {$$0 = "$${PLIST.dtrace}" $$0;}}
|
2011-04-14 21:34:07 +02:00
|
|
|
PRINT_PLIST_AWK+= {if ($$0 ~ /\/erlang\/lib\/odbc-${VERSION.odbc}\//) {$$0 = "$${PLIST.odbc}" $$0;}}
|