From bc566e06b08cecd83d4733f5eedeade298857b0a7d6b3851f2bcb2bf6107a92c Mon Sep 17 00:00:00 2001 From: Simon Lees Date: Mon, 27 May 2024 02:13:31 +0000 Subject: [PATCH] Accepting request 1176965 from home:alessio.biancalana:branches:devel:languages:erlang Upgrade to Elixir 1.16.3 OBS-URL: https://build.opensuse.org/request/show/1176965 OBS-URL: https://build.opensuse.org/package/show/devel:languages:erlang/elixir?expand=0&rev=97 --- ...g-compiled-without-docs-closes-13322.patch | 89 ------------------- elixir-1.16.2-doc.zip | 3 - elixir-1.16.2.tar.gz | 3 - elixir-1.16.3-doc.zip | 3 + elixir-1.16.3.tar.gz | 3 + elixir.changes | 6 ++ elixir.spec | 3 +- 7 files changed, 13 insertions(+), 97 deletions(-) delete mode 100644 0001-Skip-tests-if-Erlang-compiled-without-docs-closes-13322.patch delete mode 100644 elixir-1.16.2-doc.zip delete mode 100644 elixir-1.16.2.tar.gz create mode 100644 elixir-1.16.3-doc.zip create mode 100644 elixir-1.16.3.tar.gz diff --git a/0001-Skip-tests-if-Erlang-compiled-without-docs-closes-13322.patch b/0001-Skip-tests-if-Erlang-compiled-without-docs-closes-13322.patch deleted file mode 100644 index 1eda151..0000000 --- a/0001-Skip-tests-if-Erlang-compiled-without-docs-closes-13322.patch +++ /dev/null @@ -1,89 +0,0 @@ -From c50863615c0e8ac957e22ae01a6f9af23978c3f9 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Jos=C3=A9=20Valim?= -Date: Thu, 8 Feb 2024 08:08:03 +0100 -Subject: [PATCH] Skip tests if Erlang was compiled without docs, closes #13322 - ---- - lib/iex/test/iex/helpers_test.exs | 12 +++++++++--- - lib/iex/test/test_helper.exs | 10 +++++++++- - 2 files changed, 18 insertions(+), 4 deletions(-) - -diff --git a/lib/iex/test/iex/helpers_test.exs b/lib/iex/test/iex/helpers_test.exs -index 54f946516ce..171acc72abc 100644 ---- a/lib/iex/test/iex/helpers_test.exs -+++ b/lib/iex/test/iex/helpers_test.exs -@@ -332,17 +332,20 @@ defmodule IEx.HelpersTest do - assert help =~ "Welcome to Interactive Elixir" - end - -+ @tag :erlang_doc - test "prints Erlang module documentation" do - captured = capture_io(fn -> h(:timer) end) - assert captured =~ "This module provides useful functions related to time." - end - -+ @tag :erlang_doc - test "prints Erlang module function specs" do - captured = capture_io(fn -> h(:timer.sleep() / 1) end) - assert captured =~ ":timer.sleep/1" - assert captured =~ "-spec sleep(Time) -> ok when Time :: timeout()." - end - -+ @tag :erlang_doc - test "handles non-existing Erlang module function" do - captured = capture_io(fn -> h(:timer.baz() / 1) end) - assert captured =~ "No documentation for :timer.baz was found" -@@ -1008,13 +1011,15 @@ defmodule IEx.HelpersTest do - cleanup_modules([TypeSample]) - end - -- test "prints all types in erlang module" do -+ @tag :erlang_doc -+ test "prints all types in Erlang module" do - captured = capture_io(fn -> t(:queue) end) - assert captured =~ "-type queue() :: queue(_)" - assert captured =~ "-opaque queue(Item)" - end - -- test "prints single type from erlang module" do -+ @tag :erlang_doc -+ test "prints single type from Erlang module" do - captured = capture_io(fn -> t(:erlang.iovec()) end) - assert captured =~ "-type iovec() :: [binary()]" - assert captured =~ "A list of binaries." -@@ -1024,7 +1029,8 @@ defmodule IEx.HelpersTest do - assert captured =~ "A list of binaries." - end - -- test "handles non-existing types from erlang module" do -+ @tag :erlang_doc -+ test "handles non-existing types from Erlang module" do - captured = capture_io(fn -> t(:erlang.foo()) end) - assert captured =~ "No type information for :erlang.foo was found or :erlang.foo is private" - -diff --git a/lib/iex/test/test_helper.exs b/lib/iex/test/test_helper.exs -index f5a55f0aa80..b32c8be4e91 100644 ---- a/lib/iex/test/test_helper.exs -+++ b/lib/iex/test/test_helper.exs -@@ -7,11 +7,19 @@ IEx.configure(colors: [enabled: false]) - {line_exclude, line_include} = - if line = System.get_env("LINE"), do: {[:test], [line: line]}, else: {[], []} - -+erlang_doc_exclude = -+ if match?({:docs_v1, _, _, _, _, _, _}, Code.fetch_docs(:array)) do -+ [] -+ else -+ IO.puts("Erlang/OTP compiled without docs, some tests are excluded...") -+ [:erlang_doc] -+ end -+ - ExUnit.start( - assert_receive_timeout: assert_timeout, - trace: !!System.get_env("TRACE"), - include: line_include, -- exclude: line_exclude -+ exclude: line_exclude ++ erlang_doc_exclude - ) - - defmodule IEx.Case do - diff --git a/elixir-1.16.2-doc.zip b/elixir-1.16.2-doc.zip deleted file mode 100644 index 24a7c42..0000000 --- a/elixir-1.16.2-doc.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:257a1e7b53e4808ee6e5f55f5ae36f3452bb784d69ff1a01e4f7b1f2861fa979 -size 7062387 diff --git a/elixir-1.16.2.tar.gz b/elixir-1.16.2.tar.gz deleted file mode 100644 index a63bd19..0000000 --- a/elixir-1.16.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f53d06f3e4041c50e65b750e5d56fec9cc7c6a44510786937c6a5bb0666a7207 -size 3357093 diff --git a/elixir-1.16.3-doc.zip b/elixir-1.16.3-doc.zip new file mode 100644 index 0000000..37fb383 --- /dev/null +++ b/elixir-1.16.3-doc.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:10e0552134367a6fa285bc01271ba0bc79537b877b32a158489b21363f70b9e8 +size 6088686 diff --git a/elixir-1.16.3.tar.gz b/elixir-1.16.3.tar.gz new file mode 100644 index 0000000..c5d4e8e --- /dev/null +++ b/elixir-1.16.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a163128e618e5205ea749f8effafa5b540008fd0bed863e75e2e09663a00ec45 +size 3360376 diff --git a/elixir.changes b/elixir.changes index a106c36..5f80816 100644 --- a/elixir.changes +++ b/elixir.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun May 26 16:29:58 UTC 2024 - Alessio Biancalana + +- Upgrade to Elixir 1.16.3: + * Changelog available at https://hexdocs.pm/elixir/1.16.3/changelog.html + ------------------------------------------------------------------- Sun Mar 10 11:32:11 UTC 2024 - Alessio Biancalana diff --git a/elixir.spec b/elixir.spec index 68255cc..0bea374 100644 --- a/elixir.spec +++ b/elixir.spec @@ -19,7 +19,7 @@ %define elixirdir %{_prefix}/lib/elixir Name: elixir -Version: 1.16.2 +Version: 1.16.3 Release: 0 Summary: Functional meta-programming aware language built atop Erlang License: Apache-2.0 @@ -28,7 +28,6 @@ URL: http://elixir-lang.org Source0: https://github.com/elixir-lang/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz Source1: https://github.com/elixir-lang/%{name}/releases/download/v%{version}/Docs.zip#/%{name}-%{version}-doc.zip Source2: macros.elixir -Patch0: 0001-Skip-tests-if-Erlang-compiled-without-docs-closes-13322.patch BuildRequires: fdupes BuildRequires: gcc BuildRequires: make