diff --git a/srcpkgs/elixir/patches/workout-test.patch b/srcpkgs/elixir/patches/workout-test.patch new file mode 100644 index 00000000000..b994ddbdb70 --- /dev/null +++ b/srcpkgs/elixir/patches/workout-test.patch @@ -0,0 +1,23 @@ +Assertion with == failed +code: assert root_dir == :code.root_dir() |> to_string() +left: "/usr/lib/erlang" +right: "/usr/lib64/erlang" +--- a/lib/mix/test/mix/tasks/release_test.exs ++++ b/lib/mix/test/mix/tasks/release_test.exs +@@ -529,8 +529,6 @@ + assert release_root == root + assert ext == "" + end +- +- assert root_dir == :code.root_dir() |> to_string() + end) + end) + end +@@ -743,7 +741,6 @@ + } = wait_until_decoded(Path.join(root, "RELEASE_BOOTED")) + + assert app_dir == Path.join(root, "lib/release_test-0.1.0") +- assert root_dir == :code.root_dir() |> to_string() + assert sys_config_env == Path.join(root, "releases/0.1.0/sys") + assert sys_config_init == Path.join(root, "releases/0.1.0/sys") + diff --git a/srcpkgs/elixir/template b/srcpkgs/elixir/template index 8b3fda6a63e..d926b6fe27e 100644 --- a/srcpkgs/elixir/template +++ b/srcpkgs/elixir/template @@ -1,6 +1,6 @@ # Template file for 'elixir' pkgname=elixir -version=1.15.7 +version=1.18.2 revision=1 build_style=gnu-makefile make_build_args="LIBDIR=lib${XBPS_TARGET_WORDSIZE}" @@ -14,19 +14,10 @@ checkdepends="git" short_desc="Functional, concurrent, general-purpose programming language" maintainer="Duncaen " license="Apache-2.0" -homepage="http://elixir-lang.org/" +homepage="https://elixir-lang.org/" changelog="https://raw.githubusercontent.com/elixir-lang/elixir/v${version%.*}/CHANGELOG.md" distfiles="https://github.com/elixir-lang/elixir/archive/v${version}.tar.gz" -checksum=78bde2786b395515ae1eaa7d26faa7edfdd6632bfcfcd75bccb6341a18e8798f - -post_patch() { - # XXX: find a better solution - # Assertion with == failed - # code: assert root_dir == :code.root_dir() |> to_string() - # left: "/usr/lib/erlang" - # right: "/usr/lib64/erlang" - vsed -e '/assert root_dir == :code\.root_dir()/d' -i lib/mix/test/mix/tasks/release_test.exs -} +checksum=efc8d0660b56dd3f0c7536725a95f4d8b6be9f11ca9779d824ad79377753e916 do_check() { ERL_EPMD_PORT=5369 make ${make_check_target}