Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 112754 - Maxima 5.9.2 available (symbolic computation program), supersedes 5.9.1
Summary: Maxima 5.9.2 available (symbolic computation program), supersedes 5.9.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2005-11-16 15:40 UTC by Robert Dodier
Modified: 2006-04-15 08:00 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
files/maxima-5.9.2-unicode-fix.patch (maxima-5.9.2-unicode-fix.patch,2.67 KB, text/plain)
2005-11-17 05:13 UTC, Thomas Weidner
Details
maxima-5.9.2.ebuild (maxima-5.9.2.ebuild,2.31 KB, text/plain)
2005-11-17 05:14 UTC, Thomas Weidner
Details
config.log of failed emerge (config.log,5.43 KB, text/plain)
2005-12-02 17:15 UTC, Uwe Fechner
Details
maxima-5.9.3.ebuild (maxima-5.9.3.ebuild,3.13 KB, text/plain)
2006-04-07 08:44 UTC, Peter Gustafson
Details
maxima-5.9.3-default-browser.patch (maxima-5.9.3-default-browser.patch,489 bytes, patch)
2006-04-07 08:45 UTC, Peter Gustafson
Details | Diff
maxima-5.9.3-unicode-fix.patch (maxima-5.9.3-unicode-fix.patch,1.29 KB, patch)
2006-04-07 09:19 UTC, Peter Gustafson
Details | Diff
maxima-5.9.3-emaxima.patch (maxima-5.9.3-emaxima.patch,706 bytes, patch)
2006-04-07 09:19 UTC, Peter Gustafson
Details | Diff
maxima-5.9.3.ebuild (maxima-5.9.3.ebuild,3.29 KB, text/plain)
2006-04-07 09:21 UTC, Peter Gustafson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Dodier 2005-11-16 15:40:38 UTC
It appears that Gentoo has Maxima 5.9.1, which is superseded by Maxima 5.9.2.
The source tarball is available from the SourceForge file manager (linked from
http://sf.net/projects/maxima/). Maxima 5.9.2 has been about a year in
development since 5.9.1 and includes many bug fixes and enhancements.


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Thomas Weidner 2005-11-17 05:13:46 UTC
Created attachment 73082 [details]
files/maxima-5.9.2-unicode-fix.patch
Comment 2 Thomas Weidner 2005-11-17 05:14:44 UTC
Created attachment 73083 [details]
maxima-5.9.2.ebuild

tested ~amd64 with sbcl
Comment 3 Gilles Schintgen 2005-11-22 12:55:35 UTC
Seems to work fine. (With gcl, x86) 
 
Thanks! 
Comment 4 M. Edward Borasky 2005-11-23 22:42:06 UTC
(In reply to comment #3)
> Seems to work fine. (With gcl, x86) 
>  
> Thanks! 

works on Pentium III as well

Comment 5 Uwe Fechner 2005-12-02 17:03:46 UTC
emerge maxima failes for me:

Calculating dependencies ...done!
>>> emerge (1 of 1) sci-mathematics/maxima-5.9.2 to /
>>> md5 files   ;-) maxima-5.9.2.ebuild
>>> md5 files   ;-) files/maxima-5.9.2-unicode-fix.patch
>>> md5 files   ;-) files/digest-maxima-5.9.2
>>> md5 src_uri ;-) maxima-5.9.2.tar.gz
>>> Unpacking source...
>>> Unpacking maxima-5.9.2.tar.gz to /var/tmp/portage/maxima-5.9.2/work
 * Applying maxima-5.9.2-unicode-fix.patch ...                           [ ok ]
>>> Source unpacked.
 * Running aclocal ...                                                   [ ok ]
 * Running autoconf ...                                                  [ ok ]
 * Running automake ...                                                  [ ok ]
 * econf: updating maxima-5.9.2/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating maxima-5.9.2/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man
--infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc
--localstatedir=/var/lib --build=i686-pc-linux-gnu --infodir=/usr/share/info
--enable-gcl
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcl... true
configure: error: unable to run gcl executable "gcl".

!!! Please attach the config.log to your bug report:
!!! /var/tmp/portage/maxima-5.9.2/work/maxima-5.9.2/config.log

!!! ERROR: sci-mathematics/maxima-5.9.2 failed.
!!! Function econf, Line 485, Exitcode 0
!!! econf failed
!!! If you need support, post the topmost build error, NOT this status message.

Any idea?

ufechner
Comment 6 Uwe Fechner 2005-12-02 17:15:34 UTC
Created attachment 73964 [details]
config.log of failed emerge
Comment 7 Uwe Fechner 2005-12-04 05:03:43 UTC
I solved my problem with emerging maxima:

- add clisp to the use flags
- emerge -C gcl
- emerge clisp
- emerge maxima

Still maxima should compile with gcl, too.

One problem left:

(%i2) ? sum
Maxima encountered a Lisp error:

 failed to find info directory

Automatically continuing.
To reenable the Lisp debugger set *debugger-hook* to nil.
(%i3)   

Where can I set the info directory?
Or what else do I have to emerge?

Regards:

