Source: elixir-lang Version: 1.12.2.dfsg-2 Severity: important Tags: ftbfs patch upstream
Dear Maintainer, Currently, elixir-lang fails to build from the source in unstable, because one of its tests fails. See the result [1] from the autopkgtest for details. The problem is not in Elixir itself, but in the test which relies on a specific error message from calling a non-existing function. When building with Erlang 24.1, the error message has changed, so test fails. The attached patch adapts this test to the current error message. Also, I've bumped the build dependencies to Erlang 24.1 (with the new test elixir-land will FTBFS with the older Erlang). If you think it's appropriate, I could do NMU with the proposed changes. Cheers! [1] https://ci.debian.net/data/autopkgtest/testing/amd64/e/elixir-lang/15916413/log.gz -- System Information: Debian Release: 11.1 APT prefers stable-security APT policy: (500, 'stable-security'), (500, 'stable-debug'), (500, 'proposed-updates'), (500, 'stable'), (500, 'oldstable'), (1, 'experimental'), (1, 'unstable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.10.0-8-amd64 (SMP w/12 CPU threads) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system)
diff -Nru elixir-lang-1.12.2.dfsg/debian/changelog elixir-lang-1.12.2.dfsg/debian/changelog --- elixir-lang-1.12.2.dfsg/debian/changelog 2021-08-24 16:41:05.000000000 +0300 +++ elixir-lang-1.12.2.dfsg/debian/changelog 2021-10-12 14:42:36.000000000 +0300 @@ -1,3 +1,9 @@ +elixir-lang (1.12.2.dfsg-2.1) unstable; urgency=medium + + * Fix a test to build with erlang 24.1. + + -- Sergei Golovan <sgolo...@debian.org> Tue, 12 Oct 2021 14:42:36 +0300 + elixir-lang (1.12.2.dfsg-2) unstable; urgency=medium * Fix debian/watch diff -Nru elixir-lang-1.12.2.dfsg/debian/control elixir-lang-1.12.2.dfsg/debian/control --- elixir-lang-1.12.2.dfsg/debian/control 2021-08-24 16:41:05.000000000 +0300 +++ elixir-lang-1.12.2.dfsg/debian/control 2021-10-12 14:42:36.000000000 +0300 @@ -3,12 +3,12 @@ Priority: optional Maintainer: Evgeny Golyshev <euguli...@gmail.com> Build-Depends: debhelper-compat (= 13), - erlang-crypto (>= 1:22), - erlang-dev (>= 1:22), - erlang-dialyzer (>= 1:22), - erlang-eunit (>= 1:22), - erlang-parsetools (>= 1:22), - erlang-src (>= 1:22), + erlang-crypto (>= 1:24.1), + erlang-dev (>= 1:24.1), + erlang-dialyzer (>= 1:24.1), + erlang-eunit (>= 1:24.1), + erlang-parsetools (>= 1:24.1), + erlang-src (>= 1:24.1), git, rebar Standards-Version: 4.6.0 diff -Nru elixir-lang-1.12.2.dfsg/debian/patches/erlang-24.1.patch elixir-lang-1.12.2.dfsg/debian/patches/erlang-24.1.patch --- elixir-lang-1.12.2.dfsg/debian/patches/erlang-24.1.patch 1970-01-01 03:00:00.000000000 +0300 +++ elixir-lang-1.12.2.dfsg/debian/patches/erlang-24.1.patch 2021-10-12 14:42:36.000000000 +0300 @@ -0,0 +1,15 @@ +Author: Sergei Golovan <sgolo...@debian.org> +Description: Patch adapts the asserted error message to Erlang 24.1 +Last-Modified: Tue, 12 Oct 2021 14:48:53 +0300 + +--- a/lib/elixir/test/elixir/exception_test.exs ++++ b/lib/elixir/test/elixir/exception_test.exs +@@ -474,6 +474,8 @@ + function :erlang.gt_cookie/0 is undefined or private. Did you mean one of: + + * get_cookie/0 ++ * get_cookie/1 ++ * set_cookie/1 + * set_cookie/2 + """ + end diff -Nru elixir-lang-1.12.2.dfsg/debian/patches/series elixir-lang-1.12.2.dfsg/debian/patches/series --- elixir-lang-1.12.2.dfsg/debian/patches/series 2021-08-24 16:41:05.000000000 +0300 +++ elixir-lang-1.12.2.dfsg/debian/patches/series 2021-10-12 14:42:36.000000000 +0300 @@ -1,2 +1,3 @@ remove-utf8-warning.patch remove_rebar3_related_tests.patch +erlang-24.1.patch