From 14c15248078e96f671caf153a1fa64f3216c8fa3f682d11c73c9f022cf69950a Mon Sep 17 00:00:00 2001 From: Matwey Kornilov Date: Sun, 30 Jul 2017 19:20:02 +0000 Subject: [PATCH 1/2] Accepting request 511023 from home:matwey:branches:devel:languages:erlang:Factory OBS-URL: https://build.opensuse.org/request/show/511023 OBS-URL: https://build.opensuse.org/package/show/devel:languages:erlang:Factory/erlang?expand=0&rev=53 --- OTP-19.3.2.tar.gz | 3 -- OTP-20.0.1.tar.gz | 3 ++ crypto.patch | 10 ++--- erlang.changes | 102 +++++++++++++++++++++++++++++++++++++++++++ erlang.spec | 32 +------------- otp-R16B-rpath.patch | 20 ++++----- 6 files changed, 121 insertions(+), 49 deletions(-) delete mode 100644 OTP-19.3.2.tar.gz create mode 100644 OTP-20.0.1.tar.gz diff --git a/OTP-19.3.2.tar.gz b/OTP-19.3.2.tar.gz deleted file mode 100644 index 91f9bbe..0000000 --- a/OTP-19.3.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2d58b672fce9780ea9b5cd8929a978eaa79730e65bf3d11fc814e2f759ffbd04 -size 33988728 diff --git a/OTP-20.0.1.tar.gz b/OTP-20.0.1.tar.gz new file mode 100644 index 0000000..379faa1 --- /dev/null +++ b/OTP-20.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8b121b38102acd43f89afd786055461741522c3a13ee17ef1a795c0dbf6aa281 +size 52813358 diff --git a/crypto.patch b/crypto.patch index 32dab5d..10ba355 100644 --- a/crypto.patch +++ b/crypto.patch @@ -5,12 +5,12 @@ Date: Sat Dec 21 00:13:35 2013 +0400 In openssl 1.0.1e EC_GROUP_new_curve_GF2m function is wrapped by #ifndef OPENSSL_NO_EC2M. We have to check whether OPENSSL_NO_EC2M is set, and if it is, then we do not have EC_GROUP_new_curve_GF2m function and do not HAVE_EC. -Index: otp-OTP-19.3.1/lib/crypto/c_src/crypto.c +Index: otp-OTP-20.0.1/lib/crypto/c_src/crypto.c =================================================================== ---- otp-OTP-19.3.1.orig/lib/crypto/c_src/crypto.c -+++ otp-OTP-19.3.1/lib/crypto/c_src/crypto.c -@@ -102,7 +102,8 @@ - #if OPENSSL_VERSION_NUMBER >= OpenSSL_version(0,9,8,'o') \ +--- otp-OTP-20.0.1.orig/lib/crypto/c_src/crypto.c ++++ otp-OTP-20.0.1/lib/crypto/c_src/crypto.c +@@ -142,7 +142,8 @@ + #if OPENSSL_VERSION_NUMBER >= PACKED_OPENSSL_VERSION(0,9,8,'o') \ && !defined(OPENSSL_NO_EC) \ && !defined(OPENSSL_NO_ECDH) \ - && !defined(OPENSSL_NO_ECDSA) diff --git a/erlang.changes b/erlang.changes index f62edcd..28155ab 100644 --- a/erlang.changes +++ b/erlang.changes @@ -1,3 +1,105 @@ +------------------------------------------------------------------- +Mon Jul 17 14:24:49 UTC 2017 - matwey.kornilov@gmail.com + +- Update to 20.0.1: + * erts: Fixed a bug in gen_tcp:send where it never returned when + repeatedly called on a remotely closed TCP socket. + * erts: Fixed segfault that could happen during cleanup of aborted + erlang:port_command/3 calls. A port_command is aborted if the + port is closed at the same time as the port_command was issued. + This bug was introduced in erts-8.0. + * erts: Fixed implementation of statistics(wall_clock) and + statistics(runtime) so that values do not unnecessarily wrap due + to the emulator. Note that the values returned by + statistics(runtime) may still wrap due to limitations in the + underlying functionality provided by the operating system. + * erts: Fix performance bug in pre-allocators that could cause + them to permanently fall back on normal more expensive memory + allocation. Pre-allocators are used for quick allocation of + short lived meta data used by messages and other scheduled + tasks. Bug exists since OTP_R15B02. + * runtime_tools: A faulty encoding comment was added when saving + trace patterns to file. This is now corrected. + * stdlib: A bug in proc_lib:format() introduced in Erlang/OTP 20.0 + is corrected. + * stdlib: Fix string:len/1 to be compatible with previous + versions. + * stdlib: In OTP-20.0, the behavior of c, make, and ct_make was + changed so that in some cases the beam files by default would be + written to the directory where the source files were found. This + is now changed back to the old behavior so beam files are by + default written to current directory. + +- Update to 20.0.0: + * Potential Incompatibilities + * ERTS: + * The non SMP Erlang VM is deprecated and not built by default + * Remove deprecated erlang:hash/2 + * erlang:statistics/1 with scheduler_wall_time now also + includes info about dirty CPU schedulers. + * The new purge strategy introduced in OTP 19.1 is mandatory + and slightly incompatible for processes holding funs + * see erlang:check_process_code/3. + * The NIF library reload is not supported anymore. + * Atoms can now contain arbitrary unicode characters which + means that the DFLAG_UTF8_ATOMS capability in the + distribution protocol must be supported if an OTP 20 node + should accept the connection with another node or library. + Third party libraries which uses the distribution protocol + need to be updated with this. + * Asn1: Deprecated module and functions removed (asn1rt, + asn1ct:encode/3 and decode/3) + * Ssh: client only option in a call to start a daemon will now fail + * Highlights + * Erts: + * Dirty schedulers enabled and supported on VM with SMP support. + * support for “dirty” BIFs and “dirty” GC. + * erlang:garbage_collect/2 for control of minor or major GC + * Erlang literals are no longer copied when sending messages. + * Improved performance for large ETS tables, >256 entries + (except ordered_set) + * erlang:system_info/1 atom_count and atom_limit + * Reduced memory pressure by converting sub-binaries to + heap-binaries during GC + * enif_select, map an external event to message + * Improvements of timers internally in the VM resulting in + reduced memory consumption and more efficient administration + for timers + * Compiler: + * Code generation for complicated guards is improved. + * Warnings for repeated identical map keys. #{'a'=>1, 'b'=>2, + 'a'=>3} will warn for the repeated key a. + * By default there is now a warning when export_all is used. + Can be disabled + * Pattern matching for maps is optimized + * New option deterministic to omit path to source + options + info the BEAM file. + * Atoms may now contain arbitrary unicode characters. + * compile:file/2 has an option to include extra chunks in the + BEAM file. + * Misc other applications: + * Significantly updated string module with unicode support and + many new functions + * crypto now supports OpenSSL 1.1 + * Unnamed ets tables optimized + * gen_fsm is deprecated and replaced by gen_statem + * A new event manager to handle a subset of OS signals in + Erlang + * Optimized sets add_element, del_element and union + * Added rand:jump/0-1 + * When a gen_server crashes, the stacktrace for the client + will be printed to facilitate debugging. + * take/2 has been added to dict, orddict, and gb_trees. + * take_any/2 has been added to gb_trees + * erl_tar support for long path names and new file formats + * asn1: the new maps option changes the representation of + SEQUENCE to be maps instead of records + * A TLS client will by default call + public_key:pkix_verify_hostname/2 to verify the hostname + * ssl: DTLS documented in the API, experimental + * ssh: improving security, removing and adding algorithms + * New math:fmod/2 + ------------------------------------------------------------------- Sat May 6 11:26:42 UTC 2017 - meissner@suse.com diff --git a/erlang.spec b/erlang.spec index f25bb25..d4971f6 100644 --- a/erlang.spec +++ b/erlang.spec @@ -21,7 +21,7 @@ %endif Name: erlang -Version: 19.3.2 +Version: 20.0.1 Release: 0 # not set up to be built with position independend executable support #!BuildIgnore: gcc-PIE @@ -176,15 +176,6 @@ Requires: java >= 1.5.0 %description jinterface JInterface module for accessing erlang from Java -%package gs -Summary: A library for Tcl/Tk support in Erlang -Group: Development/Languages/Other -Requires: %{name} = %{version} -Requires: tk - -%description gs -A Graphics System used to write platform independent user interfaces. - %package reltool Summary: A release management tool Group: Development/Languages/Other @@ -261,16 +252,6 @@ Erlang sources for the et application in the Erlang/OTP system. They are useful for educational purpose and as a base for creating embedded systems. -%package gs-src -Summary: Erlang/OTP gs application sources -Group: Development/Languages/Other -Requires: %{name}-gs = %{version} - -%description gs-src -Erlang sources for the gs application in the Erlang/OTP system. -They are useful for educational purpose and as a base for creating -embedded systems. - %package jinterface-src Summary: Erlang/OTP jinterface application sources Group: Development/Languages/Other @@ -516,7 +497,6 @@ getent passwd epmd || /usr/sbin/useradd -g epmd -s /bin/false -r -c "Erlang Port %{_libdir}/erlang/lib/os_mon-*/ %{_libdir}/erlang/lib/otp_mibs-*/ %{_libdir}/erlang/lib/parsetools-*/ -%{_libdir}/erlang/lib/percept-*/ %{_libdir}/erlang/lib/public_key-*/ %{_libdir}/erlang/lib/runtime_tools-*/ %{_libdir}/erlang/lib/sasl-*/ @@ -526,7 +506,6 @@ getent passwd epmd || /usr/sbin/useradd -g epmd -s /bin/false -r -c "Erlang Port %{_libdir}/erlang/lib/stdlib-*/ %{_libdir}/erlang/lib/syntax_tools-*/ %{_libdir}/erlang/lib/tools-*/ -%{_libdir}/erlang/lib/typer-*/ %{_libdir}/erlang/lib/xmerl-*/ %{_libdir}/erlang/man/ %{_mandir}/man1/*.1.gz @@ -577,11 +556,6 @@ getent passwd epmd || /usr/sbin/useradd -g epmd -s /bin/false -r -c "Erlang Port %{_sbindir}/rcepmd /var/adm/fillup-templates/sysconfig.erlang -%files gs -%defattr(-,root,root) -%{_libdir}/erlang/lib/gs-*/ -%exclude %{_libdir}/erlang/lib/gs-*/src - %files jinterface %defattr(-,root,root,-) %{_libdir}/erlang/lib/jinterface-*/ @@ -635,10 +609,6 @@ getent passwd epmd || /usr/sbin/useradd -g epmd -s /bin/false -r -c "Erlang Port %defattr(-,root,root) %{_libdir}/erlang/lib/et-*/src -%files gs-src -%defattr(-,root,root) -%{_libdir}/erlang/lib/gs-*/src - %files jinterface-src %defattr(-,root,root) %{_libdir}/erlang/lib/jinterface-*/java_src diff --git a/otp-R16B-rpath.patch b/otp-R16B-rpath.patch index c422038..ec07e20 100644 --- a/otp-R16B-rpath.patch +++ b/otp-R16B-rpath.patch @@ -1,8 +1,8 @@ -Index: otp-OTP-18.1.3/lib/crypto/c_src/Makefile.in +Index: otp-OTP-20.0.1/lib/crypto/c_src/Makefile.in =================================================================== ---- otp-OTP-18.1.3.orig/lib/crypto/c_src/Makefile.in -+++ otp-OTP-18.1.3/lib/crypto/c_src/Makefile.in -@@ -90,7 +90,7 @@ endif +--- otp-OTP-20.0.1.orig/lib/crypto/c_src/Makefile.in ++++ otp-OTP-20.0.1/lib/crypto/c_src/Makefile.in +@@ -92,7 +92,7 @@ endif DYNAMIC_CRYPTO_LIB=@SSL_DYNAMIC_ONLY@ ifeq ($(DYNAMIC_CRYPTO_LIB),yes) @@ -11,10 +11,10 @@ Index: otp-OTP-18.1.3/lib/crypto/c_src/Makefile.in CRYPTO_LINK_LIB=$(SSL_DED_LD_RUNTIME_LIBRARY_PATH) -L$(SSL_LIBDIR) -l$(SSL_CRYPTO_LIBNAME) EXTRA_FLAGS = -DHAVE_DYNAMIC_CRYPTO_LIB else -Index: otp-OTP-18.1.3/lib/crypto/priv/Makefile +Index: otp-OTP-20.0.1/lib/crypto/priv/Makefile =================================================================== ---- otp-OTP-18.1.3.orig/lib/crypto/priv/Makefile -+++ otp-OTP-18.1.3/lib/crypto/priv/Makefile +--- otp-OTP-20.0.1.orig/lib/crypto/priv/Makefile ++++ otp-OTP-20.0.1/lib/crypto/priv/Makefile @@ -61,7 +61,7 @@ OBJS = $(OBJDIR)/crypto.o # ---------------------------------------------------- @@ -24,10 +24,10 @@ Index: otp-OTP-18.1.3/lib/crypto/priv/Makefile -o $@ $^ -lcrypto $(DLL_NIFLIB): $(OBJS) -Index: otp-OTP-18.1.3/lib/odbc/c_src/odbcserver.c +Index: otp-OTP-20.0.1/lib/odbc/c_src/odbcserver.c =================================================================== ---- otp-OTP-18.1.3.orig/lib/odbc/c_src/odbcserver.c -+++ otp-OTP-18.1.3/lib/odbc/c_src/odbcserver.c +--- otp-OTP-20.0.1.orig/lib/odbc/c_src/odbcserver.c ++++ otp-OTP-20.0.1/lib/odbc/c_src/odbcserver.c @@ -107,6 +107,8 @@ #ifdef UNIX #include From 1ee6b984a29155eaf6feed1d63a2e9e14916b4e146f8ef7fb59826dcb407def0 Mon Sep 17 00:00:00 2001 From: Matwey Kornilov Date: Thu, 24 Aug 2017 11:38:42 +0000 Subject: [PATCH 2/2] Accepting request 517750 from home:matwey:branches:devel:languages:erlang:Factory - Update to 20.0.2: * asn: Fixed compilation error of generated code caused by a missing quotation of function names as part of an external call for encoding. * erts: Added missing release notes for OTP-14491 ("performance bug in pre-allocators") which was included in erts-9.0.1 (OTP-20.0.1). * erts: Fixed a bug that prevented TCP sockets from being closed properly on send timeouts. * erts: Fixed bug in operator bxor causing erroneuos result when one operand is a big *negative* integer with the lowest N*W bits as zero and the other operand not larger than N*W bits. N is an integer of 1 or larger and W is 32 or 64 depending on word size. * kernel: The documentation for the 'quiet' option in disk_log:open/1 had an incorrect default value. - erlang-gs application has been depricated OBS-URL: https://build.opensuse.org/request/show/517750 OBS-URL: https://build.opensuse.org/package/show/devel:languages:erlang:Factory/erlang?expand=0&rev=54 --- OTP-20.0.1.tar.gz | 3 --- OTP-20.0.2.tar.gz | 3 +++ _constraints | 2 +- erlang.changes | 23 +++++++++++++++++++++++ erlang.spec | 6 +----- 5 files changed, 28 insertions(+), 9 deletions(-) delete mode 100644 OTP-20.0.1.tar.gz create mode 100644 OTP-20.0.2.tar.gz diff --git a/OTP-20.0.1.tar.gz b/OTP-20.0.1.tar.gz deleted file mode 100644 index 379faa1..0000000 --- a/OTP-20.0.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8b121b38102acd43f89afd786055461741522c3a13ee17ef1a795c0dbf6aa281 -size 52813358 diff --git a/OTP-20.0.2.tar.gz b/OTP-20.0.2.tar.gz new file mode 100644 index 0000000..3fd7d4b --- /dev/null +++ b/OTP-20.0.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8a6020138eeecc015ac5d12ccb2b2c543e975559e669c376702723a2a67dc105 +size 52809801 diff --git a/_constraints b/_constraints index 4269ee4..4464274 100644 --- a/_constraints +++ b/_constraints @@ -1,7 +1,7 @@ - 4000 + 6000 diff --git a/erlang.changes b/erlang.changes index 28155ab..fad05b0 100644 --- a/erlang.changes +++ b/erlang.changes @@ -1,3 +1,26 @@ +------------------------------------------------------------------- +Sun Aug 20 06:28:17 UTC 2017 - matwey.kornilov@gmail.com + +- Update to 20.0.2: + * asn: Fixed compilation error of generated code caused by a + missing quotation of function names as part of an external call for + encoding. + * erts: Added missing release notes for OTP-14491 ("performance + bug in pre-allocators") which was included in erts-9.0.1 (OTP-20.0.1). + * erts: Fixed a bug that prevented TCP sockets from being + closed properly on send timeouts. + * erts: Fixed bug in operator bxor causing erroneuos result + when one operand is a big *negative* integer with the lowest N*W bits as + zero and the other operand not larger than N*W bits. N is an integer of 1 + or larger and W is 32 or 64 depending on word size. + * kernel: The documentation for the 'quiet' option in + disk_log:open/1 had an incorrect default value. + +------------------------------------------------------------------- +Mon Jul 31 17:02:58 UTC 2017 - matwey.kornilov@gmail.com + +- erlang-gs application has been depricated + ------------------------------------------------------------------- Mon Jul 17 14:24:49 UTC 2017 - matwey.kornilov@gmail.com diff --git a/erlang.spec b/erlang.spec index d4971f6..b3c101c 100644 --- a/erlang.spec +++ b/erlang.spec @@ -21,7 +21,7 @@ %endif Name: erlang -Version: 20.0.1 +Version: 20.0.2 Release: 0 # not set up to be built with position independend executable support #!BuildIgnore: gcc-PIE @@ -107,7 +107,6 @@ systems from Ericsson. Summary: A debugger for debugging and testing of Erlang programs Group: Development/Languages/Other Requires: %{name} = %{version} -Requires: %{name}-gs = %{version} Requires: %{name}-wx = %{version} %description debugger @@ -117,7 +116,6 @@ A debugger for debugging and testing of Erlang programs. Summary: A DIscrepany AnaLYZer for ERlang programs Group: Development/Languages/Other Requires: %{name} = %{version} -Requires: %{name}-gs = %{version} Requires: %{name}-wx = %{version} Requires: graphviz @@ -161,7 +159,6 @@ The Erlang Port Mapper daemon acts as a name server on all hosts involved in dis Summary: An event tracer for Erlang programs Group: Development/Languages/Other Requires: %{name} = %{version} -Requires: %{name}-gs = %{version} Requires: %{name}-wx = %{version} %description et @@ -180,7 +177,6 @@ JInterface module for accessing erlang from Java Summary: A release management tool Group: Development/Languages/Other Requires: %{name} = %{version} -Requires: %{name}-gs = %{version} Requires: %{name}-wx = %{version} %description reltool