Uwe
Comment 8 Robert Dodier 2005-12-04 10:00:13 UTC
I believe the "failed to find info directory" problem mentioned by Uwe is the
same as http://bugs.gentoo.org/show_bug.cgi?id=112717.

Uwe wrote:

----------------- begin quoted text -----------------
One problem left:

(%i2) ? sum
Maxima encountered a Lisp error:

 failed to find info directory

Automatically continuing.
To reenable the Lisp debugger set *debugger-hook* to nil.
(%i3)   

Where can I set the info directory?
Or what else do I have to emerge?
------------------ end quoted text ------------------

"failed to find info directory" is the message Maxima prints when it fails to
find maxima.info in the place it expected it to be.

One known cause for that is some build configurations cause maxima.info to be
compressed into maxima.info.gz, but Maxima doesn't know about compressed info.
If the build has created maxima.info.gz, it must be modified to create the
uncompressed maxima.info instead.

If compressed info is not the problem, some other things to look at:

What is reported by
:lisp *INFO-PATHS*
(entered at the Maxima input prompt) ??

Does maxima.info exist in the directory named by *INFO-PATHS* ??

Hope this helps,
Robert Dodier
robert.dodier@gmail.com
Maxima project developer
Comment 9 Uwe Fechner 2005-12-04 12:21:24 UTC
Thanks.
The following steps fixed my problem:
su -
cd /usr/share/info
gunzip maxima.info*

? sum gives the excpected result now.

By the way: The result for *INFO-PATHS*

(%i2) :lisp *INFO-PATHS*
Maxima encountered a Lisp error:


EVAL: variable *INFO-PATHS* has no value

Automatically continuing.
To reenable the Lisp debugger set *debugger-hook* to nil.
(%i2)      

As it works fine now, I don't mind.

Regards:

Uwe
Comment 10 Robert Dodier 2005-12-04 18:48:49 UTC
Uwe wrote:
--------- begin quoted text ---------
su -
cd /usr/share/info
gunzip maxima.info*

? sum gives the excpected result now.
---------- end quoted text ----------

OK, glad to hear it works.
But is there some way to change the configuration so that maxima.info is not
compressed to begin with?

Sorry about *INFO-PATHS*. It is in a package other than the default. Should be
like this:

:lisp CL-INFO::*INFO-PATHS*

