From unknown Mon Jun 23 02:22:20 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#75008] [PATCH] gnu: elixir: Update to 1.18.0. Resent-From: Igor Goryachev Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 21 Dec 2024 16:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 75008 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 75008@debbugs.gnu.org Cc: Igor Goryachev , Zheng Junjie X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.173479757311112 (code B ref -1); Sat, 21 Dec 2024 16:13:01 +0000 Received: (at submit) by debbugs.gnu.org; 21 Dec 2024 16:12:53 +0000 Received: from localhost ([127.0.0.1]:47393 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tP260-0002tA-St for submit@debbugs.gnu.org; Sat, 21 Dec 2024 11:12:53 -0500 Received: from lists.gnu.org ([209.51.188.17]:44868) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tP25z-0002t2-0w for submit@debbugs.gnu.org; Sat, 21 Dec 2024 11:12:51 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tP25x-0001jC-Kg for guix-patches@gnu.org; Sat, 21 Dec 2024 11:12:50 -0500 Received: from mail.goryachev.org ([213.199.41.95]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tP25u-0002Fc-0t for guix-patches@gnu.org; Sat, 21 Dec 2024 11:12:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=dkim; bh=eQqw6XbGEDE0V3O ip5gvNPpws5yvhUzuP2yE2lj8+rU=; h=date:subject:cc:to:from; d=goryachev.org; b=KkO+UQYRV/Ub3YYCwninydcjYfa8v1D8Wpxws3VD37HuWPNveR8 TXEUDhKAhoLpLMGxrxN6qhMUI+reKLrVlhaCxnm+mr8nyU0dpb2yi8tvQAuzajw4gxhY8j oVFqLWp9QaeMjsJEF11jkM2zkvpRHHNCFtwRwuPGG4svRPVmdY= Received: by mail.goryachev.org (OpenSMTPD) with ESMTPSA id ee5d241f (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sat, 21 Dec 2024 16:13:15 +0000 (UTC) From: Igor Goryachev Date: Sat, 21 Dec 2024 18:12:23 +0200 Message-ID: <4bb69681f5bcbd6b055f89d6f4a9776cdd5b1d8c.1734797543.git.igor@goryachev.org> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=213.199.41.95; envelope-from=igor@goryachev.org; helo=mail.goryachev.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) * gnu/packages/elixir.scm (elixir): Update to 1.18.0. [arguments]: Remove obsolete code, reindent comments, make more deterministic. Change-Id: I6cf8886339cbc4627fb5d89751462b492e7c62f3 --- gnu/packages/elixir.scm | 37 +++++++++++++++++-------------------- 1 file changed, 17 insertions(+), 20 deletions(-) diff --git a/gnu/packages/elixir.scm b/gnu/packages/elixir.scm index 459e160830..eb6146cb11 100644 --- a/gnu/packages/elixir.scm +++ b/gnu/packages/elixir.scm @@ -41,7 +41,7 @@ (define-module (gnu packages elixir) (define-public elixir (package (name "elixir") - (version "1.17.3") + (version "1.18.0") (source (origin (method git-fetch) @@ -50,7 +50,7 @@ (define-public elixir (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "171l6g304044yk6i0827hgl64vp122ygn1wa1xqdjhw08b5kl2pd")) + (base32 "1ki5wfkdidgkvcm3r6b547gkdpchah4r6z0y96frzf5f3prcjgbx")) (patches (search-patches "elixir-path-length.patch")))) (build-system gnu-build-system) (arguments @@ -95,9 +95,9 @@ (define-public elixir (copy-recursively "lib" (string-append (assoc-ref outputs "src") "/source/lib")))) - ;; Temporarily patch the compiler to place correct source - ;; locations into module info instead of build directory. (add-after 'pre-install-source 'patch-elixir-compiler + ;; Temporarily patch the compiler to place correct source + ;; locations into module info instead of build directory. (lambda* (#:key outputs #:allow-other-keys) (copy-recursively compiler-path compiler-path-orig) (let ((source (string-append "/tmp/guix-build-" #$name "-" @@ -107,7 +107,18 @@ (define-public elixir (("source, Source") (string-append "source, string:replace(Source, \"" source "\", \"" destination "\")")))))) - (add-before 'build 'make-current + (add-before 'build 'set-deterministic + (lambda _ + ;; Set deterministic compiler option. + (setenv "ERL_COMPILER_OPTIONS" "deterministic"))) + (add-after 'build 'restore-and-recompile + ;; Unpatch the compiler and recompile it. + (lambda _ + (copy-recursively compiler-path-orig compiler-path) + (delete-file compiler-path-orig) + (invoke "erlc" "-I" "lib/elixir/include" + "-o" "lib/elixir/ebin" compiler-path))) + (add-after 'restore-and-recompile 'make-current ;; The Elixir compiler checks whether or not to compile files ;; by inspecting their timestamps. When the timestamp is ;; equal to the epoch no compilation will be performed. Some @@ -117,24 +128,10 @@ (define-public elixir (let ((recent 1400000000)) (utime file recent recent 0 0))) (find-files "." ".*")))) - ;; Unpatch the compiler and recompile it. - (add-after 'build 'restore-and-recompile - (lambda _ - (copy-recursively compiler-path-orig compiler-path) - (delete-file compiler-path-orig) - (invoke "make"))) (add-before 'check 'set-home - (lambda* (#:key inputs #:allow-other-keys) + (lambda _ ;; Some tests require access to a home directory. (setenv "HOME" "/tmp"))) - ;; Temporarily skip several tests related to logger to pass - ;; under Erlang 27.1. For more info see: - ;; https://elixirforum.com/t/elixir-v1-17-3-released/66156/2 - (add-before 'check 'disable-some-logger-tests-for-erlang-27.1+ - (lambda _ - (substitute* "lib/logger/test/logger/translator_test.exs" - (("test \"translates Supervisor progress") - "@tag :skip\n test \"translates Supervisor progress")))) (delete 'configure) (add-after 'install 'wrap-programs (lambda* (#:key inputs outputs #:allow-other-keys) base-commit: 11855e1c2863c56d9a3364cdac614a529a1c7cc2 -- 2.46.0 From unknown Mon Jun 23 02:22:20 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Igor Goryachev Subject: bug#75008: closed (Re: [bug#75008] [PATCH] gnu: elixir: Update to 1.18.0.) Message-ID: References: <87msg6nrpv.fsf@gnu.org> <4bb69681f5bcbd6b055f89d6f4a9776cdd5b1d8c.1734797543.git.igor@goryachev.org> X-Gnu-PR-Message: they-closed 75008 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 75008@debbugs.gnu.org Date: Sat, 04 Jan 2025 22:25:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1736029502-32401-1" This is a multi-part message in MIME format... ------------=_1736029502-32401-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #75008: [PATCH] gnu: elixir: Update to 1.18.0. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 75008@debbugs.gnu.org. --=20 75008: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D75008 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1736029502-32401-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 75008-done) by debbugs.gnu.org; 4 Jan 2025 22:24:33 +0000 Received: from localhost ([127.0.0.1]:57830 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tUCZN-0008Pm-1a for submit@debbugs.gnu.org; Sat, 04 Jan 2025 17:24:33 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:46444) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tUCZL-0008PW-6l for 75008-done@debbugs.gnu.org; Sat, 04 Jan 2025 17:24:31 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tUCZD-0008Un-7s; Sat, 04 Jan 2025 17:24:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=BDq97u7u4cGCgGK9huYl/1wam2xLdGdoMV3IKAXlY9E=; b=sIpf4jjgQL1cRPcpMqbS RWJhgLC/2UcRVzozaS8ojLVEUxKHVJDT0whNYhaXxZrXrDJYAN4jPZEca23/bVDNuEEVP7DnsbBCv Me2TvznUnslNPkrZ03FRxqBfrNF2bzMLVNirYSNLEQ9SmbJxez94b7NWyaUntSUvUKid9XmqF+hMx 8m4EfPmyzmjj2muzESxdJmXX3jofVC1c7MlDiogElhaUFTDBsUx/Z1j0+SFQoGhVFjtNzt5ROtd/u AY04T1QqMxAgsLQxYsgsTlHeKDbcY7pGiEnDBh350GCpOmQfXaMmBjn71yc9/opYKdK5yv/khvLTc vpQ+yfJghRDQZg==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Igor Goryachev Subject: Re: [bug#75008] [PATCH] gnu: elixir: Update to 1.18.0. In-Reply-To: <4bb69681f5bcbd6b055f89d6f4a9776cdd5b1d8c.1734797543.git.igor@goryachev.org> (Igor Goryachev's message of "Sat, 21 Dec 2024 18:12:23 +0200") References: <4bb69681f5bcbd6b055f89d6f4a9776cdd5b1d8c.1734797543.git.igor@goryachev.org> Date: Sat, 04 Jan 2025 23:23:40 +0100 Message-ID: <87msg6nrpv.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 75008-done Cc: 75008-done@debbugs.gnu.org, Zheng Junjie X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Igor Goryachev skribis: > * gnu/packages/elixir.scm (elixir): Update to 1.18.0. > [arguments]: Remove obsolete code, reindent comments, make more deterministic. > > Change-Id: I6cf8886339cbc4627fb5d89751462b492e7c62f3 Applied, thanks! ------------=_1736029502-32401-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 21 Dec 2024 16:12:53 +0000 Received: from localhost ([127.0.0.1]:47393 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tP260-0002tA-St for submit@debbugs.gnu.org; Sat, 21 Dec 2024 11:12:53 -0500 Received: from lists.gnu.org ([209.51.188.17]:44868) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tP25z-0002t2-0w for submit@debbugs.gnu.org; Sat, 21 Dec 2024 11:12:51 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tP25x-0001jC-Kg for guix-patches@gnu.org; Sat, 21 Dec 2024 11:12:50 -0500 Received: from mail.goryachev.org ([213.199.41.95]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tP25u-0002Fc-0t for guix-patches@gnu.org; Sat, 21 Dec 2024 11:12:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=dkim; bh=eQqw6XbGEDE0V3O ip5gvNPpws5yvhUzuP2yE2lj8+rU=; h=date:subject:cc:to:from; d=goryachev.org; b=KkO+UQYRV/Ub3YYCwninydcjYfa8v1D8Wpxws3VD37HuWPNveR8 TXEUDhKAhoLpLMGxrxN6qhMUI+reKLrVlhaCxnm+mr8nyU0dpb2yi8tvQAuzajw4gxhY8j oVFqLWp9QaeMjsJEF11jkM2zkvpRHHNCFtwRwuPGG4svRPVmdY= Received: by mail.goryachev.org (OpenSMTPD) with ESMTPSA id ee5d241f (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sat, 21 Dec 2024 16:13:15 +0000 (UTC) From: Igor Goryachev To: guix-patches@gnu.org Subject: [PATCH] gnu: elixir: Update to 1.18.0. Date: Sat, 21 Dec 2024 18:12:23 +0200 Message-ID: <4bb69681f5bcbd6b055f89d6f4a9776cdd5b1d8c.1734797543.git.igor@goryachev.org> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=213.199.41.95; envelope-from=igor@goryachev.org; helo=mail.goryachev.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: Igor Goryachev , Zheng Junjie X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) * gnu/packages/elixir.scm (elixir): Update to 1.18.0. [arguments]: Remove obsolete code, reindent comments, make more deterministic. Change-Id: I6cf8886339cbc4627fb5d89751462b492e7c62f3 --- gnu/packages/elixir.scm | 37 +++++++++++++++++-------------------- 1 file changed, 17 insertions(+), 20 deletions(-) diff --git a/gnu/packages/elixir.scm b/gnu/packages/elixir.scm index 459e160830..eb6146cb11 100644 --- a/gnu/packages/elixir.scm +++ b/gnu/packages/elixir.scm @@ -41,7 +41,7 @@ (define-module (gnu packages elixir) (define-public elixir (package (name "elixir") - (version "1.17.3") + (version "1.18.0") (source (origin (method git-fetch) @@ -50,7 +50,7 @@ (define-public elixir (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "171l6g304044yk6i0827hgl64vp122ygn1wa1xqdjhw08b5kl2pd")) + (base32 "1ki5wfkdidgkvcm3r6b547gkdpchah4r6z0y96frzf5f3prcjgbx")) (patches (search-patches "elixir-path-length.patch")))) (build-system gnu-build-system) (arguments @@ -95,9 +95,9 @@ (define-public elixir (copy-recursively "lib" (string-append (assoc-ref outputs "src") "/source/lib")))) - ;; Temporarily patch the compiler to place correct source - ;; locations into module info instead of build directory. (add-after 'pre-install-source 'patch-elixir-compiler + ;; Temporarily patch the compiler to place correct source + ;; locations into module info instead of build directory. (lambda* (#:key outputs #:allow-other-keys) (copy-recursively compiler-path compiler-path-orig) (let ((source (string-append "/tmp/guix-build-" #$name "-" @@ -107,7 +107,18 @@ (define-public elixir (("source, Source") (string-append "source, string:replace(Source, \"" source "\", \"" destination "\")")))))) - (add-before 'build 'make-current + (add-before 'build 'set-deterministic + (lambda _ + ;; Set deterministic compiler option. + (setenv "ERL_COMPILER_OPTIONS" "deterministic"))) + (add-after 'build 'restore-and-recompile + ;; Unpatch the compiler and recompile it. + (lambda _ + (copy-recursively compiler-path-orig compiler-path) + (delete-file compiler-path-orig) + (invoke "erlc" "-I" "lib/elixir/include" + "-o" "lib/elixir/ebin" compiler-path))) + (add-after 'restore-and-recompile 'make-current ;; The Elixir compiler checks whether or not to compile files ;; by inspecting their timestamps. When the timestamp is ;; equal to the epoch no compilation will be performed. Some @@ -117,24 +128,10 @@ (define-public elixir (let ((recent 1400000000)) (utime file recent recent 0 0))) (find-files "." ".*")))) - ;; Unpatch the compiler and recompile it. - (add-after 'build 'restore-and-recompile - (lambda _ - (copy-recursively compiler-path-orig compiler-path) - (delete-file compiler-path-orig) - (invoke "make"))) (add-before 'check 'set-home - (lambda* (#:key inputs #:allow-other-keys) + (lambda _ ;; Some tests require access to a home directory. (setenv "HOME" "/tmp"))) - ;; Temporarily skip several tests related to logger to pass - ;; under Erlang 27.1. For more info see: - ;; https://elixirforum.com/t/elixir-v1-17-3-released/66156/2 - (add-before 'check 'disable-some-logger-tests-for-erlang-27.1+ - (lambda _ - (substitute* "lib/logger/test/logger/translator_test.exs" - (("test \"translates Supervisor progress") - "@tag :skip\n test \"translates Supervisor progress")))) (delete 'configure) (add-after 'install 'wrap-programs (lambda* (#:key inputs outputs #:allow-other-keys) base-commit: 11855e1c2863c56d9a3364cdac614a529a1c7cc2 -- 2.46.0 ------------=_1736029502-32401-1--