GNU bug report logs - #57074
[PATCH] gnu: maxima: Fix to find info files.

Previous Next

Package: guix-patches;

Reported by: Daniel Meißner <daniel.meissner-i4k <at> ruhr-uni-bochum.de>

Date: Tue, 9 Aug 2022 10:31:01 UTC

Severity: normal

Tags: patch

Done: 宋文武 <iyzsong <at> envs.net>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 57074 in the body.
You can then email your comments to 57074 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#57074; Package guix-patches. (Tue, 09 Aug 2022 10:31:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Daniel Meißner <daniel.meissner-i4k <at> ruhr-uni-bochum.de>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Tue, 09 Aug 2022 10:31:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Daniel Meißner
 <daniel.meissner-i4k <at> ruhr-uni-bochum.de>
To: guix-patches <at> gnu.org
Cc: Daniel Meißner <daniel.meissner-i4k <at> ruhr-uni-bochum.de>
Subject: [PATCH] gnu: maxima: Fix to find info files.
Date: Tue,  9 Aug 2022 12:29:42 +0200
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]<phases>: 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 <at> 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 <at> 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 (<x>)

     Represents the exponential function.  Instances of 'exp (<x>)' in
     input are simplified to '%e^<x>'; '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(-)

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

base-commit: 2efc787811a2c4586b763aeed319cb3777e7aa37
-- 
2.37.1





Information forwarded to guix-patches <at> gnu.org:
bug#57074; Package guix-patches. (Tue, 09 Aug 2022 11:25:02 GMT) Full text and rfc822 format available.

Message #8 received at 57074 <at> debbugs.gnu.org (full text, mbox):

From: Maxime Devos <maximedevos <at> telenet.be>
To: Daniel Meißner <daniel.meissner-i4k <at> ruhr-uni-bochum.de>, 
 57074 <at> debbugs.gnu.org
Subject: Re: [bug#57074] [PATCH] gnu: maxima: Fix to find info files.
Date: Tue, 9 Aug 2022 13:24:03 +0200
[Message part 1 (text/plain, inline)]
On 09-08-2022 12:29, Daniel Meißner via Guix-patches via wrote:

> +         (delete 'compress-documentation))))

Add a comment such that future readers know not to remove that line (for 
simplification?) without having to dig through the git history.

Maybe

> The Maxima command ‘describe’ allows to pick the relevant portions from
> Maxima’s TeXinfo docs.  However it does not support reading gzipped info
> files.
would be a good comment?

Greetings,
Maxime.

[OpenPGP_0x49E3EE22191725EE.asc (application/pgp-keys, attachment)]
[OpenPGP_signature (application/pgp-signature, attachment)]

Information forwarded to guix-patches <at> gnu.org:
bug#57074; Package guix-patches. (Tue, 09 Aug 2022 13:08:02 GMT) Full text and rfc822 format available.

Message #11 received at 57074 <at> debbugs.gnu.org (full text, mbox):

From: Daniel Meißner
 <daniel.meissner-i4k <at> ruhr-uni-bochum.de>
To: 57074 <at> debbugs.gnu.org
Cc: Daniel Meißner <daniel.meissner-i4k <at> ruhr-uni-bochum.de>,
 Maxime Devos <maximedevos <at> telenet.be>
Subject: [PATCH v2] gnu: maxima: Fix to find info files.
Date: Tue,  9 Aug 2022 15:07:06 +0200
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]<phases>: Delete
'compress-documentation phase.
---

Thanks for the review, Maxime.  Here's the updated patch.

Best
Daniel

 gnu/packages/maths.scm | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index c10794a089..48c10906ed 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -4420,7 +4420,11 @@ (define-public maxima
                ;; components at runtime.
                (wrap-program (string-append out "/bin/maxima")
                  `("PATH" prefix (,binutils))))
-             #t)))))
+             #t))
+         ;; The Maxima command ‘describe’ allows to pick the relevant portions
+         ;; from Maxima’s Texinfo docs.  However it does not support reading
+         ;; gzipped info files.
+         (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

base-commit: 2efc787811a2c4586b763aeed319cb3777e7aa37
-- 
2.37.1





Information forwarded to guix-patches <at> gnu.org:
bug#57074; Package guix-patches. (Tue, 09 Aug 2022 16:51:02 GMT) Full text and rfc822 format available.

Message #14 received at 57074 <at> debbugs.gnu.org (full text, mbox):

From: Maxime Devos <maximedevos <at> telenet.be>
To: Daniel Meißner <daniel.meissner-i4k <at> ruhr-uni-bochum.de>, 
 57074 <at> debbugs.gnu.org
Subject: Re: [PATCH v2] gnu: maxima: Fix to find info files. (LGTM)
Date: Tue, 9 Aug 2022 18:50:02 +0200
[Message part 1 (text/plain, inline)]
On 09-08-2022 15:07, Daniel Meißner wrote:
> 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]<phases>: Delete
> 'compress-documentation phase.
> ---
>
> Thanks for the review, Maxime.  Here's the updated patch.
>
> Best
> Daniel
>
>   gnu/packages/maths.scm | 6 +++++-
>   1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
> index c10794a089..48c10906ed 100644
> --- a/gnu/packages/maths.scm
> +++ b/gnu/packages/maths.scm
> @@ -4420,7 +4420,11 @@ (define-public maxima
>                  ;; components at runtime.
>                  (wrap-program (string-append out "/bin/maxima")
>                    `("PATH" prefix (,binutils))))
> -             #t)))))
> +             #t))
> +         ;; The Maxima command ‘describe’ allows to pick the relevant portions
> +         ;; from Maxima’s Texinfo docs.  However it does not support reading
> +         ;; gzipped info files.
> +         (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
To be clear, I did not verify the patch, but it looks fine to me.

LGTM,
Maxime.

[OpenPGP_0x49E3EE22191725EE.asc (application/pgp-keys, attachment)]
[OpenPGP_signature (application/pgp-signature, attachment)]

Reply sent to 宋文武 <iyzsong <at> envs.net>:
You have taken responsibility. (Wed, 10 Aug 2022 07:20:01 GMT) Full text and rfc822 format available.

Notification sent to Daniel Meißner <daniel.meissner-i4k <at> ruhr-uni-bochum.de>:
bug acknowledged by developer. (Wed, 10 Aug 2022 07:20:01 GMT) Full text and rfc822 format available.

Message #19 received at 57074-done <at> debbugs.gnu.org (full text, mbox):

From: 宋文武 <iyzsong <at> envs.net>
To: Maxime Devos <maximedevos <at> telenet.be>
Cc: Daniel Meißner <daniel.meissner-i4k <at> ruhr-uni-bochum.de>,
 57074-done <at> debbugs.gnu.org
Subject: Re: bug#57074: [PATCH] gnu: maxima: Fix to find info files.
Date: Wed, 10 Aug 2022 15:19:07 +0800
Maxime Devos <maximedevos <at> telenet.be> writes:

> On 09-08-2022 15:07, Daniel Meißner wrote:
>> 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]<phases>: Delete
>> 'compress-documentation phase.
>> ---
>>
>> Thanks for the review, Maxime.  Here's the updated patch.
>>

Pushed, thank you!




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 07 Sep 2022 11:24:09 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 12 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.