SHA256
11
0
forked from pool/elixir

elixir: enable deterministic builds

This commit is contained in:
Alessio Biancalana
2025-06-08 11:22:26 +02:00
parent fd80a3b22a
commit eceb2ca7c2
2 changed files with 17 additions and 0 deletions

View 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

View File

@@ -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