Menu

#80 Build a FASL library, needed by SageMath

None
closed
nobody
build (1) ecl (1)
5
2021-10-12
2016-11-12
Ximin Luo
No

Hello Maxima developers,

Could you consider applying this patch? https://git.sagemath.org/sage.git/tree/build/pkgs/maxima/patches/build-fasl.patch

SageMath build the ECL version of Maxima as a FASL library and let the user play with the internals via ECL. This allows for smoother between Sage's python objects and Maxima's lisp objects - see here for details: https://doc.sagemath.org/html/en/reference/interfaces/sage/interfaces/maxima_lib.html

We are trying to package SageMath for Debian and the fact that the above FASL patch has not yet been applied, makes things slightly awkward for everyone involved. If you like, it could be hidden behind a configure flag like --enable-fasl.

Discussion

  • Michael Orlitzky

    Can I try this again? I am working to undo some of the custom maxima patching in both SageMath and Gentoo linux. Where possible, an easy way to do that is by upstreaming the changes that seem reasonable for inclusion, like this patch. We carry the following relatively-simple version of it in Gentoo:

    https://gitweb.gentoo.org/repo/gentoo.git/tree/sci-mathematics/maxima/files/ecls-4.patch

    If it causes some problems, maybe you can let us know and we can help resolve them.

     
  • Robert Dodier

    Robert Dodier - 2021-10-01

    Hi Michael, hi Ximin, sorry for the late reply. The patch looks like it adds the new feature of building a FASL library without changing any existing functionality. Is that right?

     
  • Michael Orlitzky

    In the ECL-but-no-MSVC branch, we already build a program, but not a shared library. As far as I can tell, the patch just makes it also build the shared library in that case.

     
  • Nils Bruin

    Nils Bruin - 2021-10-01

    Yes, this is really just an additional build-target. It would really be a bug if it affected anything when not activated.

     
  • Robert Dodier

    Robert Dodier - 2021-10-12
    • labels: --> build, ecl
    • status: open --> closed
    • Group: -->
     
  • Robert Dodier

    Robert Dodier - 2021-10-12

    I've applied the patch as commit a0d7a43. Sorry for the delay, and thanks for submitting the patch. I appreciate your help.

     
  • Michael Orlitzky

    Thank you!

     

Log in to post a comment.