Hi Camm,

I updated the debdiff to maxima 5.38.1-2.

I really hope we can make some progress on this topic. I read again the
private mail that you sent me in March 2015 and I must say that I don't
really understand everything. We tried using maxima-gcl with Sagemath,
but we get Sagemath test failures that are not trivial to fix for us. I
also think that we need the fasl file. (Is that what you called
common-lisp-controller library in your mail?) Unfortunately we have
nobody with any Lisp experience. Because of this, changing the way
Sagemath and maxima work together seems hard.

We are currently working a lot on packaging Sagemath for Debian stretch,
as can be seen from the amount of traffic on our mailing list [1]. I
think we have a realistic chance to get everything that is required done
before the freeze.

maxima is now one of two issues that we don't really know how to
resolve. (The other one is pari, which is resolved if pari 2.9 is
released in time for stretch.)

Best,
Tobias

[1] https://lists.alioth.debian.org/mailman/listinfo/debian-science-sagemath

diff -Nru maxima-5.38.1/debian/changelog maxima-5.38.1/debian/changelog
--- maxima-5.38.1/debian/changelog      2016-10-01 12:33:53.000000000 +0100
+++ maxima-5.38.1/debian/changelog      2015-03-02 17:33:29.000000000 +0000
@@ -1,3 +1,12 @@
+maxima (5.38.1-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Create new package maxima-ecl including the maxima ecl binary
+    and a fasl library for ecl.
+  * Apply patch build-fasl.patch from Sage to build the fasl library.
+
+ -- Tobias Hansen <than...@debian.org>  Mon, 02 Mar 2015 18:33:29 +0100
+
 maxima (5.38.1-2) unstable; urgency=medium
 
   * Build-dep against latest gcl
diff -Nru maxima-5.38.1/debian/control maxima-5.38.1/debian/control
--- maxima-5.38.1/debian/control        2016-10-01 12:29:40.000000000 +0100
+++ maxima-5.38.1/debian/control        2015-03-02 17:33:29.000000000 +0000
@@ -2,7 +2,7 @@
 Section: math
 Priority: optional
 Maintainer: Camm Maguire <c...@debian.org>
-Build-Depends: gcl ( >= 2.6.12-35 ) , texinfo, libgmp3-dev, libreadline-dev, 
locales, automake, debhelper ( >=9 ), autoconf2.13, gawk | awk, 
texlive-latex-recommended, sharutils, libxmu-dev, libxaw7-dev, tex-common, 
python
+Build-Depends: gcl ( >= 2.6.12-35 ) , texinfo, libgmp3-dev, libreadline-dev, 
locales, automake, debhelper ( >=9 ), autoconf2.13, gawk | awk, 
texlive-latex-recommended, sharutils, libxmu-dev, libxaw7-dev, tex-common, 
python, ecl, libffi-dev
 Standards-Version: 3.9.8
 
 Package: maxima
@@ -123,3 +123,19 @@
  .
  This package contains a set of contributed routines and add-on 
  packages.
+
+Package: maxima-ecl
+Architecture: any
+Depends:  ${shlibs:Depends}, ${misc:Depends}, maxima
+Description: Computer algebra system -- ecl runtime and fasl library
+ Maxima is a fully symbolic computation program.  It is full featured
+ doing symbolic manipulation of polynomials, matrices, rational
+ functions, integration, Todd-coxeter methods for finite group
+ analysis, graphing, multiple precision floating point computation.
+ It has a symbolic source level debugger for maxima code.  Maxima is
+ based on the original Macsyma developed at MIT in the 1970s.  It is
+ quite reliable, and has good garbage collection, and no memory leaks.
+ It comes with hundreds of self tests.
+ .
+ This package contains a maxima runtime compiled with ecl
+ as well as well as a fasl library of maxima for ecl.
diff -Nru maxima-5.38.1/debian/maxima-ecl.install.in 
maxima-5.38.1/debian/maxima-ecl.install.in
--- maxima-5.38.1/debian/maxima-ecl.install.in  1970-01-01 01:00:00.000000000 
+0100
+++ maxima-5.38.1/debian/maxima-ecl.install.in  2015-03-02 17:33:29.000000000 
+0000
@@ -0,0 +1,2 @@
+debian/tmp/usr/lib/maxima/@MVERS@/binary-ecl/maxima
+debian/tmp/usr/lib/ecl/maxima.fas
diff -Nru maxima-5.38.1/debian/maxima.install.in 
maxima-5.38.1/debian/maxima.install.in
--- maxima-5.38.1/debian/maxima.install.in      2013-05-01 14:39:37.000000000 
+0100
+++ maxima-5.38.1/debian/maxima.install.in      2015-03-02 17:33:29.000000000 
+0000
@@ -1,5 +1,6 @@
 debian/tmp/usr/bin/maxima
-debian/tmp/usr/lib
+debian/tmp/usr/lib/maxima/@MVERS@/binary-gcl/maxima
+debian/tmp/usr/lib/maxima/@MVERS@/mgnuplot
 debian/tmp/usr/share/man/man1/maxima.1
 debian/tmp/usr/share/maxima/@MVERS@/demo
 debian/tmp/usr/share/doc/maxima
diff -Nru maxima-5.38.1/debian/patches/build-fasl.patch 
maxima-5.38.1/debian/patches/build-fasl.patch
--- maxima-5.38.1/debian/patches/build-fasl.patch       1970-01-01 
01:00:00.000000000 +0100
+++ maxima-5.38.1/debian/patches/build-fasl.patch       2015-03-02 
17:33:29.000000000 +0000
@@ -0,0 +1,21 @@
+Description: Build a fasl library for ecl in addition to an executable program.
+ References:
+ * http://trac.sagemath.org/ticket/16178
+ * https://github.com/cschwan/sage-on-gentoo/issues/226
+ * https://bugs.gentoo.org/show_bug.cgi?id=499634
+Origin: 
http://git.sagemath.org/sage.git/tree/build/pkgs/maxima/patches/build-fasl.patch
+
+--- a/src/maxima.system
++++ b/src/maxima.system
+@@ -76,6 +76,11 @@
+                            ;; Convert dir/foo.fas to dir/foo.o
+                            (make-pathname :type "o" :defaults p))
+                        files)))
++      (c::build-fasl "binary-ecl/maxima" :lisp-files obj
++                        :ld-flags
++                        (let ((x (symbol-value (find-symbol 
"*AUTOCONF-LD-FLAGS*"
++                                                            (find-package 
"MAXIMA")))))
++                          (if (and x (not (string= x ""))) (list x))))
+       (c::build-program "binary-ecl/maxima" :lisp-files obj
+                         :ld-flags
+                         (let ((x (symbol-value (find-symbol 
"*AUTOCONF-LD-FLAGS*"
diff -Nru maxima-5.38.1/debian/patches/series 
maxima-5.38.1/debian/patches/series
--- maxima-5.38.1/debian/patches/series 2016-04-13 15:26:05.000000000 +0100
+++ maxima-5.38.1/debian/patches/series 2015-03-02 17:33:29.000000000 +0000
@@ -6,3 +6,4 @@
 fix_closeto_test
 cl_info_separate_index_dir
 do_not_remake_docs_2
+build-fasl.patch
diff -Nru maxima-5.38.1/debian/rules maxima-5.38.1/debian/rules
--- maxima-5.38.1/debian/rules  2016-10-01 12:30:06.000000000 +0100
+++ maxima-5.38.1/debian/rules  2015-03-02 17:33:29.000000000 +0000
@@ -56,6 +56,7 @@
        echo '(progn (setq si::*optimize-maximum-pages* nil)(si::save-system 
"gcl"))' | GCL_ANSI=t gcl
 
        git_found=false PATH=$$(pwd):$$PATH GCL_ANSI=t ./configure --enable-gcl 
$$(gcl -batch -eval '(progn #-native-reloc(princ "--enable-gcl-alt-link"))') \
+               --enable-ecl \
                --enable-sys-proclaim \
                --prefix=/usr \
                --libexec=/usr/lib \
@@ -146,6 +147,10 @@
 
        $(MAKE) install DESTDIR=$$(pwd)/debian/tmp INSTALL="/usr/bin/install -D"
 
+       mkdir -p $$(pwd)/debian/tmp/usr/lib/ecl
+       cp $$(pwd)/src/binary-ecl/maxima.fas \
+               debian/tmp/usr/lib/ecl/
+
        mkdir -p $$(pwd)/debian/tmp/usr/share/doc/maxima-doc
        cp -a debian/tmp/usr/share/maxima/$(MVERS)/doc/* \
                $$(pwd)/debian/tmp/usr/share/doc/maxima-doc 
@@ -229,7 +234,7 @@
        dh_installchangelogs  -i debian/ChangeLog
        dh_link -i
        dh_strip -i
-       dh_compress -i -X.shtml -X.hh -Xmaxima-index.lisp
+       dh_compress -i -X.shtml -X.hh -X.info
        dh_fixperms -i
        dh_installdeb -i
        dh_shlibdeps -i
@@ -252,7 +257,7 @@
        dh_installchangelogs  -a debian/ChangeLog
        dh_link -a
        dh_strip -a $(NO_STRIP)
-       dh_compress -a
+       dh_compress -a -Xmaxima-index.lisp
        dh_fixperms -a
        dh_installdeb -a
        dh_shlibdeps -a

Reply via email to