emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#53708: closed ([PATCH] Fix Elixir substitution error)


From: GNU bug Tracking System
Subject: bug#53708: closed ([PATCH] Fix Elixir substitution error)
Date: Mon, 14 Feb 2022 14:52:02 +0000

Your message dated Mon, 14 Feb 2022 15:51:15 +0100
with message-id <87wnhxwlgc.fsf@gnu.org>
and subject line Re: bug#53708: [PATCH] Fix Elixir substitution error
has caused the debbugs.gnu.org bug report #53708,
regarding [PATCH] Fix Elixir substitution error
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
53708: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=53708
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] Fix Elixir substitution error Date: Tue, 01 Feb 2022 19:16:52 +0000
>From d9860a374c5b6e5b992439a232e6897bfde1e334 Mon Sep 17 00:00:00 2001
From: Cees de Groot <cg@evrl.com>
Date: Tue, 1 Feb 2022 14:12:17 -0500
Subject: [PATCH] Fix regex for ERTS_BIN substitution in Elixir

Something must have gone wrong during testing of the ELixir 1.13.2 patch I 
submitted last week. Apart from #53707, I also found out that the whole 
substitution regex did not work. This works better - it is still more brittle 
than I like, but apparently `substitute*`
does not work with fully anchored regexes.


---
 gnu/packages/elixir.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/packages/elixir.scm b/gnu/packages/elixir.scm
index fae8279e5c..55e17f2901 100644
--- a/gnu/packages/elixir.scm
+++ b/gnu/packages/elixir.scm
@@ -70,7 +70,7 @@ (define-public elixir
                 (("#!/bin/sh")
                  (string-append "#!" (search-input-file inputs "/bin/sh"))))
               (substitute* "bin/elixir"
-                (("^ERTS_BIN=$")
+                (("ERTS_BIN=\n")
                  (string-append
                   "ERTS_BIN="
                   ;; Elixir Releases will prepend to ERTS_BIN the path of
--
2.34.0




--- End Message ---
--- Begin Message --- Subject: Re: bug#53708: [PATCH] Fix Elixir substitution error Date: Mon, 14 Feb 2022 15:51:15 +0100 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Hi,

Cees de Groot <cg@evrl.com> skribis:

>>From d9860a374c5b6e5b992439a232e6897bfde1e334 Mon Sep 17 00:00:00 2001
> From: Cees de Groot <cg@evrl.com>
> Date: Tue, 1 Feb 2022 14:12:17 -0500
> Subject: [PATCH] Fix regex for ERTS_BIN substitution in Elixir
>
> Something must have gone wrong during testing of the ELixir 1.13.2 patch I 
> submitted last week. Apart from #53707, I also found out that the whole 
> substitution regex did not work. This works better - it is still more brittle 
> than I like, but apparently `substitute*`
> does not work with fully anchored regexes.

I adjusted the commit log and applied it.

Thanks!

Ludo’.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]