Page MenuHomeFreeBSD

math/maxima: Update to 5.44.0
ClosedPublic

Authored by salvadore on Jun 16 2020, 10:08 PM.

Details

Summary

While here, also change most ${REINPLACE_CMD} into patches.

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

@thierry: Please be particularly careful to extra-patch-src_hayat.lisp: a chunk of the original patch you submitted is no more appliable to maxima 5.44.0.

I tested it with ECL-20.4.24 from PR 247283, but pkg-plist is not versioned:

===> Checking for items in STAGEDIR missing from pkg-plist
Error: Orphaned: lib/ecl-20.4.24/%%BINNAME%%.fas
Error: Orphaned: man/de/man1/%%BINNAME%%.1.gz
Error: Orphaned: man/ru/man1/%%BINNAME%%.1.gz
===> Checking for items in pkg-plist which are not in STAGEDIR
Error: Missing: lib/ecl-16.1.3/%%BINNAME%%.fas

I tested it with ECL-20.4.24 from PR 247283, but pkg-plist is not versioned:

===> Checking for items in STAGEDIR missing from pkg-plist
Error: Orphaned: lib/ecl-20.4.24/%%BINNAME%%.fas
Error: Orphaned: man/de/man1/%%BINNAME%%.1.gz
Error: Orphaned: man/ru/man1/%%BINNAME%%.1.gz
===> Checking for items in pkg-plist which are not in STAGEDIR
Error: Missing: lib/ecl-16.1.3/%%BINNAME%%.fas

I can add this as a fix in my update for ecl if you want.
I guess it's hard to do it here, and easier to do it as part of ecl update?

I tested it with ECL-20.4.24 from PR 247283, but pkg-plist is not versioned:

===> Checking for items in STAGEDIR missing from pkg-plist
Error: Orphaned: lib/ecl-20.4.24/%%BINNAME%%.fas
Error: Orphaned: man/de/man1/%%BINNAME%%.1.gz
Error: Orphaned: man/ru/man1/%%BINNAME%%.1.gz
===> Checking for items in pkg-plist which are not in STAGEDIR
Error: Missing: lib/ecl-16.1.3/%%BINNAME%%.fas

I can add this as a fix in my update for ecl if you want.
I guess it's hard to do it here, and easier to do it as part of ecl update?

Sure, please do it. Thanks!

I guess it's hard to do it here, and easier to do it as part of ecl update?

Sure, please do it. Thanks!

Since we have a symlink for lib/ecl, I guess thet it could simply be registered as %%SAGE%%lib/ecl/maxima.fas
(not tested)

I fixed the issue following thierry's suggestion.
And I also fixed the issue with the man pages.

This is OK for math/sage: it compiles and installs cleanly, and the examples from Maxima (built with ECL) are OK:

┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.1, Release Date: 2020-05-20                     │
│ Using Python 3.7.7. Type "help()" for help.                        │
└────────────────────────────────────────────────────────────────────┘
sage: f = maxima.eval('ij_entry[i,j] := i/j')
sage: A = maxima('genmatrix(ij_entry,4,4)'); A
matrix([1,1/2,1/3,1/4],[2,1,2/3,1/2],[3,3/2,1,3/4],[4,2,4/3,1])
sage: A.determinant()
0
sage: A.echelon()
matrix([1,1/2,1/3,1/4],[0,0,0,0],[0,0,0,0],[0,0,0,0])
sage: A.eigenvalues()
[[0,4],[3,1]]
sage: A.eigenvectors()
[[[0,4],[3,1]],[[[1,0,0,-4],[0,1,0,-2],[0,0,1,-4/3]],[[1,2,3,4]]]]
This revision is now accepted and ready to land.Jun 18 2020, 7:27 PM
This revision was automatically updated to reflect the committed changes.