From unknown Sat Aug 09 13:22:44 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#69999] [PATCH] gnu: elixir: Update to 1.16.2. Resent-From: Leo =?UTF-8?Q?Nikkil=C3=A4?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 25 Mar 2024 17:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 69999 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69999@debbugs.gnu.org Cc: Leo =?UTF-8?Q?Nikkil=C3=A4?= X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.171138642422452 (code B ref -1); Mon, 25 Mar 2024 17:08:02 +0000 Received: (at submit) by debbugs.gnu.org; 25 Mar 2024 17:07:04 +0000 Received: from localhost ([127.0.0.1]:36086 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ronmn-0005pg-Cq for submit@debbugs.gnu.org; Mon, 25 Mar 2024 13:07:04 -0400 Received: from lists.gnu.org ([2001:470:142::17]:50554) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ronmi-0005pJ-9r for submit@debbugs.gnu.org; Mon, 25 Mar 2024 13:06:59 -0400 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 1ronmd-0005YL-OF for guix-patches@gnu.org; Mon, 25 Mar 2024 13:06:51 -0400 Received: from fout6-smtp.messagingengine.com ([103.168.172.149]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ronmb-0000R8-4D for guix-patches@gnu.org; Mon, 25 Mar 2024 13:06:51 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfout.nyi.internal (Postfix) with ESMTP id F0FE6138011A; Mon, 25 Mar 2024 13:06:45 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Mon, 25 Mar 2024 13:06:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lnikki.la; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:message-id:mime-version:reply-to :subject:subject:to:to; s=fm3; t=1711386405; x=1711472805; bh=iY 2wZGZf77UvvwqOcbUnIQN3lYbsr0cs+BPFSvdEY/g=; b=Mdc8t9e8zXITjmw+++ 64VxpZgVtRRZhV4sBd//5bzmVpYKy8bG2PLNca0JjL96dJvcnZLOJt62YvPMaC3f 19kHKypOzkp1uCmCn9SwRhaZlJNk5lKwfQJ5l5tTTA6W3uKk/MjzmE0UF0IJSWng 3eCFijtMfS2PPIkn12bCDI2m3sksGOHeKBETZr1CDlLGusEA0Vd53KdLvOZRIia1 eXRdZTi3GOmqua+dP/StV8z3SLb/fZvkMFtYjbiKCw6L5h4YO2BnsY5Vlk1iHYt3 7Kx019INUbALXLYzD1JdeN24WFoUdInTK78IL6bFV/3A2fAU9RNF7QZFlnh9si0c hUvA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:message-id:mime-version:reply-to:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1711386405; x=1711472805; bh=iY2wZGZf77Uvv wqOcbUnIQN3lYbsr0cs+BPFSvdEY/g=; b=maCb04RyKRQzwC2GfvMvgQ1fQVN/B MeR0IMwHQBjzyHYDMTd9VrYgJmMwHU3VYBogcm+/5kQ4tikm7GMJ2A3oBPRasizW rUUbF57y9szC5THUDTsErq9ugVHqIl80Mhe30XVOvXvEJFYv0HOQMH5S+5UMGtHy c9ZPTOqOi9z8qNKqpveR0bwxtG9SisRMV/fS1fWL+q1ATU8F+uK2BoYrmUPihPAM k79/S9hr0eBaBKkpHQBfVqqfUaI8GzlH6Bbfw9SiiSA29Ax7vcO4hEwk7OeQG8ZL Gl8E6k/BDvgWIiJ5uGSrhnkiY2uGsVyG8MivE65eXwxgs0XczRgAen9hA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudduuddgfeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffkffogggtgfesthekre dtredtjeenucfhrhhomhepnfgvohcupfhikhhkihhlmocuoehhvghllhhosehlnhhikhhk ihdrlhgrqeenucggtffrrghtthgvrhhnpedtffduheelveejtdevgffhieehhfeuudegie ehjeeghefgvdffgeejfedvtedvgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgr mhepmhgrihhlfhhrohhmpehhvghllhhosehlnhhikhhkihdrlhgr X-ME-Proxy: Feedback-ID: i41f146a7:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 25 Mar 2024 13:06:45 -0400 (EDT) From: Leo =?UTF-8?Q?Nikkil=C3=A4?= Date: Mon, 25 Mar 2024 19:05:51 +0200 Message-ID: <20240325170615.11487-1-hello@lnikki.la> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=103.168.172.149; envelope-from=hello@lnikki.la; helo=fout6-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) 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: -0.0 (/) * gnu/packages/patches/elixir-1.16-iex-tests.patch: New file. * gnu/packages/elixir.scm (elixir): Update to 1.16.2. Add patch. * gnu/local.mk (dist_patch_DATA): Register patch. --- gnu/local.mk | 1 + gnu/packages/elixir.scm | 10 ++- .../patches/elixir-1.16-iex-tests.patch | 88 +++++++++++++++++++ 3 files changed, 96 insertions(+), 3 deletions(-) create mode 100644 gnu/packages/patches/elixir-1.16-iex-tests.patch diff --git a/gnu/local.mk b/gnu/local.mk index 7f1006010b..e7a8298764 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1119,6 +1119,7 @@ dist_patch_DATA = \ %D%/packages/patches/eigen-fix-strict-aliasing-bug.patch \ %D%/packages/patches/einstein-build.patch \ %D%/packages/patches/elfutils-tests-ptrace.patch \ + %D%/packages/patches/elixir-1.16-iex-tests.patch \ %D%/packages/patches/elixir-path-length.patch \ %D%/packages/patches/elm-ghc9.2.patch \ %D%/packages/patches/elm-offline-package-registry.patch \ diff --git a/gnu/packages/elixir.scm b/gnu/packages/elixir.scm index 2885ddbd61..6aace1c01e 100644 --- a/gnu/packages/elixir.scm +++ b/gnu/packages/elixir.scm @@ -9,6 +9,7 @@ ;;; Copyright © 2021 Cees de Groot ;;; Copyright © 2024 Andrew Tropin ;;; Copyright © 2024 Ivan Sokolov +;;; Copyright © 2024 Leo Nikkilä ;;; ;;; This file is part of GNU Guix. ;;; @@ -39,7 +40,7 @@ (define-module (gnu packages elixir) (define-public elixir (package (name "elixir") - (version "1.14.0") + (version "1.16.2") (source (origin (method git-fetch) @@ -48,8 +49,11 @@ (define-public elixir (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "16rc4qaykddda6ax5f8zw70yhapgwraqbgx5gp3f40dvfax3d51l")) - (patches (search-patches "elixir-path-length.patch")))) + (base32 "145lwbwpyj686rq3xkzg4i07v0z8x2j185aa2lvyj5ppzv2ihiim")) + (patches (search-patches "elixir-path-length.patch" + ;; This patch has been merged and should + ;; be included in the next version. + "elixir-1.16-iex-tests.patch")))) (build-system gnu-build-system) (arguments (list diff --git a/gnu/packages/patches/elixir-1.16-iex-tests.patch b/gnu/packages/patches/elixir-1.16-iex-tests.patch new file mode 100644 index 0000000000..d190036764 --- /dev/null +++ b/gnu/packages/patches/elixir-1.16-iex-tests.patch @@ -0,0 +1,88 @@ +From d17df054e21795637d5d265e3e37c4791404e6b2 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Jos=C3=A9=20Valim?= +Date: Thu, 8 Feb 2024 08:08:03 +0100 +Subject: [PATCH] Skip tests if Erlang was compiled without docs, closes #13322 + +--- + lib/iex/test/iex/helpers_test.exs | 12 +++++++++--- + lib/iex/test/test_helper.exs | 10 +++++++++- + 2 files changed, 18 insertions(+), 4 deletions(-) + +diff --git a/lib/iex/test/iex/helpers_test.exs b/lib/iex/test/iex/helpers_test.exs +index 18b19ddce56..56e8c014450 100644 +--- a/lib/iex/test/iex/helpers_test.exs ++++ b/lib/iex/test/iex/helpers_test.exs +@@ -332,17 +332,20 @@ defmodule IEx.HelpersTest do + assert help =~ "Welcome to Interactive Elixir" + end + ++ @tag :erlang_doc + test "prints Erlang module documentation" do + captured = capture_io(fn -> h(:timer) end) + assert captured =~ "This module provides useful functions related to time." + end + ++ @tag :erlang_doc + test "prints Erlang module function specs" do + captured = capture_io(fn -> h(:timer.sleep() / 1) end) + assert captured =~ ":timer.sleep/1" + assert captured =~ "-spec sleep(Time) -> ok when Time :: timeout()." + end + ++ @tag :erlang_doc + test "handles non-existing Erlang module function" do + captured = capture_io(fn -> h(:timer.baz() / 1) end) + assert captured =~ "No documentation for :timer.baz was found" +@@ -1008,13 +1011,15 @@ defmodule IEx.HelpersTest do + cleanup_modules([TypeSample]) + end + +- test "prints all types in erlang module" do ++ @tag :erlang_doc ++ test "prints all types in Erlang module" do + captured = capture_io(fn -> t(:queue) end) + assert captured =~ "-type queue() :: queue(_)" + assert captured =~ "-opaque queue(Item)" + end + +- test "prints single type from erlang module" do ++ @tag :erlang_doc ++ test "prints single type from Erlang module" do + captured = capture_io(fn -> t(:erlang.iovec()) end) + assert captured =~ "-type iovec() :: [binary()]" + assert captured =~ "A list of binaries." +@@ -1024,7 +1029,8 @@ defmodule IEx.HelpersTest do + assert captured =~ "A list of binaries." + end + +- test "handles non-existing types from erlang module" do ++ @tag :erlang_doc ++ test "handles non-existing types from Erlang module" do + captured = capture_io(fn -> t(:erlang.foo()) end) + assert captured =~ "No type information for :erlang.foo was found or :erlang.foo is private" + +diff --git a/lib/iex/test/test_helper.exs b/lib/iex/test/test_helper.exs +index f5a55f0aa80..b32c8be4e91 100644 +--- a/lib/iex/test/test_helper.exs ++++ b/lib/iex/test/test_helper.exs +@@ -7,11 +7,19 @@ IEx.configure(colors: [enabled: false]) + {line_exclude, line_include} = + if line = System.get_env("LINE"), do: {[:test], [line: line]}, else: {[], []} + ++erlang_doc_exclude = ++ if match?({:docs_v1, _, _, _, _, _, _}, Code.fetch_docs(:array)) do ++ [] ++ else ++ IO.puts("Erlang/OTP compiled without docs, some tests are excluded...") ++ [:erlang_doc] ++ end ++ + ExUnit.start( + assert_receive_timeout: assert_timeout, + trace: !!System.get_env("TRACE"), + include: line_include, +- exclude: line_exclude ++ exclude: line_exclude ++ erlang_doc_exclude + ) + + defmodule IEx.Case do -- 2.41.0 From unknown Sat Aug 09 13:22:44 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#69999] [PATCH] gnu: elixir: Update to 1.16.2. Resent-From: Zheng Junjie Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 05 Oct 2024 17:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69999 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69999@debbugs.gnu.org Cc: Leo =?UTF-8?Q?Nikkil=C3=A4?= , 69999-done@debbugs.gnu.org X-Debbugs-Original-To: Leo =?UTF-8?Q?Nikkil=C3=A4?= via Guix-patches via Received: via spool by submit@debbugs.gnu.org id=B.172815085020482 (code B ref -1); Sat, 05 Oct 2024 17:55:02 +0000 Received: (at submit) by debbugs.gnu.org; 5 Oct 2024 17:54:10 +0000 Received: from localhost ([127.0.0.1]:39579 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sx8ym-0005KG-T3 for submit@debbugs.gnu.org; Sat, 05 Oct 2024 13:54:10 -0400 Received: from lists.gnu.org ([209.51.188.17]:44596) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sx8yk-0005K8-Ku for submit@debbugs.gnu.org; Sat, 05 Oct 2024 13:54:07 -0400 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 1sx8yf-0003nN-65 for guix-patches@gnu.org; Sat, 05 Oct 2024 13:54:01 -0400 Received: from smtp84.cstnet.cn ([159.226.251.84] helo=cstnet.cn) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1sx8ya-0006Ob-Bn for guix-patches@gnu.org; Sat, 05 Oct 2024 13:54:00 -0400 Received: from m (unknown [107.174.64.25]) by APP-05 (Coremail) with SMTP id zQCowABXqGwnfQFnVAn4Aw--.58584S2; Sun, 06 Oct 2024 01:53:46 +0800 (CST) From: Zheng Junjie In-Reply-To: <20240325170615.11487-1-hello@lnikki.la> ("Leo =?UTF-8?Q?Nikkil=C3=A4?= via Guix-patches via"'s message of "Mon, 25 Mar 2024 19:05:51 +0200") References: <20240325170615.11487-1-hello@lnikki.la> Date: Sun, 06 Oct 2024 01:53:41 +0800 Message-ID: <874j5qtp0a.fsf@iscas.ac.cn> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-CM-TRANSID: zQCowABXqGwnfQFnVAn4Aw--.58584S2 X-Coremail-Antispam: 1UD129KBjvJXoWxuw15GryUAF47Wry3Kr17Wrg_yoWxJw4rpF 4xJF1Ykw4Iyr1xJan7Gr12vw15Ww47CFWIgry2qryakrWq9w1jqr48Kay5CF1fGrs5Wa43 ua48trWrGFy3AFJanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUvlb7Iv0xC_Kw4lb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I2 0VC2zVCF04k26cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rw A2F7IY1VAKz4vEj48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Jr0_JF4l84ACjcxK6xII jxv20xvEc7CjxVAFwI0_Jr0_Gr1l84ACjcxK6I8E87Iv67AKxVWUJVW8JwA2z4x0Y4vEx4 A2jsIEc7CjxVAFwI0_Gr0_Gr1UM2vj62AExVA0xI801c8C04v26x02cVCv0xWle2I262IY c4CY6c8Ij28IcVAaY2xG8wASzI0EjI02j7AqF2xKxwAqx4xG64xvF2IEw4CE5I8CrVC2j2 WlYx0E2Ix0cI8IcVAFwI0_Jrv_JF1lYx0Ex4A2jsIE14v26r1j6r4UMcvjeVCFs4IE7xkE bVWUJVW8JwACjcxG0xvEwIxGrwCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJV W8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF 1VAFwI0_Jrv_JF1lIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6x IIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcVCF04k26cxKx2IYs7xG6r1j6r1xMIIF0xvE x4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvj DU0xZFpf9x07jMJPiUUUUU= X-Originating-IP: [107.174.64.25] X-CM-SenderInfo: x2kh0wxmxqyx3h6l2u1dvotugofq/ Received-SPF: pass client-ip=159.226.251.84; envelope-from=zhengjunjie@iscas.ac.cn; helo=cstnet.cn X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) 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.4 (--) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Leo Nikkil=C3=A4 via Guix-patches via writes: > * gnu/packages/patches/elixir-1.16-iex-tests.patch: New file. > * gnu/packages/elixir.scm (elixir): Update to 1.16.2. Add patch. > * gnu/local.mk (dist_patch_DATA): Register patch. > --- > gnu/local.mk | 1 + > gnu/packages/elixir.scm | 10 ++- > .../patches/elixir-1.16-iex-tests.patch | 88 +++++++++++++++++++ > 3 files changed, 96 insertions(+), 3 deletions(-) > create mode 100644 gnu/packages/patches/elixir-1.16-iex-tests.patch > > diff --git a/gnu/local.mk b/gnu/local.mk > index 7f1006010b..e7a8298764 100644 > --- a/gnu/local.mk > +++ b/gnu/local.mk > @@ -1119,6 +1119,7 @@ dist_patch_DATA =3D \ > %D%/packages/patches/eigen-fix-strict-aliasing-bug.patch \ > %D%/packages/patches/einstein-build.patch \ > %D%/packages/patches/elfutils-tests-ptrace.patch \ > + %D%/packages/patches/elixir-1.16-iex-tests.patch \ > %D%/packages/patches/elixir-path-length.patch \ > %D%/packages/patches/elm-ghc9.2.patch \ > %D%/packages/patches/elm-offline-package-registry.patch \ > diff --git a/gnu/packages/elixir.scm b/gnu/packages/elixir.scm > index 2885ddbd61..6aace1c01e 100644 > --- a/gnu/packages/elixir.scm > +++ b/gnu/packages/elixir.scm > @@ -9,6 +9,7 @@ > ;;; Copyright =C2=A9 2021 Cees de Groot > ;;; Copyright =C2=A9 2024 Andrew Tropin > ;;; Copyright =C2=A9 2024 Ivan Sokolov > +;;; Copyright =C2=A9 2024 Leo Nikkil=C3=A4 > ;;; > ;;; This file is part of GNU Guix. > ;;; > @@ -39,7 +40,7 @@ (define-module (gnu packages elixir) > (define-public elixir > (package > (name "elixir") > - (version "1.14.0") > + (version "1.16.2") > (source > (origin > (method git-fetch) > @@ -48,8 +49,11 @@ (define-public elixir > (commit (string-append "v" version)))) > (file-name (git-file-name name version)) > (sha256 > - (base32 "16rc4qaykddda6ax5f8zw70yhapgwraqbgx5gp3f40dvfax3d51l")) > - (patches (search-patches "elixir-path-length.patch")))) > + (base32 "145lwbwpyj686rq3xkzg4i07v0z8x2j185aa2lvyj5ppzv2ihiim")) > + (patches (search-patches "elixir-path-length.patch" > + ;; This patch has been merged and should > + ;; be included in the next version. > + "elixir-1.16-iex-tests.patch")))) > (build-system gnu-build-system) > (arguments > (list > diff --git a/gnu/packages/patches/elixir-1.16-iex-tests.patch b/gnu/packa= ges/patches/elixir-1.16-iex-tests.patch > new file mode 100644 > index 0000000000..d190036764 > --- /dev/null > +++ b/gnu/packages/patches/elixir-1.16-iex-tests.patch > @@ -0,0 +1,88 @@ > +From d17df054e21795637d5d265e3e37c4791404e6b2 Mon Sep 17 00:00:00 2001 > +From: =3D?UTF-8?q?Jos=3DC3=3DA9=3D20Valim?=3D > +Date: Thu, 8 Feb 2024 08:08:03 +0100 > +Subject: [PATCH] Skip tests if Erlang was compiled without docs, closes = #13322 > + > +--- > + lib/iex/test/iex/helpers_test.exs | 12 +++++++++--- > + lib/iex/test/test_helper.exs | 10 +++++++++- > + 2 files changed, 18 insertions(+), 4 deletions(-) > + > +diff --git a/lib/iex/test/iex/helpers_test.exs b/lib/iex/test/iex/helper= s_test.exs > +index 18b19ddce56..56e8c014450 100644 > +--- a/lib/iex/test/iex/helpers_test.exs > ++++ b/lib/iex/test/iex/helpers_test.exs > +@@ -332,17 +332,20 @@ defmodule IEx.HelpersTest do > + assert help =3D~ "Welcome to Interactive Elixir" > + end > +=20 > ++ @tag :erlang_doc > + test "prints Erlang module documentation" do > + captured =3D capture_io(fn -> h(:timer) end) > + assert captured =3D~ "This module provides useful functions relat= ed to time." > + end > +=20 > ++ @tag :erlang_doc > + test "prints Erlang module function specs" do > + captured =3D capture_io(fn -> h(:timer.sleep() / 1) end) > + assert captured =3D~ ":timer.sleep/1" > + assert captured =3D~ "-spec sleep(Time) -> ok when Time :: timeou= t()." > + end > +=20 > ++ @tag :erlang_doc > + test "handles non-existing Erlang module function" do > + captured =3D capture_io(fn -> h(:timer.baz() / 1) end) > + assert captured =3D~ "No documentation for :timer.baz was found" > +@@ -1008,13 +1011,15 @@ defmodule IEx.HelpersTest do > + cleanup_modules([TypeSample]) > + end > +=20 > +- test "prints all types in erlang module" do > ++ @tag :erlang_doc > ++ test "prints all types in Erlang module" do > + captured =3D capture_io(fn -> t(:queue) end) > + assert captured =3D~ "-type queue() :: queue(_)" > + assert captured =3D~ "-opaque queue(Item)" > + end > +=20 > +- test "prints single type from erlang module" do > ++ @tag :erlang_doc > ++ test "prints single type from Erlang module" do > + captured =3D capture_io(fn -> t(:erlang.iovec()) end) > + assert captured =3D~ "-type iovec() :: [binary()]" > + assert captured =3D~ "A list of binaries." > +@@ -1024,7 +1029,8 @@ defmodule IEx.HelpersTest do > + assert captured =3D~ "A list of binaries." > + end > +=20 > +- test "handles non-existing types from erlang module" do > ++ @tag :erlang_doc > ++ test "handles non-existing types from Erlang module" do > + captured =3D capture_io(fn -> t(:erlang.foo()) end) > + assert captured =3D~ "No type information for :erlang.foo was fou= nd or :erlang.foo is private" > +=20 > +diff --git a/lib/iex/test/test_helper.exs b/lib/iex/test/test_helper.exs > +index f5a55f0aa80..b32c8be4e91 100644 > +--- a/lib/iex/test/test_helper.exs > ++++ b/lib/iex/test/test_helper.exs > +@@ -7,11 +7,19 @@ IEx.configure(colors: [enabled: false]) > + {line_exclude, line_include} =3D > + if line =3D System.get_env("LINE"), do: {[:test], [line: line]}, else= : {[], []} > +=20 > ++erlang_doc_exclude =3D > ++ if match?({:docs_v1, _, _, _, _, _, _}, Code.fetch_docs(:array)) do > ++ [] > ++ else > ++ IO.puts("Erlang/OTP compiled without docs, some tests are excluded.= ..") > ++ [:erlang_doc] > ++ end > ++ > + ExUnit.start( > + assert_receive_timeout: assert_timeout, > + trace: !!System.get_env("TRACE"), > + include: line_include, > +- exclude: line_exclude > ++ exclude: line_exclude ++ erlang_doc_exclude > + ) > +=20 > + defmodule IEx.Case do Sorry for missing patch. now have elixir 1.17.3. close. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEfr6klGDOXiwIdX/bO1qpk+Gi3/AFAmcBfSUACgkQO1qpk+Gi 3/CMUQ//fYuZSvWl0LddMEHj09UZ5gJEGd+nVuR2ijVJnQA9kpEpkyCq0SDdewp1 qPGwTy+HNos1GZR+P+CqA6Z1qyp/28rYJ3ASC9JQ99IXodHHr+LsEEhdQkaHCvHU 54MWgko5czEUDPa7NmeRWN05ItKG73nVu0oD6M7P6rA+KOi+F5O5YD79kNZKrft4 ld2k+ktoN5wvqLQghg2iBM9cBZgmUVTP+ZYjHY6AdTXDR07gnKzb+6PsRL+f97HD 8GdYXKkwIV93U/GUqyUPTZplT6aWnAptvFhcyt05LcHtDOihSU75BF2ZC5IdoQ5y GOJU/L4t4634K34bVl0k2jtpw+Vt/kBGFhVehvTwATtLJSinXIrG3xdgRvXcx31U NOPi//Qh4pR1UFKR03+IuW9nZ6AdtxUeljoRwCUGV9YnjD3NiI55GE4gg4fkOPUH toGiowbeJt/tUt6kBUkNjev2L37uMNcKumPOGZsAde9Q17gF2TFNOY3Dr6pMO1ik BxL1L7s0q+o+kM7RZvlLPYc1DXG1iu4ks3td7za5iHSIZkzv8vunLsUwDqUDNG0K yP2CYIXyQHMkoUNhb7y+He6RQCZzXaMwp5nE7lVtxy6npSaRdmif/DToqy0NQPUr WvMOXS871FjIgZuUO16Jr6h+k9tw3ngJDipXH/GmiDHdQoNMx0E= =dkRW -----END PGP SIGNATURE----- --=-=-=-- From unknown Sat Aug 09 13:22:44 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: Leo =?UTF-8?Q?Nikkil=C3=A4?= Subject: bug#69999: closed (Re: [bug#69999] [PATCH] gnu: elixir: Update to 1.16.2.) Message-ID: References: <874j5qtp0a.fsf@iscas.ac.cn> <20240325170615.11487-1-hello@lnikki.la> X-Gnu-PR-Message: they-closed 69999 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 69999@debbugs.gnu.org Date: Sat, 05 Oct 2024 17:55:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1728150903-20564-1" This is a multi-part message in MIME format... ------------=_1728150903-20564-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #69999: [PATCH] gnu: elixir: Update to 1.16.2. 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 69999@debbugs.gnu.org. --=20 69999: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D69999 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1728150903-20564-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 69999-done) by debbugs.gnu.org; 5 Oct 2024 17:54:06 +0000 Received: from localhost ([127.0.0.1]:39576 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sx8yj-0005K0-5U for submit@debbugs.gnu.org; Sat, 05 Oct 2024 13:54:05 -0400 Received: from smtp84.cstnet.cn ([159.226.251.84]:48456 helo=cstnet.cn) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sx8yf-0005JS-Rj for 69999-done@debbugs.gnu.org; Sat, 05 Oct 2024 13:54:03 -0400 Received: from m (unknown [107.174.64.25]) by APP-05 (Coremail) with SMTP id zQCowABXqGwnfQFnVAn4Aw--.58584S2; Sun, 06 Oct 2024 01:53:46 +0800 (CST) From: Zheng Junjie To: Leo =?utf-8?Q?Nikkil=C3=A4?= via Guix-patches via Subject: Re: [bug#69999] [PATCH] gnu: elixir: Update to 1.16.2. In-Reply-To: <20240325170615.11487-1-hello@lnikki.la> ("Leo =?utf-8?Q?Nikk?= =?utf-8?Q?il=C3=A4?= via Guix-patches via"'s message of "Mon, 25 Mar 2024 19:05:51 +0200") References: <20240325170615.11487-1-hello@lnikki.la> Date: Sun, 06 Oct 2024 01:53:41 +0800 Message-ID: <874j5qtp0a.fsf@iscas.ac.cn> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-CM-TRANSID: zQCowABXqGwnfQFnVAn4Aw--.58584S2 X-Coremail-Antispam: 1UD129KBjvJXoWxuw15GryUAF47Wry3Kr17Wrg_yoWxJw4rpF 4xJF1Ykw4Iyr1xJan7Gr12vw15Ww47CFWIgry2qryakrWq9w1jqr48Kay5CF1fGrs5Wa43 ua48trWrGFy3AFJanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUvlb7Iv0xC_Kw4lb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I2 0VC2zVCF04k26cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rw A2F7IY1VAKz4vEj48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Jr0_JF4l84ACjcxK6xII jxv20xvEc7CjxVAFwI0_Jr0_Gr1l84ACjcxK6I8E87Iv67AKxVWUJVW8JwA2z4x0Y4vEx4 A2jsIEc7CjxVAFwI0_Gr0_Gr1UM2vj62AExVA0xI801c8C04v26x02cVCv0xWle2I262IY c4CY6c8Ij28IcVAaY2xG8wASzI0EjI02j7AqF2xKxwAqx4xG64xvF2IEw4CE5I8CrVC2j2 WlYx0E2Ix0cI8IcVAFwI0_Jrv_JF1lYx0Ex4A2jsIE14v26r1j6r4UMcvjeVCFs4IE7xkE bVWUJVW8JwACjcxG0xvEwIxGrwCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJV W8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF 1VAFwI0_Jrv_JF1lIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6x IIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcVCF04k26cxKx2IYs7xG6r1j6r1xMIIF0xvE x4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvj DU0xZFpf9x07jMJPiUUUUU= X-Originating-IP: [107.174.64.25] X-CM-SenderInfo: x2kh0wxmxqyx3h6l2u1dvotugofq/ X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 69999-done Cc: Leo =?utf-8?Q?Nikkil=C3=A4?= , 69999-done@debbugs.gnu.org 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: -1.0 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Leo Nikkil=C3=A4 via Guix-patches via writes: > * gnu/packages/patches/elixir-1.16-iex-tests.patch: New file. > * gnu/packages/elixir.scm (elixir): Update to 1.16.2. Add patch. > * gnu/local.mk (dist_patch_DATA): Register patch. > --- > gnu/local.mk | 1 + > gnu/packages/elixir.scm | 10 ++- > .../patches/elixir-1.16-iex-tests.patch | 88 +++++++++++++++++++ > 3 files changed, 96 insertions(+), 3 deletions(-) > create mode 100644 gnu/packages/patches/elixir-1.16-iex-tests.patch > > diff --git a/gnu/local.mk b/gnu/local.mk > index 7f1006010b..e7a8298764 100644 > --- a/gnu/local.mk > +++ b/gnu/local.mk > @@ -1119,6 +1119,7 @@ dist_patch_DATA =3D \ > %D%/packages/patches/eigen-fix-strict-aliasing-bug.patch \ > %D%/packages/patches/einstein-build.patch \ > %D%/packages/patches/elfutils-tests-ptrace.patch \ > + %D%/packages/patches/elixir-1.16-iex-tests.patch \ > %D%/packages/patches/elixir-path-length.patch \ > %D%/packages/patches/elm-ghc9.2.patch \ > %D%/packages/patches/elm-offline-package-registry.patch \ > diff --git a/gnu/packages/elixir.scm b/gnu/packages/elixir.scm > index 2885ddbd61..6aace1c01e 100644 > --- a/gnu/packages/elixir.scm > +++ b/gnu/packages/elixir.scm > @@ -9,6 +9,7 @@ > ;;; Copyright =C2=A9 2021 Cees de Groot > ;;; Copyright =C2=A9 2024 Andrew Tropin > ;;; Copyright =C2=A9 2024 Ivan Sokolov > +;;; Copyright =C2=A9 2024 Leo Nikkil=C3=A4 > ;;; > ;;; This file is part of GNU Guix. > ;;; > @@ -39,7 +40,7 @@ (define-module (gnu packages elixir) > (define-public elixir > (package > (name "elixir") > - (version "1.14.0") > + (version "1.16.2") > (source > (origin > (method git-fetch) > @@ -48,8 +49,11 @@ (define-public elixir > (commit (string-append "v" version)))) > (file-name (git-file-name name version)) > (sha256 > - (base32 "16rc4qaykddda6ax5f8zw70yhapgwraqbgx5gp3f40dvfax3d51l")) > - (patches (search-patches "elixir-path-length.patch")))) > + (base32 "145lwbwpyj686rq3xkzg4i07v0z8x2j185aa2lvyj5ppzv2ihiim")) > + (patches (search-patches "elixir-path-length.patch" > + ;; This patch has been merged and should > + ;; be included in the next version. > + "elixir-1.16-iex-tests.patch")))) > (build-system gnu-build-system) > (arguments > (list > diff --git a/gnu/packages/patches/elixir-1.16-iex-tests.patch b/gnu/packa= ges/patches/elixir-1.16-iex-tests.patch > new file mode 100644 > index 0000000000..d190036764 > --- /dev/null > +++ b/gnu/packages/patches/elixir-1.16-iex-tests.patch > @@ -0,0 +1,88 @@ > +From d17df054e21795637d5d265e3e37c4791404e6b2 Mon Sep 17 00:00:00 2001 > +From: =3D?UTF-8?q?Jos=3DC3=3DA9=3D20Valim?=3D > +Date: Thu, 8 Feb 2024 08:08:03 +0100 > +Subject: [PATCH] Skip tests if Erlang was compiled without docs, closes = #13322 > + > +--- > + lib/iex/test/iex/helpers_test.exs | 12 +++++++++--- > + lib/iex/test/test_helper.exs | 10 +++++++++- > + 2 files changed, 18 insertions(+), 4 deletions(-) > + > +diff --git a/lib/iex/test/iex/helpers_test.exs b/lib/iex/test/iex/helper= s_test.exs > +index 18b19ddce56..56e8c014450 100644 > +--- a/lib/iex/test/iex/helpers_test.exs > ++++ b/lib/iex/test/iex/helpers_test.exs > +@@ -332,17 +332,20 @@ defmodule IEx.HelpersTest do > + assert help =3D~ "Welcome to Interactive Elixir" > + end > +=20 > ++ @tag :erlang_doc > + test "prints Erlang module documentation" do > + captured =3D capture_io(fn -> h(:timer) end) > + assert captured =3D~ "This module provides useful functions relat= ed to time." > + end > +=20 > ++ @tag :erlang_doc > + test "prints Erlang module function specs" do > + captured =3D capture_io(fn -> h(:timer.sleep() / 1) end) > + assert captured =3D~ ":timer.sleep/1" > + assert captured =3D~ "-spec sleep(Time) -> ok when Time :: timeou= t()." > + end > +=20 > ++ @tag :erlang_doc > + test "handles non-existing Erlang module function" do > + captured =3D capture_io(fn -> h(:timer.baz() / 1) end) > + assert captured =3D~ "No documentation for :timer.baz was found" > +@@ -1008,13 +1011,15 @@ defmodule IEx.HelpersTest do > + cleanup_modules([TypeSample]) > + end > +=20 > +- test "prints all types in erlang module" do > ++ @tag :erlang_doc > ++ test "prints all types in Erlang module" do > + captured =3D capture_io(fn -> t(:queue) end) > + assert captured =3D~ "-type queue() :: queue(_)" > + assert captured =3D~ "-opaque queue(Item)" > + end > +=20 > +- test "prints single type from erlang module" do > ++ @tag :erlang_doc > ++ test "prints single type from Erlang module" do > + captured =3D capture_io(fn -> t(:erlang.iovec()) end) > + assert captured =3D~ "-type iovec() :: [binary()]" > + assert captured =3D~ "A list of binaries." > +@@ -1024,7 +1029,8 @@ defmodule IEx.HelpersTest do > + assert captured =3D~ "A list of binaries." > + end > +=20 > +- test "handles non-existing types from erlang module" do > ++ @tag :erlang_doc > ++ test "handles non-existing types from Erlang module" do > + captured =3D capture_io(fn -> t(:erlang.foo()) end) > + assert captured =3D~ "No type information for :erlang.foo was fou= nd or :erlang.foo is private" > +=20 > +diff --git a/lib/iex/test/test_helper.exs b/lib/iex/test/test_helper.exs > +index f5a55f0aa80..b32c8be4e91 100644 > +--- a/lib/iex/test/test_helper.exs > ++++ b/lib/iex/test/test_helper.exs > +@@ -7,11 +7,19 @@ IEx.configure(colors: [enabled: false]) > + {line_exclude, line_include} =3D > + if line =3D System.get_env("LINE"), do: {[:test], [line: line]}, else= : {[], []} > +=20 > ++erlang_doc_exclude =3D > ++ if match?({:docs_v1, _, _, _, _, _, _}, Code.fetch_docs(:array)) do > ++ [] > ++ else > ++ IO.puts("Erlang/OTP compiled without docs, some tests are excluded.= ..") > ++ [:erlang_doc] > ++ end > ++ > + ExUnit.start( > + assert_receive_timeout: assert_timeout, > + trace: !!System.get_env("TRACE"), > + include: line_include, > +- exclude: line_exclude > ++ exclude: line_exclude ++ erlang_doc_exclude > + ) > +=20 > + defmodule IEx.Case do Sorry for missing patch. now have elixir 1.17.3. close. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEfr6klGDOXiwIdX/bO1qpk+Gi3/AFAmcBfSUACgkQO1qpk+Gi 3/CMUQ//fYuZSvWl0LddMEHj09UZ5gJEGd+nVuR2ijVJnQA9kpEpkyCq0SDdewp1 qPGwTy+HNos1GZR+P+CqA6Z1qyp/28rYJ3ASC9JQ99IXodHHr+LsEEhdQkaHCvHU 54MWgko5czEUDPa7NmeRWN05ItKG73nVu0oD6M7P6rA+KOi+F5O5YD79kNZKrft4 ld2k+ktoN5wvqLQghg2iBM9cBZgmUVTP+ZYjHY6AdTXDR07gnKzb+6PsRL+f97HD 8GdYXKkwIV93U/GUqyUPTZplT6aWnAptvFhcyt05LcHtDOihSU75BF2ZC5IdoQ5y GOJU/L4t4634K34bVl0k2jtpw+Vt/kBGFhVehvTwATtLJSinXIrG3xdgRvXcx31U NOPi//Qh4pR1UFKR03+IuW9nZ6AdtxUeljoRwCUGV9YnjD3NiI55GE4gg4fkOPUH toGiowbeJt/tUt6kBUkNjev2L37uMNcKumPOGZsAde9Q17gF2TFNOY3Dr6pMO1ik BxL1L7s0q+o+kM7RZvlLPYc1DXG1iu4ks3td7za5iHSIZkzv8vunLsUwDqUDNG0K yP2CYIXyQHMkoUNhb7y+He6RQCZzXaMwp5nE7lVtxy6npSaRdmif/DToqy0NQPUr WvMOXS871FjIgZuUO16Jr6h+k9tw3ngJDipXH/GmiDHdQoNMx0E= =dkRW -----END PGP SIGNATURE----- --=-=-=-- ------------=_1728150903-20564-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 25 Mar 2024 17:07:04 +0000 Received: from localhost ([127.0.0.1]:36086 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ronmn-0005pg-Cq for submit@debbugs.gnu.org; Mon, 25 Mar 2024 13:07:04 -0400 Received: from lists.gnu.org ([2001:470:142::17]:50554) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ronmi-0005pJ-9r for submit@debbugs.gnu.org; Mon, 25 Mar 2024 13:06:59 -0400 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 1ronmd-0005YL-OF for guix-patches@gnu.org; Mon, 25 Mar 2024 13:06:51 -0400 Received: from fout6-smtp.messagingengine.com ([103.168.172.149]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ronmb-0000R8-4D for guix-patches@gnu.org; Mon, 25 Mar 2024 13:06:51 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfout.nyi.internal (Postfix) with ESMTP id F0FE6138011A; Mon, 25 Mar 2024 13:06:45 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Mon, 25 Mar 2024 13:06:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lnikki.la; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:message-id:mime-version:reply-to :subject:subject:to:to; s=fm3; t=1711386405; x=1711472805; bh=iY 2wZGZf77UvvwqOcbUnIQN3lYbsr0cs+BPFSvdEY/g=; b=Mdc8t9e8zXITjmw+++ 64VxpZgVtRRZhV4sBd//5bzmVpYKy8bG2PLNca0JjL96dJvcnZLOJt62YvPMaC3f 19kHKypOzkp1uCmCn9SwRhaZlJNk5lKwfQJ5l5tTTA6W3uKk/MjzmE0UF0IJSWng 3eCFijtMfS2PPIkn12bCDI2m3sksGOHeKBETZr1CDlLGusEA0Vd53KdLvOZRIia1 eXRdZTi3GOmqua+dP/StV8z3SLb/fZvkMFtYjbiKCw6L5h4YO2BnsY5Vlk1iHYt3 7Kx019INUbALXLYzD1JdeN24WFoUdInTK78IL6bFV/3A2fAU9RNF7QZFlnh9si0c hUvA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:message-id:mime-version:reply-to:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1711386405; x=1711472805; bh=iY2wZGZf77Uvv wqOcbUnIQN3lYbsr0cs+BPFSvdEY/g=; b=maCb04RyKRQzwC2GfvMvgQ1fQVN/B MeR0IMwHQBjzyHYDMTd9VrYgJmMwHU3VYBogcm+/5kQ4tikm7GMJ2A3oBPRasizW rUUbF57y9szC5THUDTsErq9ugVHqIl80Mhe30XVOvXvEJFYv0HOQMH5S+5UMGtHy c9ZPTOqOi9z8qNKqpveR0bwxtG9SisRMV/fS1fWL+q1ATU8F+uK2BoYrmUPihPAM k79/S9hr0eBaBKkpHQBfVqqfUaI8GzlH6Bbfw9SiiSA29Ax7vcO4hEwk7OeQG8ZL Gl8E6k/BDvgWIiJ5uGSrhnkiY2uGsVyG8MivE65eXwxgs0XczRgAen9hA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudduuddgfeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffkffogggtgfesthekre dtredtjeenucfhrhhomhepnfgvohcupfhikhhkihhlmocuoehhvghllhhosehlnhhikhhk ihdrlhgrqeenucggtffrrghtthgvrhhnpedtffduheelveejtdevgffhieehhfeuudegie ehjeeghefgvdffgeejfedvtedvgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgr mhepmhgrihhlfhhrohhmpehhvghllhhosehlnhhikhhkihdrlhgr X-ME-Proxy: Feedback-ID: i41f146a7:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 25 Mar 2024 13:06:45 -0400 (EDT) From: =?utf-8?Q?Leo=20Nikkil=C3=A4?= To: guix-patches@gnu.org Subject: [PATCH] gnu: elixir: Update to 1.16.2. Date: Mon, 25 Mar 2024 19:05:51 +0200 Message-ID: <20240325170615.11487-1-hello@lnikki.la> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=103.168.172.149; envelope-from=hello@lnikki.la; helo=fout6-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit Cc: =?UTF-8?q?Leo=20Nikkil=C3=A4?= 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: -0.0 (/) * gnu/packages/patches/elixir-1.16-iex-tests.patch: New file. * gnu/packages/elixir.scm (elixir): Update to 1.16.2. Add patch. * gnu/local.mk (dist_patch_DATA): Register patch. --- gnu/local.mk | 1 + gnu/packages/elixir.scm | 10 ++- .../patches/elixir-1.16-iex-tests.patch | 88 +++++++++++++++++++ 3 files changed, 96 insertions(+), 3 deletions(-) create mode 100644 gnu/packages/patches/elixir-1.16-iex-tests.patch diff --git a/gnu/local.mk b/gnu/local.mk index 7f1006010b..e7a8298764 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1119,6 +1119,7 @@ dist_patch_DATA = \ %D%/packages/patches/eigen-fix-strict-aliasing-bug.patch \ %D%/packages/patches/einstein-build.patch \ %D%/packages/patches/elfutils-tests-ptrace.patch \ + %D%/packages/patches/elixir-1.16-iex-tests.patch \ %D%/packages/patches/elixir-path-length.patch \ %D%/packages/patches/elm-ghc9.2.patch \ %D%/packages/patches/elm-offline-package-registry.patch \ diff --git a/gnu/packages/elixir.scm b/gnu/packages/elixir.scm index 2885ddbd61..6aace1c01e 100644 --- a/gnu/packages/elixir.scm +++ b/gnu/packages/elixir.scm @@ -9,6 +9,7 @@ ;;; Copyright © 2021 Cees de Groot ;;; Copyright © 2024 Andrew Tropin ;;; Copyright © 2024 Ivan Sokolov +;;; Copyright © 2024 Leo Nikkilä ;;; ;;; This file is part of GNU Guix. ;;; @@ -39,7 +40,7 @@ (define-module (gnu packages elixir) (define-public elixir (package (name "elixir") - (version "1.14.0") + (version "1.16.2") (source (origin (method git-fetch) @@ -48,8 +49,11 @@ (define-public elixir (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "16rc4qaykddda6ax5f8zw70yhapgwraqbgx5gp3f40dvfax3d51l")) - (patches (search-patches "elixir-path-length.patch")))) + (base32 "145lwbwpyj686rq3xkzg4i07v0z8x2j185aa2lvyj5ppzv2ihiim")) + (patches (search-patches "elixir-path-length.patch" + ;; This patch has been merged and should + ;; be included in the next version. + "elixir-1.16-iex-tests.patch")))) (build-system gnu-build-system) (arguments (list diff --git a/gnu/packages/patches/elixir-1.16-iex-tests.patch b/gnu/packages/patches/elixir-1.16-iex-tests.patch new file mode 100644 index 0000000000..d190036764 --- /dev/null +++ b/gnu/packages/patches/elixir-1.16-iex-tests.patch @@ -0,0 +1,88 @@ +From d17df054e21795637d5d265e3e37c4791404e6b2 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Jos=C3=A9=20Valim?= +Date: Thu, 8 Feb 2024 08:08:03 +0100 +Subject: [PATCH] Skip tests if Erlang was compiled without docs, closes #13322 + +--- + lib/iex/test/iex/helpers_test.exs | 12 +++++++++--- + lib/iex/test/test_helper.exs | 10 +++++++++- + 2 files changed, 18 insertions(+), 4 deletions(-) + +diff --git a/lib/iex/test/iex/helpers_test.exs b/lib/iex/test/iex/helpers_test.exs +index 18b19ddce56..56e8c014450 100644 +--- a/lib/iex/test/iex/helpers_test.exs ++++ b/lib/iex/test/iex/helpers_test.exs +@@ -332,17 +332,20 @@ defmodule IEx.HelpersTest do + assert help =~ "Welcome to Interactive Elixir" + end + ++ @tag :erlang_doc + test "prints Erlang module documentation" do + captured = capture_io(fn -> h(:timer) end) + assert captured =~ "This module provides useful functions related to time." + end + ++ @tag :erlang_doc + test "prints Erlang module function specs" do + captured = capture_io(fn -> h(:timer.sleep() / 1) end) + assert captured =~ ":timer.sleep/1" + assert captured =~ "-spec sleep(Time) -> ok when Time :: timeout()." + end + ++ @tag :erlang_doc + test "handles non-existing Erlang module function" do + captured = capture_io(fn -> h(:timer.baz() / 1) end) + assert captured =~ "No documentation for :timer.baz was found" +@@ -1008,13 +1011,15 @@ defmodule IEx.HelpersTest do + cleanup_modules([TypeSample]) + end + +- test "prints all types in erlang module" do ++ @tag :erlang_doc ++ test "prints all types in Erlang module" do + captured = capture_io(fn -> t(:queue) end) + assert captured =~ "-type queue() :: queue(_)" + assert captured =~ "-opaque queue(Item)" + end + +- test "prints single type from erlang module" do ++ @tag :erlang_doc ++ test "prints single type from Erlang module" do + captured = capture_io(fn -> t(:erlang.iovec()) end) + assert captured =~ "-type iovec() :: [binary()]" + assert captured =~ "A list of binaries." +@@ -1024,7 +1029,8 @@ defmodule IEx.HelpersTest do + assert captured =~ "A list of binaries." + end + +- test "handles non-existing types from erlang module" do ++ @tag :erlang_doc ++ test "handles non-existing types from Erlang module" do + captured = capture_io(fn -> t(:erlang.foo()) end) + assert captured =~ "No type information for :erlang.foo was found or :erlang.foo is private" + +diff --git a/lib/iex/test/test_helper.exs b/lib/iex/test/test_helper.exs +index f5a55f0aa80..b32c8be4e91 100644 +--- a/lib/iex/test/test_helper.exs ++++ b/lib/iex/test/test_helper.exs +@@ -7,11 +7,19 @@ IEx.configure(colors: [enabled: false]) + {line_exclude, line_include} = + if line = System.get_env("LINE"), do: {[:test], [line: line]}, else: {[], []} + ++erlang_doc_exclude = ++ if match?({:docs_v1, _, _, _, _, _, _}, Code.fetch_docs(:array)) do ++ [] ++ else ++ IO.puts("Erlang/OTP compiled without docs, some tests are excluded...") ++ [:erlang_doc] ++ end ++ + ExUnit.start( + assert_receive_timeout: assert_timeout, + trace: !!System.get_env("TRACE"), + include: line_include, +- exclude: line_exclude ++ exclude: line_exclude ++ erlang_doc_exclude + ) + + defmodule IEx.Case do -- 2.41.0 ------------=_1728150903-20564-1--