Thanks for your interest in Maxima,
Robert Dodier
Comment 11 Sébastien Fabbro (RETIRED) gentoo-dev 2006-01-26 11:11:22 UTC
I put an ebuild on the gentoo science overlay (http://gentooscience,org) for maxima-5.9.2, ready for more testing.
Changes of that one are the following:
- USE flags for tcltk and rlwrap (no GUI if not asked for)
- ghostview replacement to gv
- some cleaning
On amd64, I tested it with gcl, could not compile with sbcl.
The info files are read fine within maxima gunzipped or not.
Comment 12 M. Edward Borasky 2006-01-26 19:21:50 UTC
(In reply to comment #11)
> I put an ebuild on the gentoo science overlay (http://gentooscience,org) for
> maxima-5.9.2, ready for more testing.
> Changes of that one are the following:
> - USE flags for tcltk and rlwrap (no GUI if not asked for)
> - ghostview replacement to gv
> - some cleaning
> On amd64, I tested it with gcl, could not compile with sbcl.
> The info files are read fine within maxima gunzipped or not.
1. Where can I get the ebuild? I can test this.
2. Which version of SBCL? I haven't tried it recently, but I'm currently running SBCL 0.9.8, and aside from some configuration issues with thread libraries, it's been running very well. I usually build maxima with GCL, but I can certainly try the new ebuild with all four Lisp processors.
> 

Comment 13 Sébastien Fabbro (RETIRED) gentoo-dev 2006-01-27 04:25:01 UTC
In reply to Comment #12:
Either follow instructions on http://gentooscience.org, "Obtaining the Overlay"
or grab the ebuild and patches on 
https://gentooscience.org/browser/overlay/sci-mathematics/maxima

I actually just tested the ebuild on a x86 machine, and now I encountered the problems others did, namely with the gunzipped info and the autoreconf need. But the sbcl compile worked fine. I updated the overlay with the eautoreconf stuff back in place.

As for amd64 building with sbcl (stable 0.9.3), the compilation stopped immediately with:
--------------------------
test -d binary-sbcl || mkdir binary-sbcl
sbcl --noinform --noprint --eval '(progn (load "../lisp-utils/defsystem.lisp") (load "../lisp-utils/make-depends.lisp") (funcall (intern "CREATE-DEPENDENCY-FILE" :mk) "binary-sbcl/maxima.core" "sbcl-depends.mk") (sb-ext:quit))'
fatal error encountered in SBCL pid 12789(tid 46912504393728):
can't find core file
-----------------------

I am not a lisp expert and I rarely used maxima ;)
It might be some simple config that sbcl ebuild does not take care of.
Comment 14 Peter Gustafson 2006-01-27 06:19:09 UTC
(In reply to comment #13)
Just reporting a successful build on both x86 and amd64 with the following use flags:

sci-mathematics/maxima-5.9.2  -auctex +clisp (-cmucl) +emacs -rlwrap -sbcl +tcltk +tetex
Comment 15 Sébastien Fabbro (RETIRED) gentoo-dev 2006-01-28 12:12:24 UTC
There is an ebuild update on the overlay with the following:
- forced rlwrap for sbcl and cmucl (according to README.lisps), thus removing flags
- patches for emaxima and default browser
- forced sbcl version >= 0.9.4 
- redo Makefile's only for sbcl
It looks like the amd64 problem I had was just a version of sbcl. I compiled and run it fine with sbcl 0.9.4 and 0.9.8.
Comment 16 M. Edward Borasky 2006-01-28 16:19:39 UTC
(In reply to comment #15)
> There is an ebuild update on the overlay with the following:
> - forced rlwrap for sbcl and cmucl (according to README.lisps), thus removing
> flags
> - patches for emaxima and default browser
> - forced sbcl version >= 0.9.4 
> - redo Makefile's only for sbcl
> It looks like the amd64 problem I had was just a version of sbcl. I compiled
> and run it fine with sbcl 0.9.4 and 0.9.8.
> 
Everything (including wxmaxima) looks like it's working with x86/Athlon/P3. The one thing I haven't tested yet is whether xmaxima still crashes KDE when you close the window with the X in the upper right corner. That's a Lisp-specific bug, and I've forgotten which Lisp triggers it. It's in bugzilla somewhere, though.

Comment 17 Robert Dodier 2006-01-28 16:42:06 UTC
Hello, someone else wrote:

> one thing I haven't tested yet is whether xmaxima
> still crashes KDE when you close the window with
> the X in the upper right corner. That's a Lisp-specific
> bug, and I've forgotten which Lisp triggers it.

If I remember correctly, the problem was this: When Xmaxima closes,
it attempts to kill the associated Maxima process.
The process id variable was initialized to -1, and 
in Clisp (again, iirc) the function to return the process id
was renamed so the variable remained -1. Then "kill -1"
killed off everything.

So, I think Clisp is the version that should be tested --
I think it should pass the test (i.e., close without killing
everything).

Robert Dodier
Maxima developer
Comment 18 Peter Gustafson 2006-04-07 08:44:03 UTC
Created attachment 84135 [details]
maxima-5.9.3.ebuild

Hi, maxima-5.9.3 has been released and I've successfully built in on amd64 and x86 using this ebuild.  Only a slight mod from the prior ebuild, I've dropped the unicode patch since I don't know enough to update it myself.  I've created a new maxima-5.9.3-default-browser.patch which is very similar to the old one.

Pete Gustafson
Comment 19 Peter Gustafson 2006-04-07 08:45:18 UTC
Created attachment 84136 [details, diff]
maxima-5.9.3-default-browser.patch
Comment 20 Thomas Weidner 2006-04-07 08:53:02 UTC
unicode patch is a simple find -name \*.lisp | xargs sed -i 's/base-char/character/g'
IIRC...i'm quite busy right now
Comment 21 Peter Gustafson 2006-04-07 09:19:10 UTC
Created attachment 84137 [details, diff]
maxima-5.9.3-unicode-fix.patch
Comment 22 Peter Gustafson 2006-04-07 09:19:47 UTC
Created attachment 84138 [details, diff]
maxima-5.9.3-emaxima.patch
Comment 23 Peter Gustafson 2006-04-07 09:21:23 UTC
Created attachment 84139 [details]
maxima-5.9.3.ebuild

OK, thanks for the suggestion.  I think all the patches are updated now.  Note this means that the prior ebuild maxima-5.9.2.ebuild worked unchanged for me.  I'm reposting it as maxima-5.9.3.ebuild in order to make my previous version obsolete.

Pete
Comment 24 Sébastien Fabbro (RETIRED) gentoo-dev 2006-04-08 10:09:58 UTC
Thanks for the inputs. maxima-5.9.3 in http://gentooscience.org overlay. 
Some changes from comment #23:
- added nls support with linguas stuff (only pt and es supported)
- fixed the 50maxima-gentoo.el with proper versioning
- re-added opera to possible browser in maxima-5.9.3-default-browser.patch
Please test and report here. It worked for me on amd64 with gcl, with and without tcl/tk gui.
Comment 25 Thomas Weidner 2006-04-09 06:18:32 UTC
works here on amd64 with sbcl 0.9.11
Comment 26 Thomas Weidner 2006-04-09 09:02:17 UTC
i'd suggest to remove the unicode fix...the only affected source line is specific to lispworks,a propitary lisp. the unicode fix was meant to fix compile errors with unicode enabled sbcl, which doesn't seem to be affected by the patch...i don't know about base-char/character in lispworks,so perhaps silently remove the patch?
Comment 27 Marcus D. Hanwell (RETIRED) gentoo-dev 2006-04-15 08:00:24 UTC
Committed sci-mathematics/maxima-5.9.3 to the tree which should fix these issues. Thanks to you all for your work on this package, please let me know if you have any further issues.