From bd17847fce3928936c52975566fd9388e2b5e9f98ca66dda4604f202a4bbf42e Mon Sep 17 00:00:00 2001 From: Matwey Kornilov Date: Thu, 3 Jan 2019 07:22:15 +0000 Subject: [PATCH 1/4] Accepting request 662223 from home:gsantomaggio_suse:branches:devel:languages:erlang:Factory - update to 21.2.2: - Changes for 21.2.2: * http://erlang.org/download/OTP-21.2.2.README * ssh: Fixed port leakage if a ssh:daemon call failed. - update to 21.2.1: - Changes for 21.2.1: * http://erlang.org/download/OTP-21.2.1.README * erts: Fixed bug on big endian architectures when changing file permissions or ownership with file:change_mode, change_owner, change_group or write_file_info. Bug exists since OTP-21.0. * erts: Fixed bug in operator band of two negative operands causing erroneous result if the absolute value of one of the operands have the lowest N*W bits as zero and the other absolute value is not larger than N*W bits. N is an integer of 1 or larger and W is 32 or 64 depending on word size. * ssl: Fixed renegotiation bug. Client did not handle server initiated renegotiation correctly after rewrite to two connection processes, due to ERL-622 commit d87ac1c55188f5ba5cdf72384125d94d42118c18. This could manifest it self as a " bad_record_mac" alert. Also included are some optimizations - update to 21.2: - Changes for 21.2: * http://erlang.org/download/OTP-21.2.README * HIGHLIGHTS * erts, sasl: New counters and atomics modules supplies access to highly efficient operations on mutable fixed word sized variables. * erts: There is a new module persistent_term that implements a term storage suitable for terms that are frequently used but never or infrequently updated. Lookups are done in constant time without copying the terms. * ssh: Requires OpenSSL 1.1.1 or higher as cryptolib under the OTP application crypto. * ssl: *** POTENTIAL INCOMPATIBILITY *** ssl now uses active n internally to boost performance. Old active once behavior can be restored by setting application variable see manual page for ssl application (man 6). * erts: Add a new pollset that is made to handle sockets that use {active, true} or {active, N}. The new pollset will not be polled by a pollthread, but instead polled by a normal scheduler. This change was made because of the overhead associated with constantly having to re-apply the ONESHOT mechanism on fds that all input events were interesting. The new pollset is only active on platforms that support concurrent kernel poll updates, i.e. Linux and BSD. * POTENTIAL INCOMPATIBILITIES: kernel: A new function, logger:update_handler_config/3 is added, and the handler callback changing_config now has a new argument, SetOrUpdate, which indicates if the configuration change comes from set_handler_config/2,3 or update_handler_config/2,3. This allows the handler to consistently merge the new configuration with the old (if the change comes from update_handler_config/2,3) or with the default (if the change comes from set_handler_config/2,3). The built-in handlers logger_std_h and logger_disk_log_h are updated accordingly. A bug which could cause inconsistency between the handlers' internal state and the stored configuration is also corrected. * ssl: ssl now uses active n internally to boost performance. Old active once behavior can be restored by setting application variable see manual page for ssl application (man 6). * full relase notes here: http://erlang.org/download/OTP-21.2.README OBS-URL: https://build.opensuse.org/request/show/662223 OBS-URL: https://build.opensuse.org/package/show/devel:languages:erlang:Factory/erlang?expand=0&rev=70 --- OTP-21.1.4.tar.gz | 3 -- OTP-21.2.2.tar.gz | 3 ++ erlang.changes | 75 ++++++++++++++++++++++++++++++++++++++++++++ erlang.spec | 2 +- otp-R16B-rpath.patch | 8 ++--- 5 files changed, 83 insertions(+), 8 deletions(-) delete mode 100644 OTP-21.1.4.tar.gz create mode 100644 OTP-21.2.2.tar.gz diff --git a/OTP-21.1.4.tar.gz b/OTP-21.1.4.tar.gz deleted file mode 100644 index ef0bacf..0000000 --- a/OTP-21.1.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:95a97851d4af2d894fe981caa81d077b0d2c01f3bdf6cdf83309baa9678617f9 -size 53854748 diff --git a/OTP-21.2.2.tar.gz b/OTP-21.2.2.tar.gz new file mode 100644 index 0000000..d8f2028 --- /dev/null +++ b/OTP-21.2.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:41b1c3a8343218157a683776e71d80a05ac4eb4019a90a760846608d78817690 +size 53946708 diff --git a/erlang.changes b/erlang.changes index aa64f2a..b882a62 100644 --- a/erlang.changes +++ b/erlang.changes @@ -1,4 +1,79 @@ ------------------------------------------------------------------- +Mon Dec 31 17:59:37 UTC 2018 - Gabriele Santomaggio + +- update to 21.2.2: +- Changes for 21.2.2: + * http://erlang.org/download/OTP-21.2.2.README + * ssh: Fixed port leakage if a ssh:daemon call failed. +- update to 21.2.1: +- Changes for 21.2.1: + * http://erlang.org/download/OTP-21.2.1.README + * erts: Fixed bug on big endian architectures when changing + file permissions or ownership with file:change_mode, + change_owner, change_group or write_file_info. Bug + exists since OTP-21.0. + * erts: Fixed bug in operator band of two negative operands + causing erroneous result if the absolute value of one + of the operands have the lowest N*W bits as zero and + the other absolute value is not larger than N*W bits. N + is an integer of 1 or larger and W is 32 or 64 + depending on word size. + * ssl: Fixed renegotiation bug. Client did not handle server + initiated renegotiation correctly after rewrite to two + connection processes, due to ERL-622 commit + d87ac1c55188f5ba5cdf72384125d94d42118c18. This could + manifest it self as a " bad_record_mac" alert. + Also included are some optimizations +- update to 21.2: +- Changes for 21.2: + * http://erlang.org/download/OTP-21.2.README + * HIGHLIGHTS + * erts, sasl: New counters and atomics modules supplies access to + highly efficient operations on mutable fixed word sized + variables. + * erts: There is a new module persistent_term that implements a + term storage suitable for terms that are frequently + used but never or infrequently updated. Lookups are + done in constant time without copying the terms. + * ssh: Requires OpenSSL 1.1.1 or higher as cryptolib under the + OTP application crypto. + * ssl: *** POTENTIAL INCOMPATIBILITY *** + ssl now uses active n internally to boost performance. + Old active once behavior can be restored by setting + application variable see manual page for ssl + application (man 6). + * erts: Add a new pollset that is made to handle sockets that + use {active, true} or {active, N}. The new pollset will + not be polled by a pollthread, but instead polled by a + normal scheduler. + This change was made because of the overhead associated + with constantly having to re-apply the ONESHOT + mechanism on fds that all input events were + interesting. + The new pollset is only active on platforms that + support concurrent kernel poll updates, i.e. Linux and + BSD. + * POTENTIAL INCOMPATIBILITIES: + kernel: A new function, logger:update_handler_config/3 is + added, and the handler callback changing_config now has + a new argument, SetOrUpdate, which indicates if the + configuration change comes from set_handler_config/2,3 + or update_handler_config/2,3. + This allows the handler to consistently merge the new + configuration with the old (if the change comes from + update_handler_config/2,3) or with the default (if the + change comes from set_handler_config/2,3). + The built-in handlers logger_std_h and + logger_disk_log_h are updated accordingly. A bug which + could cause inconsistency between the handlers' + internal state and the stored configuration is also + corrected. + * ssl: ssl now uses active n internally to boost performance. + Old active once behavior can be restored by setting + application variable see manual page for ssl + application (man 6). + * full relase notes here: http://erlang.org/download/OTP-21.2.README +------------------------------------------------------------------- Wed Dec 12 19:11:37 UTC 2018 - matwey.kornilov@gmail.com - Drop crypto.patch: isn't required anymore diff --git a/erlang.spec b/erlang.spec index ce4bd25..2b5280d 100644 --- a/erlang.spec +++ b/erlang.spec @@ -26,7 +26,7 @@ %endif Name: erlang -Version: 21.1.4 +Version: 21.2.2 Release: 0 # not set up to be built with position independend executable support #!BuildIgnore: gcc-PIE diff --git a/otp-R16B-rpath.patch b/otp-R16B-rpath.patch index d52b8fe..d96138d 100644 --- a/otp-R16B-rpath.patch +++ b/otp-R16B-rpath.patch @@ -1,7 +1,7 @@ Index: otp-OTP-20.1.1/lib/crypto/c_src/Makefile.in =================================================================== ---- otp-OTP-21.1.1.orig/lib/crypto/c_src/Makefile.in 2018-10-12 17:12:11.000000000 +0200 -+++ otp-OTP-21.1.1/lib/crypto/c_src/Makefile.in 2018-11-02 16:59:43.766304768 +0100 +--- otp-OTP-21.2.2.origin/lib/crypto/c_src/Makefile.in 2018-12-27 10:45:56.000000000 +0100 ++++ otp-OTP-21.2.2/lib/crypto/c_src/Makefile.in 2018-12-31 16:40:36.912387487 +0100 @@ -96,7 +96,7 @@ DYNAMIC_CRYPTO_LIB=@SSL_DYNAMIC_ONLY@ @@ -13,8 +13,8 @@ Index: otp-OTP-20.1.1/lib/crypto/c_src/Makefile.in else Index: otp-OTP-20.1.1/lib/crypto/priv/Makefile =================================================================== ---- otp-OTP-21.1.1.orig/lib/crypto/priv/Makefile 2018-10-12 17:12:11.000000000 +0200 -+++ otp-OTP-21.1.1/lib/crypto/priv/Makefile 2018-11-02 17:01:23.294304768 +0100 +--- otp-OTP-21.2.2.origin/lib/crypto/priv/Makefile 2018-12-27 10:45:56.000000000 +0100 ++++ otp-OTP-21.2.2/lib/crypto/priv/Makefile 2018-12-31 16:41:16.992449143 +0100 @@ -61,7 +61,7 @@ # ---------------------------------------------------- From 7f90d76caa47d06842fbd23f85ef7cb6117f98eac515b84b43a4a9b136da05b7 Mon Sep 17 00:00:00 2001 From: Matwey Kornilov Date: Sun, 27 Jan 2019 07:08:43 +0000 Subject: [PATCH 2/4] Accepting request 668740 from home:gsantomaggio_suse:branches:devel:languages:erlang:Factory - update to 21.2.4: - Changes for 21.2.4: * http://erlang.org/download/OTP-21.2.4.README * erts: Fix bug where doing a gen_tcp:send on a socket with delay_send set to true could cause a segfault if the other side closes the connection. Bug was introduced in erts-10.2 (OTP-21.2). * erts: Fix a race condition when a port program closes that could result in the next started port to hang during startup. Bug was introduced in erts-10.0 (OTP-21.0). * erts: Fix a bug where polling for external events could be delayed for a very long time if all active schedulers were 100% loaded. Bug was introduced in erts-10.2 (OTP-21.2). * inets: Make sure ipv6 addresses with brackets in URIs are converted correctly before passing to lower level functions like gen_tcp and ssl functions. Could cause connection to fail. - update to 21.2.3: - Changes for 21.2.3: * http://erlang.org/download/OTP-21.2.3.README * compiler: An optimization that avoided allocation of a stack frame for some case expressions was introduced in OTP 21. (ERL-504/OTP-14808) It turns out that in rare circumstances, this optimization is not safe. Therefore, this optimization has been disabled. * erts: Fixed a crash when dangling files were closed after init:restart/0. * erts: A bug that could cause dirty schedulers to become unresponsive has been fixed. * ssl: Fix encoding of the SRP extension length field in ssl. The old encoding of the SRP extension length could cause interoperability problems with third party SSL implementations when SRP was used. * ssl: Guarantee active once data delivery, handling TCP stream properly. Correct gen_statem returns for some error cases * xmerl: The charset detection parsing crash in some cases when the XML directive is not syntactic correct. OBS-URL: https://build.opensuse.org/request/show/668740 OBS-URL: https://build.opensuse.org/package/show/devel:languages:erlang:Factory/erlang?expand=0&rev=71 --- OTP-21.2.2.tar.gz | 3 --- OTP-21.2.4.tar.gz | 3 +++ erlang.changes | 44 ++++++++++++++++++++++++++++++++++++++++++++ erlang.spec | 10 ++++++++-- 4 files changed, 55 insertions(+), 5 deletions(-) delete mode 100644 OTP-21.2.2.tar.gz create mode 100644 OTP-21.2.4.tar.gz diff --git a/OTP-21.2.2.tar.gz b/OTP-21.2.2.tar.gz deleted file mode 100644 index d8f2028..0000000 --- a/OTP-21.2.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:41b1c3a8343218157a683776e71d80a05ac4eb4019a90a760846608d78817690 -size 53946708 diff --git a/OTP-21.2.4.tar.gz b/OTP-21.2.4.tar.gz new file mode 100644 index 0000000..9860028 --- /dev/null +++ b/OTP-21.2.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:833d31ac102536b752e474dc6d69be7cc3e37d2d944191317312b30b1ea8ef0d +size 53955202 diff --git a/erlang.changes b/erlang.changes index b882a62..2490f58 100644 --- a/erlang.changes +++ b/erlang.changes @@ -1,3 +1,47 @@ +------------------------------------------------------------------- +Fri Jan 25 15:26:37 UTC 2019 - Gabriele Santomaggio + +- update to 21.2.4: +- Changes for 21.2.4: + * http://erlang.org/download/OTP-21.2.4.README + * erts: Fix bug where doing a gen_tcp:send on a socket with + delay_send set to true could cause a segfault if the + other side closes the connection. + Bug was introduced in erts-10.2 (OTP-21.2). + * erts: Fix a race condition when a port program closes that + could result in the next started port to hang during + startup. + Bug was introduced in erts-10.0 (OTP-21.0). + * erts: Fix a bug where polling for external events could be + delayed for a very long time if all active schedulers + were 100% loaded. + Bug was introduced in erts-10.2 (OTP-21.2). + * inets: Make sure ipv6 addresses with brackets in URIs are + converted correctly before passing to lower level + functions like gen_tcp and ssl functions. Could cause + connection to fail. +- update to 21.2.3: +- Changes for 21.2.3: + * http://erlang.org/download/OTP-21.2.3.README + * compiler: An optimization that avoided allocation of a stack + frame for some case expressions was introduced in OTP + 21. (ERL-504/OTP-14808) It turns out that in rare + circumstances, this optimization is not safe. + Therefore, this optimization has been disabled. + * erts: Fixed a crash when dangling files were closed after + init:restart/0. + * erts: A bug that could cause dirty schedulers to become + unresponsive has been fixed. + * ssl: Fix encoding of the SRP extension length field in ssl. + The old encoding of the SRP extension length could + cause interoperability problems with third party SSL + implementations when SRP was used. + * ssl: Guarantee active once data delivery, handling TCP + stream properly. + Correct gen_statem returns for some error cases + * xmerl: The charset detection parsing crash in some cases when + the XML directive is not syntactic correct. + ------------------------------------------------------------------- Mon Dec 31 17:59:37 UTC 2018 - Gabriele Santomaggio diff --git a/erlang.spec b/erlang.spec index 2b5280d..fe284d2 100644 --- a/erlang.spec +++ b/erlang.spec @@ -26,7 +26,7 @@ %endif Name: erlang -Version: 21.2.2 +Version: 21.2.4 Release: 0 # not set up to be built with position independend executable support #!BuildIgnore: gcc-PIE @@ -60,7 +60,13 @@ BuildRequires: %insserv_prereq BuildRequires: Mesa-devel BuildRequires: fdupes BuildRequires: fop -BuildRequires: dejavu-fonts +%if 0%{?suse_version} < 1200 +BuildRequires: dejavu +%else +BuildRequires: dejavu-fonts +%endif + + BuildRequires: java-devel >= 1.6.0 BuildRequires: krb5-devel BuildRequires: update-alternatives From a08ea36804ba2abf9120d6a3041119813372e6049f892fd019221ad3a59a6713 Mon Sep 17 00:00:00 2001 From: Matwey Kornilov Date: Tue, 5 Feb 2019 16:23:39 +0000 Subject: [PATCH 3/4] Accepting request 671860 from home:gsantomaggio_suse:branches:devel:languages:erlang:Factory - Update to 21.2.5: - Changes for 21.2.5: * http://erlang.org/download/OTP-21.2.5.README * inets: Fixed bug that causes a crash in http client when using hostnames (e.g. localhost) with the the option ipv6_host_with_brackets set to true. This change also fixes a regression: httpc:request fails with connection error (nxdomain) if option ipv6_host_with_brackets set to true and host component of the URI is an IPv6 address. OBS-URL: https://build.opensuse.org/request/show/671860 OBS-URL: https://build.opensuse.org/package/show/devel:languages:erlang:Factory/erlang?expand=0&rev=72 --- OTP-21.2.4.tar.gz | 3 --- OTP-21.2.5.tar.gz | 3 +++ erlang.changes | 14 ++++++++++++++ erlang.spec | 2 +- 4 files changed, 18 insertions(+), 4 deletions(-) delete mode 100644 OTP-21.2.4.tar.gz create mode 100644 OTP-21.2.5.tar.gz diff --git a/OTP-21.2.4.tar.gz b/OTP-21.2.4.tar.gz deleted file mode 100644 index 9860028..0000000 --- a/OTP-21.2.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:833d31ac102536b752e474dc6d69be7cc3e37d2d944191317312b30b1ea8ef0d -size 53955202 diff --git a/OTP-21.2.5.tar.gz b/OTP-21.2.5.tar.gz new file mode 100644 index 0000000..6a103ba --- /dev/null +++ b/OTP-21.2.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3ff578ab020a714be25d6787b81938df016db375692d4126a28f1303e6e9c165 +size 53957249 diff --git a/erlang.changes b/erlang.changes index 2490f58..b20b6fd 100644 --- a/erlang.changes +++ b/erlang.changes @@ -1,3 +1,17 @@ +------------------------------------------------------------------- +Tue Feb 5 10:43:37 UTC 2019 - Gabriele Santomaggio + +- Update to 21.2.5: +- Changes for 21.2.5: + * http://erlang.org/download/OTP-21.2.5.README + * inets: Fixed bug that causes a crash in http client when using + hostnames (e.g. localhost) with the the option + ipv6_host_with_brackets set to true. + This change also fixes a regression: httpc:request + fails with connection error (nxdomain) if option + ipv6_host_with_brackets set to true and host component + of the URI is an IPv6 address. + ------------------------------------------------------------------- Fri Jan 25 15:26:37 UTC 2019 - Gabriele Santomaggio diff --git a/erlang.spec b/erlang.spec index fe284d2..23f520d 100644 --- a/erlang.spec +++ b/erlang.spec @@ -26,7 +26,7 @@ %endif Name: erlang -Version: 21.2.4 +Version: 21.2.5 Release: 0 # not set up to be built with position independend executable support #!BuildIgnore: gcc-PIE From 540673a65f0e78e8321260376f01def79ce9f8045eb81ba96b0514f06e626c2b Mon Sep 17 00:00:00 2001 From: Matwey Kornilov Date: Tue, 12 Feb 2019 07:10:06 +0000 Subject: [PATCH 4/4] Accepting request 672837 from home:matwey:branches:devel:languages:erlang:Factory - Drop unsupported openSUSE versions OBS-URL: https://build.opensuse.org/request/show/672837 OBS-URL: https://build.opensuse.org/package/show/devel:languages:erlang:Factory/erlang?expand=0&rev=73 --- erlang.changes | 5 +++++ erlang.spec | 18 +----------------- 2 files changed, 6 insertions(+), 17 deletions(-) diff --git a/erlang.changes b/erlang.changes index b20b6fd..f43f70c 100644 --- a/erlang.changes +++ b/erlang.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Feb 7 18:20:58 UTC 2019 - matwey.kornilov@gmail.com + +- Drop unsupported openSUSE versions + ------------------------------------------------------------------- Tue Feb 5 10:43:37 UTC 2019 - Gabriele Santomaggio diff --git a/erlang.spec b/erlang.spec index 23f520d..3eefbbb 100644 --- a/erlang.spec +++ b/erlang.spec @@ -60,13 +60,7 @@ BuildRequires: %insserv_prereq BuildRequires: Mesa-devel BuildRequires: fdupes BuildRequires: fop -%if 0%{?suse_version} < 1200 -BuildRequires: dejavu -%else -BuildRequires: dejavu-fonts -%endif - - +BuildRequires: dejavu-fonts BuildRequires: java-devel >= 1.6.0 BuildRequires: krb5-devel BuildRequires: update-alternatives @@ -84,13 +78,9 @@ BuildRequires: wxWidgets-devel >= 3 BuildRequires: wxWidgets-devel >= 2.8 %define wx_requires_generator 1 %else -%if 0%{?suse_version} >= 1140 BuildRequires: wxWidgets >= 2.8 BuildRequires: wxWidgets-wxcontainer-devel >= 2.8 %define wx_requires_generator 1 -%else -BuildRequires: wxGTK-devel >= 2.8 -%endif %endif %endif @@ -301,11 +291,7 @@ embedded systems. Summary: A library for wxWidgets support in Erlang Group: Development/Languages/Other Requires: %{name} = %{version} -%if 0%{?suse_version} >= 1140 Requires: wxWidgets >= 2.8 -%else -Requires: wxGTK >= 2.8 -%endif %description wx A Graphics System used to write platform independent user interfaces. @@ -402,13 +388,11 @@ cat > %{buildroot}%{_datadir}/emacs/site-lisp/erlang.el << EOF (load-library "erlang-start") EOF -%if 0%{?suse_version} > 1020 # hardlink duplicates: find . -name "start_erl*" | xargs chmod 755 %fdupes %{buildroot}/%{_libdir}/erlang # %%doc macro copies the files to the package doc dir, hardlinks thus don't work %fdupes -s erlang_doc -%endif install -d -m 0750 %{buildroot}%{epmd_home} install -d -m 0755 %{buildroot}%{_sbindir}