GNU bug report logs - #71707
[PATCH 00/15] Updates and fixes for elixir and dependents

Previous Next

Package: guix-patches;

Reported by: Igor Goryachev <igor <at> goryachev.org>

Date: Fri, 21 Jun 2024 18:52:02 UTC

Severity: normal

Tags: patch

Done: Andrew Tropin <andrew <at> trop.in>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 71707 <at> debbugs.gnu.org (full text, mbox):

From: Igor Goryachev <igor <at> goryachev.org>
To: 71707 <at> debbugs.gnu.org
Cc: Igor Goryachev <igor <at> goryachev.org>, Andrew Tropin <andrew <at> trop.in>
Subject: [PATCH 01/15] gnu: elixir: Fix mix substitute.
Date: Fri, 21 Jun 2024 22:01:07 +0300
* gnu/packages/elixir.scm (elixir): Fix mix substitute.

Change-Id: I02d5849409dfbc624fcbe76b0a06b88e2ff8f4f2
---
 gnu/packages/elixir.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/elixir.scm b/gnu/packages/elixir.scm
index e3051a8275..ace067aa47 100644
--- a/gnu/packages/elixir.scm
+++ b/gnu/packages/elixir.scm
@@ -136,7 +136,7 @@ (define-public elixir
                   ;; program, for example `iex -S mix`, so we should not wrap
                   ;; mix into shell script.
                   (substitute* (string-append out "/bin/mix")
-                    (("Mix.start\\(\\)")
+                    (("Mix.CLI.main\\(\\)")
                      (format #f "\
 ~~w[GUIX_ELIXIR_LIBS ERL_LIBS]
 |> Enum.map(&System.get_env/1)
@@ -144,7 +144,7 @@ (define-public elixir
 |> Enum.join(\":\")
 |> case do \"\" -> :ok; erl_libs -> System.put_env(\"ERL_LIBS\", erl_libs) end
 System.put_env(\"MIX_REBAR3\", System.get_env(\"MIX_REBAR3\", \"~a\"))
-Mix.start()"
+Mix.CLI.main()"
                              (search-input-file inputs "/bin/rebar3"))))
                   (for-each
                    (lambda (program)
-- 
2.45.1





This bug report was last modified 319 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.