-
-
Notifications
You must be signed in to change notification settings - Fork 487
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### 📚 upgrade Maxima to 5.46.0 Our 5.45.0 is getting old. This will fix #32898 as well. We have one mild regression found while working on #35615 (already reported upstream), but number of improvements in a number of places. As #35615 is a part of this PR branch, I propose to review them all here. We also promote `info` spkg to standard, and make it install `makeinfo/texi2any`, to deal with Maxima docs. This allows us to simplify configuration/installation of Maxima and ECL. ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. It should be `[x]` not `[x ]`. --> - [x] The title is concise, informative, and self-explanatory. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation accordingly. ### ⌛ Dependencies #35615 - provide `spkg-configure.m4` for Maxima <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> URL: #35619 Reported by: Dima Pasechnik Reviewer(s): Dima Pasechnik, François Bissey, Gonzalo Tornaría, Matthias Köppe, Mauricio Collares, Michael Orlitzky
- Loading branch information
Showing
31 changed files
with
122 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
$(MP_LIBRARY) readline gc libffi | ||
$(MP_LIBRARY) readline gc libffi info | ||
|
||
---------- | ||
All lines of this file are ignored except the first. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
texinfo | ||
texinfo info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,14 @@ | ||
SAGE_SPKG_CONFIGURE([info], [ | ||
AC_PATH_PROG(INFO, info) | ||
AS_IF([test -z "${INFO}"], [sage_spkg_install_info=yes]) | ||
AS_IF([test -z "${INFO}"], [sage_spkg_install_info=yes | ||
], [ | ||
dnl very old makeinfo are not texi2any, newer are symlinks to texi2any | ||
AC_PATH_PROG(TEXI2ANY, texi2any) | ||
AS_IF([test -z "${TEXI2ANY}"], [sage_spkg_install_info=yes | ||
], [ | ||
AS_IF([makeinfo -c foo 2>&1 | grep -q invalid], [ | ||
dnl makeinfo found, but too old, and does not support all options that ecl likes to use | ||
sage_spkg_install_info=yes]) | ||
]) | ||
]) | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
cd src/info | ||
cd src | ||
sdh_make_install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
optional | ||
standard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
tarball=maxima-VERSION.tar.gz | ||
sha1=ed15d5285794413ba94412079eca3d0fa55a47bf | ||
md5=9b9ae1dace55b1386739dabaa9122e60 | ||
cksum=1765409766 | ||
sha1=1010594e6d6082bbd8efaac1b7756ec1721a4ed5 | ||
md5=3c01f1daa6936e11d8713fef7751d3fe | ||
cksum=2420393096 | ||
upstream_url=https://sourceforge.net/projects/maxima/files/Maxima-source/VERSION-source/maxima-VERSION.tar.gz/download |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
ecl | ||
ecl info | ||
|
||
---------- | ||
All lines of this file are ignored except the first. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
maxima-ecl | ||
maxima-fas |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
maxima |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
math/maxima |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
sci-mathematics/maxima[ecls] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
5.45.0.p0 | ||
5.46.0 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
SAGE_SPKG_CONFIGURE([maxima], [ | ||
m4_pushdef([SAGE_MAXIMA_MINVER],["5.45.0"])dnl this version and higher allowed | ||
SAGE_SPKG_DEPCHECK([ecl], [ | ||
dnl First check for the "maxima" executable in the user's PATH, because | ||
dnl we still use pexpect to communicate with it in a few places. | ||
AC_CACHE_CHECK([for Maxima >= $SAGE_MAXIMA_MINVER], [ac_cv_path_MAXIMA], [ | ||
AC_PATH_PROGS_FEATURE_CHECK([MAXIMA], [maxima], [ | ||
maxima_version=`$ac_path_MAXIMA --version 2>&1 | tail -n 1\ | ||
| $SED -n -e 's/Maxima *\([[0-9]]*\.[[0-9]]*\.[[0-9]]*\)/\1/p'` | ||
AS_IF([test -n "$maxima_version"], [ | ||
AX_COMPARE_VERSION([$maxima_version], [ge], [SAGE_MAXIMA_MINVER], [ | ||
ac_cv_path_MAXIMA="$ac_path_MAXIMA" | ||
ac_path_MAXIMA_found=: | ||
]) | ||
]) | ||
]) | ||
]) | ||
SAGE_MAXIMA="$ac_cv_path_MAXIMA" | ||
AS_IF([test -z "${SAGE_MAXIMA}"], [ | ||
sage_spkg_install_maxima=yes | ||
],[ | ||
dnl If we have the executable, check also for the ECL library. | ||
AC_MSG_CHECKING([if ECL can "require" the maxima module]) | ||
AS_IF([ecl --eval "(require 'maxima)" --eval "(quit)" \ | ||
>&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD], [ | ||
AC_MSG_RESULT(yes) | ||
], [ | ||
AC_MSG_RESULT(no) | ||
sage_spkg_install_maxima=yes | ||
]) | ||
]) | ||
]) | ||
m4_popdef([SAGE_MAXIMA_MINVER]) | ||
],[],[],[ | ||
# post-check | ||
AS_IF([test x$sage_spkg_install_maxima = xyes], [ | ||
dnl Leaving this variable empty will tell sagelib to load | ||
dnl the maxima library (within ECL) by name instead of by | ||
dnl absolute path. | ||
SAGE_MAXIMA='${prefix}'/bin/maxima | ||
SAGE_MAXIMA_FAS='${prefix}'/lib/ecl/maxima.fas | ||
]) | ||
AC_SUBST(SAGE_MAXIMA, "${SAGE_MAXIMA}") | ||
AC_SUBST(SAGE_MAXIMA_FAS, "${SAGE_MAXIMA_FAS}") | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.