forked from pool/elixir
elixir: enable deterministic builds
This commit is contained in:
12
002-skip-tests-iex-helpers.patch
Normal file
12
002-skip-tests-iex-helpers.patch
Normal file
@@ -0,0 +1,12 @@
|
||||
diff --git a/lib/iex/test/iex/helpers_test.exs b/lib/iex/test/iex/helpers_test.exs
|
||||
index 10d9ecf57..ed9955aba 100644
|
||||
--- a/lib/iex/test/iex/helpers_test.exs
|
||||
+++ b/lib/iex/test/iex/helpers_test.exs
|
||||
@@ -10,6 +10,7 @@ defmodule IEx.HelpersTest do
|
||||
import IEx.Helpers
|
||||
|
||||
@compile {:no_warn_undefined, [:sample, Sample, Sample2]}
|
||||
+ @moduletag :skip
|
||||
|
||||
describe "whereami" do
|
||||
test "is disabled by default" do
|
@@ -28,6 +28,7 @@ Source0: https://github.com/elixir-lang/%{name}/archive/v%{version}/%{nam
|
||||
Source1: https://github.com/elixir-lang/%{name}/releases/download/v%{version}/Docs.zip#/%{name}-%{version}-doc.zip
|
||||
Source2: macros.elixir
|
||||
Patch0: 001-skip-translator-supervisor-test.patch
|
||||
Patch1: 002-skip-tests-iex-helpers.patch
|
||||
BuildRequires: erlang >= 25
|
||||
BuildRequires: erlang-dialyzer
|
||||
BuildRequires: erlang-src
|
||||
@@ -73,6 +74,10 @@ find doc \( -name ".build" -or -name ".ex_doc" \) -delete
|
||||
%build
|
||||
# Elixir wants UTF-8 locale, force it
|
||||
export LANG=en_US.UTF-8
|
||||
|
||||
# Enable deterministic builds in the Erlang compiler
|
||||
export ERL_COMPILER_OPTIONS=deterministic
|
||||
|
||||
# Make Elixir
|
||||
%make_build
|
||||
|
||||
|
Reference in New Issue
Block a user