From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id OFqWLGx0dWQ3QAAASxT56A (envelope-from ) for ; Tue, 30 May 2023 05:58:36 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id gLqKK2x0dWT5WAEAG6o9tA (envelope-from ) for ; Tue, 30 May 2023 05:58:36 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 752842882 for ; Tue, 30 May 2023 05:58:36 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q3qUp-0005LO-6t; Mon, 29 May 2023 23:58: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 1q3qUm-0005JP-Nx for guix-patches@gnu.org; Mon, 29 May 2023 23:58:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q3qUm-00055Z-DO for guix-patches@gnu.org; Mon, 29 May 2023 23:58:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q3qUm-000394-96 for guix-patches@gnu.org; Mon, 29 May 2023 23:58:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56729] [RFC PATCH v3 23/32] gnu: maxima: Build with ecl. Resent-From: vicvbcun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 30 May 2023 03:58:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56729 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 56729@debbugs.gnu.org Cc: Andreas Enge Received: via spool by 56729-submit@debbugs.gnu.org id=B56729.168541907412033 (code B ref 56729); Tue, 30 May 2023 03:58:04 +0000 Received: (at 56729) by debbugs.gnu.org; 30 May 2023 03:57:54 +0000 Received: from localhost ([127.0.0.1]:59644 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q3qUc-00037v-63 for submit@debbugs.gnu.org; Mon, 29 May 2023 23:57:54 -0400 Received: from mo4-p05-ob.smtp.rzone.de ([85.215.255.135]:38721) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q3qUN-00036J-PC for 56729@debbugs.gnu.org; Mon, 29 May 2023 23:57:43 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1685419057; cv=none; d=strato.com; s=strato-dkim-0002; b=ZHd/W8Lk5zIyj9EJQkTYTZhw8oS4I6URQWw7U49ATJo4FVI1LWHW02DmxEaYKw0uir 0zg1rVdGoJ7vr1b4xFKkzGcXPVBam+nSVL5NRI/pWmUlzp+p08EVpODXaFK8TDLgYHmW xFKB2rd/29In0zX+TvRaK5QntpDcyNpLpBLuwB22Q63wEsAmIKKa9ANyUiRbMi5dtpE1 VYqvGGoEVjAJtL/tRqfxGajI5M2+8SMgn3GN5w3AlfT9m55KBZ0yfDgzuinswOIScB11 ZY1CokleQxzExo0RbNAwDFRWPWSAe7FiElN85ci/KxOed2E6VDd8ZlIgUJ+8ufdOFX1J GW8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1685419057; s=strato-dkim-0002; d=strato.com; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=Bvz3BIJ2B3PQSwj4UO6UqhFPBqTZ1ZkaHeZDzkktPzk=; b=MyQwLYk1OVIAP+vJNVPRASFGjEx52qGE23xcjUO0b3I+R+u1AsidFDoN1+VHGbqJ5D yn+iTx1NWpJRZ+Jjwv+fWipYQcbfhpWvVAElNDOzWcDJFs+8pBjL3QQw9+FEaOuNVUGz XO97MIwzX9FJ9iK4F93N+2F0TDMqQHaUvyrnOPqOxrAarirk3+T7uvf3Sns/6NQCC5+x KAS/jNhxtWaNiGAJVanqNTWX7WArU8jLNSveRd1QSbPVY6Da9kfcViSeha6ZpMR0tN9x vbZt/A2yXAkyg0yQ254sfojMZnGhailq3rHowSllxT1mgagKfX+xvkkKA++E5XqULscT zHPA== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1685419057; s=strato-dkim-0002; d=ikherbers.com; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=Bvz3BIJ2B3PQSwj4UO6UqhFPBqTZ1ZkaHeZDzkktPzk=; b=VqQ9RyfBC7EPuKI6gv+L5haPgMWJ94rknx1fOdsHHwZNaum4BvnTnanou/Ej+ruw3c /k5WEPOxwA5wZ+4+WyBEmqUNPf3kbfBRN/MBPolkiYrWWtCl63sBDCJtAZzp1BKf7Qtc Pi/eu9NTNxY/UvolNfL12JnJyHd/TyHqaLfE1D7dRYFGg7p9+eCcw2XcI5Z+cXD8irLB VRbn9d5Wv71NPE5zl1tJKvFn26p9jQhX514Izd08/BIkAoWJFshGP/9ph2dviz/YiGlS 72ZRfYrAJHkECkF+hv9NgPuImGPxnGd75ZFDxspogzVICpU5yy/rYjgOKS/KoVElcPJ1 4IMA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1685419057; s=strato-dkim-0003; d=ikherbers.com; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=Bvz3BIJ2B3PQSwj4UO6UqhFPBqTZ1ZkaHeZDzkktPzk=; b=LxRL50vy1bbaDjY7VP6FGP8sNgEVlqDjYylsXLvwnrivASe1hLAWsdLU1vQtQyoQgo FxOiSZXpEjrhWVfph6AQ== X-RZG-AUTH: ":IUwNfkitaf3qOWm2b/jA5tveVwUUcwH3PkiYp6DPxTDDEo4xO9elHkvI0r6JTEEwPZQIGpITRHJw3QBV19xfC5caujhgQnTJiaYr" X-RZG-CLASS-ID: mo05 Received: from lambda.localdomain by smtp.strato.de (RZmta 49.4.0 AUTH) with ESMTPSA id z055e6z4U3vbnYL (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Tue, 30 May 2023 05:57:37 +0200 (CEST) From: vicvbcun Date: Mon, 29 May 2023 22:38:32 +0200 Message-Id: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=2; s=key1; d=yhetil.org; t=1685419116; a=rsa-sha256; cv=fail; b=LlxTyREQGPYWVmYTiOezNu4jruYY05PVV+x0Sb3fRdQRKqpRCFmsxxaABkLoEXhTEmpaYh SyTa8ryo1sVq25qVtTUbcz0xJJjb3nF+ja3HpTgCQpQ+UxgxNT1L0raQuzESeTBGlAqUxz jxRQt2uOcXKFXq41EoCaM+uYfPLH883W0YQX1bMknb+oXVFvFJ7O3JCseL7+aaPhm4nCJC e7rP3cvGWLPbnefXNUGXS14HQZhs7LAIirk6KGrSpzBWXXdSRxt4oK1qqRwylx7beMD9fq /Z8amQbclgVLiSD0KWeST9shhmA92KFLWW2qn7JwyqXumdtCVLVB6Xmf5OWpDQ== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ikherbers.com header.s=strato-dkim-0002 header.b=VqQ9RyfB; dkim=fail ("headers eddsa verify failed") header.d=ikherbers.com header.s=strato-dkim-0003 header.b=LxRL50vy; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; arc=reject ("signature check failed: fail, {[1] = sig:strato.com:reject}") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1685419116; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Bvz3BIJ2B3PQSwj4UO6UqhFPBqTZ1ZkaHeZDzkktPzk=; b=lXOjTsE+2NDqaVRR8fJZWIJgDlnujvHvbJEFTZawPrqRBCwO1Ze6t2Hl/bU1ZG9EtjBboK Yg1C0xMLP7JnKd31m4ogetvbE+c1OvO0CLqK00DAUyonOqzgr23Q+Z/Ou+zAH1Jo5jxP3M r411YmyIYHJhXRzXj6uWbUASRGxQF03UNcudG3kdgJf49GvJ8loYrLGCujeJs/i2em4OOo +HJZ/dPeNgpcy7ilduMlwf0EIu5/ZFD7oyw6x/cQ0VYPp2+YGBtvtUa6y1WttCK5GOGv/o gWhEvufQu5d3cW9ssgVUuSmqCEiH1aYUVxmDYBwtnQJw1sSMt9x1Nhmj/KginA== X-Migadu-Spam-Score: 0.59 X-Spam-Score: 0.59 X-Migadu-Queue-Id: 752842882 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ikherbers.com header.s=strato-dkim-0002 header.b=VqQ9RyfB; dkim=fail ("headers eddsa verify failed") header.d=ikherbers.com header.s=strato-dkim-0003 header.b=LxRL50vy; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; arc=reject ("signature check failed: fail, {[1] = sig:strato.com:reject}") X-TUID: vV3SYD+zOo7I The eventual sagemath package requires maxima.fas, which is only built with ecl. * gnu/packages/maths.scm (maxima)[inputs]: Replace sbcl with ecl. [arguments]<#:configure-flags>: Build with ecl instead. <#:phases>: Run test with ecl. * gnu/packages/patches/maxima-test-precision.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. --- Notes: The decrease in precision worries me a bit… gnu/local.mk | 1 + gnu/packages/maths.scm | 11 +++---- .../patches/maxima-test-precision.patch | 30 +++++++++++++++++++ 3 files changed, 37 insertions(+), 5 deletions(-) create mode 100644 gnu/packages/patches/maxima-test-precision.patch diff --git a/gnu/local.mk b/gnu/local.mk index 683c36c383..1a90c8d2e4 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1551,6 +1551,7 @@ dist_patch_DATA = \ %D%/packages/patches/mathjax-no-a11y.patch \ %D%/packages/patches/mathjax-3.1.2-no-a11y.patch \ %D%/packages/patches/maxima-defsystem-mkdir.patch \ + %D%/packages/patches/maxima-test-precision.patch \ %D%/packages/patches/maven-generate-component-xml.patch \ %D%/packages/patches/maven-generate-javax-inject-named.patch \ %D%/packages/patches/mcrl2-fix-1687.patch \ diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index c2d9d07b00..1c98e842de 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -4358,20 +4358,21 @@ (define-public maxima (sha256 (base32 "01wbm8jj43p7gpdj4h55aij0b44bjydn4bwb7q1wjrfs91mz143k")) - (patches (search-patches "maxima-defsystem-mkdir.patch")))) + (patches (search-patches "maxima-defsystem-mkdir.patch" + "maxima-test-precision.patch")))) (build-system gnu-build-system) (inputs `(("bash" ,bash-minimal) ("gnuplot" ,gnuplot) ;for plots - ("sbcl" ,sbcl) + ("ecl" ,ecl) ("sed" ,sed) ("tk" ,tk))) ;Tcl/Tk is used by 'xmaxima' (native-inputs (list texinfo perl python)) (arguments `(#:configure-flags - ,#~(list "--enable-sbcl" - (string-append "--with-sbcl=" #$sbcl "/bin/sbcl") + ,#~(list "--enable-ecl" + (string-append "--with-ecl=" #$ecl "/bin/ecl") (string-append "--with-posix-shell=" #$bash-minimal "/bin/sh") (string-append "--with-wish=" #$tk "/bin/wish" #$(version-major+minor (package-version tk)))) @@ -4411,7 +4412,7 @@ (define-public maxima (invoke "sh" "-c" (string-append "./maxima-local " - "--lisp=sbcl " + "--lisp=ecl " "--batch-string=\"run_testsuite();\" " "| grep -q \"No unexpected errors found\"")))) ;; Make sure the doc and emacs files are found in the diff --git a/gnu/packages/patches/maxima-test-precision.patch b/gnu/packages/patches/maxima-test-precision.patch new file mode 100644 index 0000000000..1990a89d56 --- /dev/null +++ b/gnu/packages/patches/maxima-test-precision.patch @@ -0,0 +1,30 @@ +https://sourceforge.net/p/maxima/mailman/maxima-bugs/thread/6321ccd9332dab3666181108.bugs%40maxima.p.sourceforge.net/#msg37707276 + +old and new: +0.009214957317429523 %i - 0.596914179042388 +0.009214957317428399 %i - 0.59691417904239 + +old and new +(- 0.009214957317429523 %i) - 0.596914179042388 +(- 0.009214957317428399 %i) - 0.59691417904239 + +--- a/tests/rtest_gamma.mac 2023-04-01 11:32:32.998269650 +0200 ++++ b/tests/rtest_gamma.mac 2023-04-01 11:34:46.611842977 +0200 +@@ -1843,7 +1843,7 @@ + relerror( + gamma_incomplete(0.5,-2.5*%i), + -0.59691417904238855062194720247331 + 0.00921495731742953647951029973386*%i, +- 2.81e-15); ++ 3.08e-15); + true; + + relerror( +@@ -1879,7 +1879,7 @@ + relerror( + gamma_incomplete(0.5,2.5*%i), + -0.59691417904238855062194720247331 - 0.00921495731742953647951029973386*%i, +- 2.81e-15); ++ 3.08e-15); + true; + + relerror( -- 2.40.1