head 1.5; access; symbols pkgsrc-2015Q1:1.4.0.24 pkgsrc-2015Q1-base:1.4 pkgsrc-2014Q4:1.4.0.22 pkgsrc-2014Q4-base:1.4 pkgsrc-2014Q3:1.4.0.20 pkgsrc-2014Q3-base:1.4 pkgsrc-2014Q2:1.4.0.18 pkgsrc-2014Q2-base:1.4 pkgsrc-2014Q1:1.4.0.16 pkgsrc-2014Q1-base:1.4 pkgsrc-2013Q4:1.4.0.14 pkgsrc-2013Q4-base:1.4 pkgsrc-2013Q3:1.4.0.12 pkgsrc-2013Q3-base:1.4 pkgsrc-2013Q2:1.4.0.10 pkgsrc-2013Q2-base:1.4 pkgsrc-2013Q1:1.4.0.8 pkgsrc-2013Q1-base:1.4 pkgsrc-2012Q4:1.4.0.6 pkgsrc-2012Q4-base:1.4 pkgsrc-2012Q3:1.4.0.4 pkgsrc-2012Q3-base:1.4 pkgsrc-2012Q2:1.4.0.2 pkgsrc-2012Q2-base:1.4 pkgsrc-2012Q1:1.3.0.8 pkgsrc-2012Q1-base:1.3 pkgsrc-2011Q4:1.3.0.6 pkgsrc-2011Q4-base:1.3 pkgsrc-2011Q3:1.3.0.4 pkgsrc-2011Q3-base:1.3 pkgsrc-2011Q2:1.3.0.2 pkgsrc-2011Q2-base:1.3 pkgsrc-2011Q1:1.2.0.12 pkgsrc-2011Q1-base:1.2 pkgsrc-2010Q4:1.2.0.10 pkgsrc-2010Q4-base:1.2 pkgsrc-2010Q3:1.2.0.8 pkgsrc-2010Q3-base:1.2 pkgsrc-2010Q2:1.2.0.6 pkgsrc-2010Q2-base:1.2 pkgsrc-2010Q1:1.2.0.4 pkgsrc-2010Q1-base:1.2 pkgsrc-2009Q4:1.2.0.2 pkgsrc-2009Q4-base:1.2 pkgsrc-2009Q3:1.1.0.6 pkgsrc-2009Q3-base:1.1 pkgsrc-2009Q2:1.1.0.4 pkgsrc-2009Q2-base:1.1 pkgsrc-2009Q1:1.1.0.2 pkgsrc-2009Q1-base:1.1; locks; strict; comment @# @; 1.5 date 2015.04.28.14.34.20; author fhajny; state dead; branches; next 1.4; commitid KRRgMxWwSVKiLmjy; 1.4 date 2012.04.12.12.14.13; author asau; state Exp; branches; next 1.3; 1.3 date 2011.04.14.19.34.08; author asau; state Exp; branches; next 1.2; 1.2 date 2009.12.15.12.07.57; author asau; state Exp; branches; next 1.1; 1.1 date 2009.02.07.21.45.43; author joerg; state Exp; branches; next ; desc @@ 1.5 log @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 @ text @$NetBSD: patch-ai,v 1.4 2012/04/12 12:14:13 asau Exp $ --- lib/gs/src/tool_utils.erl.orig 2011-12-14 14:22:11.000000000 +0400 +++ lib/gs/src/tool_utils.erl 2012-01-05 04:38:39.000000000 +0400 @@@@ -40,6 +40,9 @@@@ }). +%% Browser executable list (openURL command line protocol required) +-define(BROWSERS, ["netscape", "mozilla", "MozillaFirebird", "opera"]). + %%---------------------------------------------------------------------- %% open_help(Parent, File) %% Parent = gsobj() (GS root object or parent window) @@@@ -80,7 +83,7 @@@@ {unix,Type} -> case Type of darwin -> "open " ++ File; - _Else -> "netscape -remote \"openURL(file:" ++ File ++ ")\"" + _Else -> unix_url_command("file:" ++ File) end; {win32,_AnyType} -> "start " ++ filename:nativename(File); @@@@ -95,7 +98,7 @@@@ {unix,Type} -> case Type of darwin -> "open " ++ File; - _Else -> "netscape -remote \"openURL(file:" ++ File ++ ")\"" + _Else -> unix_url_command("file:" ++ File) end; {win32,_AnyType} -> "netscape.exe -h " ++ @@@@ -430,3 +433,53 @@@@ [Last]; insert_newlines(Other) -> Other. + +%% find_browser(BrowserList) => string() | false +%% BrowserList - [string()] +%% Given a list of basenames, find the first available executable. + +find_browser([]) -> + false; + +find_browser([H | T]) -> + case os:find_executable(H) of + false -> + find_browser(T); + Browser -> + Browser + end. + +%% unix_url_command(URL) => string() +%% URL - string() +%% Open an URL, using a browser which supports the openURL command +%% line protocol. If no browser is found, the empty string will be +%% returned. + +unix_url_command(URL) -> + Template = "BROWSER -remote \"openURL(" ++ URL ++ ")\" || BROWSER " ++ URL ++ "&", + + case os:getenv("BROWSER") of + false -> + %% look for a compatible browser + case find_browser(?BROWSERS) of + false -> + ""; + Browser -> + case regexp:gsub(Template, "BROWSER", Browser) of + {ok, Command, 0} -> + %% Template does not contain "BROWSER" placeholder + ""; + {ok, Command, _} -> + Command + end + end; + + Value -> + case regexp:gsub(Template, "BROWSER", Value) of + {ok, Command2, 0} -> + %% no placeholder + ""; + {ok, Command2, _} -> + Command2 + end + end. @ 1.4 log @Update to Erlang/OTP R15B01 Presumably fixes PR pkg/46297 Changes in Erlang/OTP R15B01 Highlights: * Added erlang:statistics(scheduler_wall_time) to ensure correct determination of scheduler utilization. Measuring scheduler utilization is strongly preferred over CPU utilization, since CPU utilization gives very poor indications of actual scheduler/vm usage. * Changed ssh implementation to use the public_key application for all public key handling. This is also a first step for enabling a callback API for supplying public keys and handling keys protected with password phrases. Additionally the test suites where improved so that they do not copy the users keys to test server directories as this is a security liability. Also ipv6 and file access issues found in the process has been fixed. * When an escript ends now all printout to standard output and standard error gets out on the terminal. This bug has been corrected by changing the behaviour of erlang:halt/0,1, which should fix the same problem for other escript-like applications, i.e. that data stored in the output port driver buffers got lost when printing on a TTY and exiting through erlang:halt/0,1. The BIF:s erlang:halt/0,1 has gotten improved semantics and there is a new BIF erlang:halt/2 to accomplish something like the old semantics. See the documentation. * The DTrace source patch from Scott Lystig Fritchie is integrated in the source tree. Using an emulator with dtrace probe is still not supported for production use, but may be a valuable debugging tool. * Added Torbjörn Törnkvists LDAP client as a new application called eldap. * Added options for the ssh client to support user keys files that are password protected. Changes in Erlang/OTP R15B Highlights: * Line number and filename information are now included in exception backtraces. This information will be pretty-printed in the shell and used in crash reports etc. In practice it will be much easier to find where something failed. * The driver interface has been changed to enable 64-bit aware drivers. Most importantly the return types for ErlDrvEntry callbacks 'call' and 'control' has been changed which require drivers to be changed. * New in this release is the support for 64 bit Windows. The self extracting installer can be found here. * CommonTest hooks are now in a final supported version. * There is a new GUI tool in the observer application which integrates pman, etop, appmon and tv into one tool. The tool does also contain functions for activating tracing in an easy way. * The Erlang distribution can now be run over the new SSL implementation. Changes in Erlang/OTP R15A Notable changes: OTP-9468 'Line numbers in exceptions' OTP-9451 'Parallel make' OTP-4779 A new GUI for Observer. Integrating pman, etop and tv into observer with tracing facilities. OTP-7775 A number of memory allocation optimizations have been implemented. Most optimizations reduce contention caused by synchronization between threads during allocation and deallocation of memory. Most notably: Synchronization of memory management in scheduler specific allocator instances has been rewritten to use lock-free synchronization. Synchronization of memory management in scheduler specific pre-allocators has been rewritten to use lock-free synchronization. The 'mseg_alloc' memory segment allocator now use scheduler specific instances instead of one instance. Apart from reducing contention this also ensures that memory allocators always create memory segments on the local NUMA node on a NUMA system. OTP-9632 An ERTS internal, generic, many to one, lock-free queue for communication between threads has been introduced. The many to one scenario is very common in ERTS, so it can be used in a lot of places in the future. Currently it is used by scheduling of certain jobs, and the async thread pool, but more uses are planned for the future. Drivers using the driver_async functionality are not automatically locked to the system anymore, and can be unloaded as any dynamically linked in driver. Scheduling of ready async jobs is now also interleaved in between other jobs. Previously all ready async jobs were performed at once. OTP-9631 The ERTS internal system block functionality has been replaced by new functionality for blocking the system. The old system block functionality had contention issues and complexity issues. The new functionality piggy-backs on thread progress tracking functionality needed by newly introduced lock-free synchronization in the runtime system. When the functionality for blocking the system isn't used, there is more or less no overhead at all. This since the functionality for tracking thread progress is there and needed anyway. @ text @d1 1 a1 1 $NetBSD: patch-ai,v 1.3 2011/04/14 19:34:08 asau Exp $ @ 1.3 log @Update to Erlang/OTP R14B02 Highlights composed by Matthew Sporleder. Changes in R14B02 (http://www.erlang.org/download/otp_src_R14B02.readme) - It is now possible to use Erlang specifications and types in EDoc documentation - All tests in Erlang/OTP have been converted to be run with Common Test as the backend instead of Test Server. - From this release, the previously experimental halfword emulator is now official - Dependency generation for Makefiles has been added to the compiler and erlc - Add a --fullpath option to Dialyzer (include version 2.4.2) - Many fixes in erts - Remove hipe constants pool - Partial support for recursive structs and unions - It is now possible to use SSH to sign and verify binary data. - typer has been rewritten Changes R14B01 (http://www.erlang.org/download/otp_src_R14B01.readme) - New ETS option compressed, to enable a more compact storage format at the expence of heavier table operations - There is now a new function inet:getifaddrs/0 modeled after C library function getifaddrs() on BSD and Linux that reports existing interfaces and their addresses on the host - Multiple crashes and infinite loops fixed - AES CTR encryption support in crypto - erl_call: remove get_hostent - The Erlang VM now supports Unicode filenames - New ETS option compressed Changes in R14B (http://www.erlang.org/download/otp_src_R14B.readme) - Large parts of the ethread library have been rewritten. - The changed API of the ethread library has also caused modifications in the Erlang runtime system. - Some Built In Functions (BIFs) are now autoimported - Added erlang:system_info(build_type) - A number of memory leaks in the crypto NIF library have been fixed - erl_call: fix multiple buffer overflows - NIF 64-bit integer support - Removed some potential vulnerabilities from the Erlang Port Mapper Daemon (epmd) - Replaced the old http client api module (http) with the new, httpc in the users guide. - inet6 improvements - ssh fixes - many ssl improvements/fixes - wx crash fix Changes in R14A (http://www.erlang.org/download/otp_src_R14A.readme) - R14A is a major new release of Erlang/OTP. - The module binary from EEP31 (and EEP9) is implemented - It is now possible for the user to provide specific callback modules that handle test configuration data - New NIF features - Receive statements that can only read out a newly created reference are now specially optimized so that it will execute in constant time regardless of the number of messages in the receive queue for the process. - The run_test script has been replaced by a program (with the same name) which can be executed without explicit installation - eprof has been reimplemented with support in the Erlang virtual machine and is now both faster (i.e. slows down the code being measured less) and scales much better Changes in R13B04 (http://www.erlang.org/download/otp_src_R13B04.readme) - Many documentation and documentation build improvements - cross-compile/build improvements - buffer overflow fix - telnet keep alive fixes - compiler crash on boolean ifs - -Werror for erlc fixed - macro overloading implemented - the crypto module now supports Blowfish - explicit top directories in archive files are now optional - add lock profiling tool: lcnt - httpd methods "PUT" and "DELETE" now allowed + others fixes to resolver routine - compression supported when copying between mnesia nodes @ text @d1 1 a1 1 $NetBSD: patch-ai,v 1.2 2009/12/15 12:07:57 asau Exp $ d3 2 a4 2 --- lib/gs/src/tool_utils.erl.orig 2010-06-11 18:31:38.000000000 +0300 +++ lib/gs/src/tool_utils.erl 2010-06-17 10:20:07.000000000 +0300 d32 2 a33 2 "netscape.exe -h " ++ regexp:gsub(File,"\\\\","/"); @@@@ -429,3 +432,53 @@@@ @ 1.2 log @Update to Erlang/OTP R13B03. SunOS, Java and ODBC support by Filip Hajny and some tests by Matthias Kretschmer. Changes in R13B03 ----------------- There are mostly error corrections, but also some new functionality. Some highlights in the R13B03 release are: - Native Implemented Functions (NIFs) still experimental but very useful. - The documentation is built in a new way using xsltproc and Apache FOP. The layout is changed both in HTML and PDF versions. This is the first step, more changes and improvements will come in the following releases. Changes between R13A and R13B02 are unknown. Changes in R13A --------------- 1.1 Erlang Language and Run-time System Multi-core and SMP performance improvements There SMP performance is significantly improved: - multiple, scheduler specific run queues; - further optimized message passing; - CPU-bound scheduler threads. Unicode support as described in EEP10 New BIF's: atom_to_binary/2, binary_to_atom/2, binary_to_existing_atom/2. Independent Erlang clusters on the same host 1.2 New Applications Reltool, release management tool. WxErlang 1.3 New features in Existing Applications Common_test - SSH and SFTP support - test case groups Dialyzer - opaque type declarations; - UTF segments handling SSL - pure Erlang implementation (except crypto routines) STDLIB - scanner has been augmented to return white-space, comments and exact location of tokens. @ text @d1 1 a1 1 $NetBSD$ d3 3 a5 3 --- lib/gs/src/tool_utils.erl.orig 2007-11-26 14:03:09.000000000 -0500 +++ lib/gs/src/tool_utils.erl @@@@ -37,6 +37,9 @@@@ d15 1 a15 1 @@@@ -77,7 +80,7 @@@@ open_help_default(Parent, File) -> d24 1 a24 1 @@@@ -92,7 +95,7 @@@@ open_help_default(Parent, File) -> d33 1 a33 1 @@@@ -429,3 +432,53 @@@@ insert_newlines([Last]) -> @ 1.1 log @Don't leak the workdir for destdir builds. Patches from OpenBSD ports. Bump revision. @ text @d3 84 a86 75 DESTDIR support --- erts/etc/unix/Install.src.orig 2009-02-07 22:21:21.000000000 +0100 +++ erts/etc/unix/Install.src @@@@ -8,7 +8,8 @@@@ while [ $# -ne 0 ]; do case $1 in -minimal) start_option=minimal ;; -sasl) start_option=sasl ;; - *) ERL_ROOT=$1 ;; + *) ERL_ROOT=$DESTDIR/$1; + ERL_IROOT=$1 ;; esac shift done @@@@ -35,7 +36,7 @@@@ fi if [ -d $ERL_ROOT/erts-%I_VSN%/obj ] then cd $ERL_ROOT/erts-%I_VSN%/obj - sed -e "s;%FINAL_ROOTDIR%;$ERL_ROOT;" Makefile.src > Makefile + sed -e "s;%FINAL_ROOTDIR%;$ERL_IROOT;" Makefile.src > Makefile fi if [ ! -d $ERL_ROOT/bin ] @@@@ -59,14 +60,14 @@@@ esac cd $ERL_ROOT/erts-%I_VSN%/bin -sed -e "s;%FINAL_ROOTDIR%;$ERL_ROOT;" erl.src > erl +sed -e "s;%FINAL_ROOTDIR%;$ERL_IROOT;" erl.src > erl chmod 755 erl # # Create start file for embedded system use, # (cd $ERL_ROOT/erts-%I_VSN%/bin; - sed -e "s;%FINAL_ROOTDIR%;$ERL_ROOT;" start.src > start; + sed -e "s;%FINAL_ROOTDIR%;$ERL_IROOT;" start.src > start; chmod 755 start) cd $ERL_ROOT/bin @@@@ -87,7 +88,7 @@@@ if [ -h epmd ]; then /bin/rm -f epmd fi -ln -s $ERL_ROOT/erts-%I_VSN%/bin/epmd epmd +ln -s ../erts-%I_VSN%/bin/epmd epmd cp -p $ERL_ROOT/erts-%I_VSN%/bin/run_erl . cp -p $ERL_ROOT/erts-%I_VSN%/bin/to_erl . @@@@ -97,7 +98,7 @@@@ chmod 755 start_erl echo "" echo %I_VSN% %I_SYSTEM_VSN% > $ERL_ROOT/releases/start_erl.data -sed -e "s;%ERL_ROOT%;$ERL_ROOT;" $ERL_ROOT/releases/RELEASES.src > $ERL_ROOT/releases/RELEASES +sed -e "s;%ERL_ROOT%;$ERL_IROOT;" $ERL_ROOT/releases/RELEASES.src > $ERL_ROOT/releases/RELEASES if [ "$start_option" = "query" ] then @@@@ -136,16 +137,3 @@@@ if [ "X$TARGET" != "Xsunos5" -a -d $ERL_ (ranlib $library) > /dev/null 2>&1 done fi - - -# -# Fixing the man pages -# - -if [ -d $ERL_ROOT/man ] -then - cd $ERL_ROOT - ./misc/format_man_pages $ERL_ROOT -fi - - @