logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git
commit: 9142dd840830bed1eb76030c4cb20202f7a7fb07
parent 46bace7c78a7089ab1cc74cded8d9ae35e72be65
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sat,  4 Dec 2021 01:37:15 +0100

dev-lang/elixir: Bump to 1.13.0

Diffstat:

Adev-lang/elixir/Manifest1+
Adev-lang/elixir/elixir-1.13.0.ebuild37+++++++++++++++++++++++++++++++++++++
Adev-lang/elixir/files/elixir-1.10.3-epmd-daemon.patch13+++++++++++++
Adev-lang/elixir/files/elixir-1.10.3-no-Q.patch12++++++++++++
Adev-lang/elixir/files/elixir-1.9.1-disable-network-tests.patch20++++++++++++++++++++
Adev-lang/elixir/metadata.xml26++++++++++++++++++++++++++
6 files changed, 109 insertions(+), 0 deletions(-)

diff --git a/dev-lang/elixir/Manifest b/dev-lang/elixir/Manifest @@ -0,0 +1 @@ +DIST elixir-1.13.0.tar.gz 2917741 BLAKE2B ada9d5fad24569320f6e59bda0fe4d813fb16ac5ecb985336a8a8087c88b9d30087682d2c807b0be4e49efdc78b27864c04a7a68a1e7bf0bb9b2a08dddd534b4 SHA512 7ec84639ff6c557a58f709ae6d1dccccec4f3fd9c808ca5b96300c2c00837f1617457a56fa4e96b0084c2e6625f1e81c161c963580c837186a60a48cb0d363c6 diff --git a/dev-lang/elixir/elixir-1.13.0.ebuild b/dev-lang/elixir/elixir-1.13.0.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Elixir programming language" +HOMEPAGE="https://elixir-lang.org" +SRC_URI="https://github.com/elixir-lang/elixir/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0 ErlPL-1.1" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~sparc ~x86" +IUSE="test" + +RESTRICT="!test? ( test )" + +DEPEND=" + >=dev-lang/erlang-22:0=[ssl] +" +# 'mix' tool collides with sci-biology/phylip, bug #537514 +RDEPEND="${DEPEND} + !!sci-biology/phylip +" +DEPEND+=" + test? ( dev-vcs/git ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-1.9.1-disable-network-tests.patch + "${FILESDIR}"/${PN}-1.10.3-no-Q.patch + "${FILESDIR}"/${PN}-1.10.3-epmd-daemon.patch +) + +src_install() { + emake DESTDIR="${D}" LIBDIR="$(get_libdir)" PREFIX="${EPREFIX}/usr" install + dodoc README.md CHANGELOG.md CODE_OF_CONDUCT.md +} diff --git a/dev-lang/elixir/files/elixir-1.10.3-epmd-daemon.patch b/dev-lang/elixir/files/elixir-1.10.3-epmd-daemon.patch @@ -0,0 +1,13 @@ +Avoid exec/SIGCHLD race in daemon fork. +Let's see if it fixes race seen in https://bugs.gentoo.org/727344 +--- a/Makefile ++++ b/Makefile +@@ -280,7 +280,7 @@ test_elixir: test_stdlib test_ex_unit test_logger test_mix test_eex test_iex + + test_stdlib: compile + @ echo "==> elixir (ex_unit)" +- $(Q) exec epmd & exit ++ $(Q) epmd -daemon + $(Q) if [ "$(OS)" = "Windows_NT" ]; then \ + cd lib/elixir && cmd //C call ../../bin/elixir.bat -r "test/elixir/test_helper.exs" -pr "test/elixir/**/$(TEST_FILES)"; \ + else \ diff --git a/dev-lang/elixir/files/elixir-1.10.3-no-Q.patch b/dev-lang/elixir/files/elixir-1.10.3-no-Q.patch @@ -0,0 +1,12 @@ +Enable verbose builds by default. +--- a/Makefile ++++ b/Makefile +@@ -8,7 +8,7 @@ ERLC := erlc -I lib/elixir/include $(ERLC_OPTS) + ERL := erl -I lib/elixir/include -noshell -pa lib/elixir/ebin + GENERATE_APP := $(CURDIR)/lib/elixir/generate_app.escript + VERSION := $(strip $(shell cat VERSION)) +-Q := @ ++Q := + LIBDIR := lib + BINDIR := bin + INSTALL = install diff --git a/dev-lang/elixir/files/elixir-1.9.1-disable-network-tests.patch b/dev-lang/elixir/files/elixir-1.9.1-disable-network-tests.patch @@ -0,0 +1,20 @@ +diff --git a/lib/mix/test/mix/tasks/release_test.exs b/lib/mix/test/mix/tasks/release_test.exs +index f200c3e..9b2c75c 100644 +--- a/lib/mix/test/mix/tasks/release_test.exs ++++ b/lib/mix/test/mix/tasks/release_test.exs +@@ -268,6 +268,7 @@ defmodule Mix.Tasks.ReleaseTest do + end) + end + ++ @tag :skip + @tag :epmd + test "executes rpc instructions" do + in_fixture("release_test", fn -> +@@ -333,6 +334,7 @@ defmodule Mix.Tasks.ReleaseTest do + end) + end + ++ @tag :skip + @tag :unix + test "runs in daemon mode" do + in_fixture("release_test", fn -> diff --git a/dev-lang/elixir/metadata.xml b/dev-lang/elixir/metadata.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person" proxied="yes"> + <email>styx.mp@gmail.com</email> + <name>Mikhail</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <upstream> + <bugs-to> + https://github.com/elixir-lang/elixir/issues + </bugs-to> + <changelog> + https://github.com/elixir-lang/elixir/blob/master/CHANGELOG.md + </changelog> + <doc lang="en"> + http://elixir-lang.org/docs.html + </doc> + <remote-id type="github"> + elixir-lang/elixir + </remote-id> + </upstream> +</pkgmetadata>