diff --git a/elixir-0002-Use-PID-valid-for-32-bit-systems-followup-to-12741.patch b/elixir-0002-Use-PID-valid-for-32-bit-systems-followup-to-12741.patch new file mode 100644 index 0000000..2af5ab7 --- /dev/null +++ b/elixir-0002-Use-PID-valid-for-32-bit-systems-followup-to-12741.patch @@ -0,0 +1,32 @@ +From: Peter Lemenkov +Date: Fri, 7 Jul 2023 19:55:11 +0200 +Subject: [PATCH] Use PID valid for 32-bit systems, followup to #12741 + +Signed-off-by: Peter Lemenkov + +diff --git a/lib/iex/test/iex/helpers_test.exs b/lib/iex/test/iex/helpers_test.exs +index ec0b58554..1dee4bf7a 100644 +--- a/lib/iex/test/iex/helpers_test.exs ++++ b/lib/iex/test/iex/helpers_test.exs +@@ -1364,8 +1364,8 @@ test "reloads Erlang modules" do + + describe "pid/1,3" do + test "builds a PID from string" do +- assert inspect(pid("0.32767.3276")) == "#PID<0.32767.3276>" +- assert inspect(pid("0.5.6")) == "#PID<0.5.6>" ++ assert inspect(pid("0.32767.0")) == "#PID<0.32767.0>" ++ assert inspect(pid("0.5.0")) == "#PID<0.5.0>" + + assert_raise ArgumentError, fn -> + pid("0.6.-6") +@@ -1381,8 +1381,8 @@ test "builds a PID from atom" do + end + + test "builds a PID from integers" do +- assert inspect(pid(0, 32767, 3276)) == "#PID<0.32767.3276>" +- assert inspect(pid(0, 5, 6)) == "#PID<0.5.6>" ++ assert inspect(pid(0, 32767, 0)) == "#PID<0.32767.0>" ++ assert inspect(pid(0, 5, 0)) == "#PID<0.5.0>" + + assert_raise FunctionClauseError, fn -> + pid(0, 6, -6) diff --git a/elixir.spec b/elixir.spec index b54b027..73cfd45 100644 --- a/elixir.spec +++ b/elixir.spec @@ -12,6 +12,7 @@ VCS: scm:git:https://github.com/%{upstream}/%{realname}.git Source0: https://github.com/%{upstream}/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz Source1: https://github.com/%{upstream}/%{name}/releases/download/v%{version}/Docs.zip#/%{name}-%{version}-doc.zip Patch1: elixir-0001-Use-PID-valid-for-32-bit-systems-closes-12741.patch +Patch2: elixir-0002-Use-PID-valid-for-32-bit-systems-followup-to-12741.patch # See https://bugzilla.redhat.com/1470583 #BuildArch: noarch BuildRequires: erlang-compiler