elixir: update to 1.18.2.

This commit is contained in:
Duncaen 2025-01-29 18:17:51 +01:00
parent ae0c5d46a5
commit 73f4519a24
No known key found for this signature in database
GPG Key ID: 335C1D17EC3D6E35
2 changed files with 26 additions and 12 deletions

View File

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

View File

@ -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 <duncaen@voidlinux.org>"
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}