From patchwork Tue Aug 9 10:29:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Daniel_Mei=C3=9Fner?= X-Patchwork-Id: 41427 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 61FA427BBEB; Tue, 9 Aug 2022 11:31:20 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id CC7EF27BBEA for ; Tue, 9 Aug 2022 11:31:19 +0100 (BST) Received: from localhost ([::1]:39380 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oLMW7-0002cY-11 for patchwork@mira.cbaines.net; Tue, 09 Aug 2022 06:31:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51728) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLMVs-0002cP-79 for guix-patches@gnu.org; Tue, 09 Aug 2022 06:31:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52897) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oLMVq-0002Mt-AY for guix-patches@gnu.org; Tue, 09 Aug 2022 06:31:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oLMVq-0006dM-2T for guix-patches@gnu.org; Tue, 09 Aug 2022 06:31:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57074] [PATCH] gnu: maxima: Fix to find info files. Resent-From: Daniel =?utf-8?q?Mei=C3=9Fner?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 09 Aug 2022 10:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57074 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57074@debbugs.gnu.org Cc: Daniel =?utf-8?q?Mei=C3=9Fner?= X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166004102325430 (code B ref -1); Tue, 09 Aug 2022 10:31:01 +0000 Received: (at submit) by debbugs.gnu.org; 9 Aug 2022 10:30:23 +0000 Received: from localhost ([127.0.0.1]:42646 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLMVC-0006c5-AB for submit@debbugs.gnu.org; Tue, 09 Aug 2022 06:30:22 -0400 Received: from lists.gnu.org ([209.51.188.17]:54858) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLMV9-0006bw-I5 for submit@debbugs.gnu.org; Tue, 09 Aug 2022 06:30:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51462) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLMV8-0002Ig-Pz for guix-patches@gnu.org; Tue, 09 Aug 2022 06:30:18 -0400 Received: from out3.mail.ruhr-uni-bochum.de ([2a05:3e00:8:1001::8693:359b]:44327) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLMV6-000262-4B for guix-patches@gnu.org; Tue, 09 Aug 2022 06:30:18 -0400 Received: from mx3.mail.ruhr-uni-bochum.de (localhost [127.0.0.1]) by out3.mail.ruhr-uni-bochum.de (Postfix mo-ext) with ESMTP id 4M28TW5BCfz8SnY for ; Tue, 9 Aug 2022 12:30:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ruhr-uni-bochum.de; s=mail-2017; t=1660041007; bh=okE954H2AQ0RrYHWQYDf0l+TnN+CCUEPkyNXp/zWqPo=; h=From:To:Cc:Subject:Date:From; b=UmHF5INZo1kUKqz8WkTm3D/6IP9BHGUMlOHziMWrtIWYki+MWE0E8/jKx/TkS76k7 h9a8O/pdTzfeXrNnRo+c8srfuvJwwUraNk/cJfM3Q9/6sb6WCqj9gazY00BC7/SCn/ AFM91uevVy/wSg+ixcIYPuFH7W5btK40bv6xGszs= Received: from out3.mail.ruhr-uni-bochum.de (localhost [127.0.0.1]) by mx3.mail.ruhr-uni-bochum.de (Postfix idis) with ESMTP id 4M28TW4G6pz8Sjt; Tue, 9 Aug 2022 12:30:07 +0200 (CEST) X-RUB-Notes: Internal origin=134.147.42.236 X-Envelope-Sender: Received: from mail2.mail.ruhr-uni-bochum.de (mail2.mail.ruhr-uni-bochum.de [134.147.42.236]) by out3.mail.ruhr-uni-bochum.de (Postfix mi-int) with ESMTP id 4M28TW0jWhz8SZY; Tue, 9 Aug 2022 12:30:06 +0200 (CEST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.104.1 at mx3.mail.ruhr-uni-bochum.de Received: from xii-04.mg07.ruhr-uni-bochum.de (pm26.mg07.ruhr-uni-bochum.de [10.150.49.41]) by mail2.mail.ruhr-uni-bochum.de (Postfix) with ESMTPSA id 4M28TT6pXFzDgys; Tue, 9 Aug 2022 12:30:05 +0200 (CEST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.104.2 at mail2.mail.ruhr-uni-bochum.de Date: Tue, 9 Aug 2022 12:29:42 +0200 Message-Id: <20220809102942.3501-1-daniel.meissner-i4k@ruhr-uni-bochum.de> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a05:3e00:8:1001::8693:359b; envelope-from=daniel.meissner-i4k@ruhr-uni-bochum.de; helo=out3.mail.ruhr-uni-bochum.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: Daniel =?utf-8?q?Mei=C3=9Fner?= X-ACL-Warn: , =?utf-8?q?Daniel_Mei=C3=9Fner_via_Guix-patches?= X-Patchwork-Original-From: =?utf-8?q?Daniel_Mei=C3=9Fner_via_Guix-patches?= via From: =?utf-8?q?Daniel_Mei=C3=9Fner?= X-getmail-retrieved-from-mailbox: Patches The Maxima command ‘describe’ allows to pick the relevant portions from Maxima’s TeXinfo docs. However it does not support reading gzipped info files. * gnu/packages/maths.scm (maxima)[arguments]: Remove 'compress-documentation phase. --- Hi Guix, one of the default phases of the GNU build system is called 'compress-documentation which invokes `gzip' on the .info files but Maxima does not support gzipped files: --8<---------------cut here---------------start------------->8--- daniel@xii-04 ~/src/guix$ maxima Maxima 5.45.1 https://maxima.sourceforge.io using Lisp SBCL 2.2.6 Distributed under the GNU Public License. See the file COPYING. Dedicated to the memory of William Schelter. The function bug_report() provides bug reporting information. (%i1) describe(exp); Maxima encountered a Lisp error: The file #P"/gnu/store/vbhzggawcjp52ww5mx4nc68d7c6s7mwz-maxima-5.45.1/share/info/./maxima\\.info-1" does not exist: No such file or directory Automatically continuing. To enable the Lisp debugger set *debugger-hook* to nil. (%i2) --8<---------------cut here---------------end--------------->8--- This simple fix removes the 'compress-documentation which then causes the expected results: --8<---------------cut here---------------start------------->8--- daniel@xii-04 ~/src/guix/_build [env]$ maxima Maxima 5.45.1 https://maxima.sourceforge.io using Lisp SBCL 2.2.6 Distributed under the GNU Public License. See the file COPYING. Dedicated to the memory of William Schelter. The function bug_report() provides bug reporting information. (%i1) describe(exp); -- Function: exp () Represents the exponential function. Instances of 'exp ()' in input are simplified to '%e^'; 'exp' does not appear in simplified expressions. 'demoivre' if 'true' causes '%e^(a + b %i)' to simplify to '%e^(a (cos(b) + %i sin(b)))' if 'b' is free of '%i'. See 'demoivre'. '%emode', when 'true', causes '%e^(%pi %i x)' to be simplified. See '%emode'. '%enumer', when 'true' causes '%e' to be replaced by 2.718... whenever 'numer' is 'true'. See '%enumer'. (%i1) demoivre; (%o1) false (%i2) %e^(a + b*%i); %i b + a (%o2) %e (%i3) demoivre: not demoivre; (%o3) true (%i4) %e^(a + b*%i); a (%o4) %e (%i sin(b) + cos(b)) There are also some inexact matches for `exp'. Try `?? exp' to see them. (%o1) true (%i2) --8<---------------cut here---------------end--------------->8--- Thanks Daniel gnu/packages/maths.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) base-commit: 2efc787811a2c4586b763aeed319cb3777e7aa37 diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index c10794a089..d531db27c8 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -4420,7 +4420,8 @@ (define-public maxima ;; components at runtime. (wrap-program (string-append out "/bin/maxima") `("PATH" prefix (,binutils)))) - #t))))) + #t)) + (delete 'compress-documentation)))) (home-page "https://maxima.sourceforge.io") (synopsis "Numeric and symbolic expression manipulation") (description "Maxima is a system for the manipulation of symbolic and