Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Merge branch 't/21295/sequences/recognizable' into t/21203/sequences/…
Browse files Browse the repository at this point in the history
…k-regular

* t/21295/sequences/recognizable: (54 commits)
  Updated SageMath version to 9.3
  build/pkgs/fplll/spkg-install.in: Configure --without-qd if we use gcc from spkg
  build/pkgs/fplll/spkg-configure.m4: Add depcheck on gcc
  build/pkgs/ppl/spkg-configure.m4: Add depcheck on gcc
  build/pkgs/brial/spkg-configure.m4: Add depcheck on gcc
  build/pkgs/{freetype,libgd}/spkg-configure.m4: Add depcheck for gcc
  build/pkgs/zeromq/spkg-configure.m4: Add depcheck for gcc
  build/pkgs/ntl/spkg-configure.m4: Add depcheck for gcc
  Trac #21295 review issue 29: notice minimize vs field
  Trac #21295 review issue 7: document accessing coefficients
  Trac #21295 review issue 33: rename to number_of_zeros (as it should be)
  Updated SageMath version to 9.3.rc5
  #31628: two doctests
  Trac #25034: move reference to master bib
  Trac #25034: formatting + typos
  Trac #25034: eval_poly deprecation + doc improved
  increment pynac patch level again
  add doctest
  trac 31645 handling of constant term in series
  fix doctest for 32-bit
  ...
  • Loading branch information
dkrenn committed May 10, 2021
2 parents c4bf7ae + 42606e3 commit 1dbecfd
Show file tree
Hide file tree
Showing 50 changed files with 667 additions and 243 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tox-experimental.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
fail-fast: false
max-parallel: 6
matrix:
tox_system_factor: [ubuntu-trusty, ubuntu-xenial, ubuntu-bionic, ubuntu-focal, ubuntu-groovy, ubuntu-hirsute, debian-jessie, debian-stretch, debian-buster, debian-bullseye, debian-sid, linuxmint-17, linuxmint-18, linuxmint-19, linuxmint-19.3, linuxmint-20.1, fedora-26, fedora-27, fedora-28, fedora-29, fedora-30, fedora-31, fedora-32, fedora-33, fedora-34, centos-7, centos-8, gentoo, archlinux-latest, slackware-14.2, conda-forge, ubuntu-bionic-i386, ubuntu-focal-i386, debian-buster-i386, centos-7-i386]
tox_system_factor: [ubuntu-trusty, ubuntu-xenial, ubuntu-bionic, ubuntu-focal, ubuntu-groovy, ubuntu-hirsute, debian-jessie, debian-stretch, debian-buster, debian-bullseye, debian-sid, linuxmint-17, linuxmint-18, linuxmint-19, linuxmint-19.3, linuxmint-20.1, fedora-26, fedora-27, fedora-28, fedora-29, fedora-30, fedora-31, fedora-32, fedora-33, fedora-34, centos-7, centos-8, gentoo, archlinux-latest, slackware-14.2, conda-forge, ubuntu-bionic-i386, manylinux-2_24-i686, debian-buster-i386, centos-7-i386]
tox_packages_factor: [maximal]
targets_pattern: [0-g, h-o, p, q-z]
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tox-optional.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
fail-fast: false
max-parallel: 6
matrix:
tox_system_factor: [ubuntu-trusty, ubuntu-xenial, ubuntu-bionic, ubuntu-focal, ubuntu-groovy, ubuntu-hirsute, debian-jessie, debian-stretch, debian-buster, debian-bullseye, debian-sid, linuxmint-17, linuxmint-18, linuxmint-19, linuxmint-19.3, linuxmint-20.1, fedora-26, fedora-27, fedora-28, fedora-29, fedora-30, fedora-31, fedora-32, fedora-33, fedora-34, centos-7, centos-8, gentoo, archlinux-latest, slackware-14.2, conda-forge, ubuntu-bionic-i386, ubuntu-focal-i386, debian-buster-i386, centos-7-i386]
tox_system_factor: [ubuntu-trusty, ubuntu-xenial, ubuntu-bionic, ubuntu-focal, ubuntu-groovy, ubuntu-hirsute, debian-jessie, debian-stretch, debian-buster, debian-bullseye, debian-sid, linuxmint-17, linuxmint-18, linuxmint-19, linuxmint-19.3, linuxmint-20.1, fedora-26, fedora-27, fedora-28, fedora-29, fedora-30, fedora-31, fedora-32, fedora-33, fedora-34, centos-7, centos-8, gentoo, archlinux-latest, slackware-14.2, conda-forge, ubuntu-bionic-i386, manylinux-2_24-i686, debian-buster-i386, centos-7-i386]
tox_packages_factor: [maximal]
targets_pattern: [0-g, h-o, p, q-z]
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
fail-fast: false
max-parallel: 20
matrix:
tox_system_factor: [ubuntu-trusty, ubuntu-xenial, ubuntu-bionic, ubuntu-focal, ubuntu-groovy, ubuntu-hirsute, debian-jessie, debian-stretch, debian-buster, debian-bullseye, debian-sid, linuxmint-17, linuxmint-18, linuxmint-19, linuxmint-19.3, linuxmint-20.1, fedora-26, fedora-27, fedora-28, fedora-29, fedora-30, fedora-31, fedora-32, fedora-33, fedora-34, centos-7, centos-8, gentoo, gentoo-python3.7, archlinux-latest, slackware-14.2, conda-forge, ubuntu-bionic-i386, ubuntu-focal-i386, debian-buster-i386, centos-7-i386]
tox_system_factor: [ubuntu-trusty, ubuntu-xenial, ubuntu-bionic, ubuntu-focal, ubuntu-groovy, ubuntu-hirsute, debian-jessie, debian-stretch, debian-buster, debian-bullseye, debian-sid, linuxmint-17, linuxmint-18, linuxmint-19, linuxmint-19.3, linuxmint-20.1, fedora-26, fedora-27, fedora-28, fedora-29, fedora-30, fedora-31, fedora-32, fedora-33, fedora-34, centos-7, centos-8, gentoo, gentoo-python3.7, archlinux-latest, slackware-14.2, conda-forge, ubuntu-bionic-i386, manylinux-2_24-i686, debian-buster-i386, centos-7-i386]
tox_packages_factor: [minimal, standard]
env:
TOX_ENV: docker-${{ matrix.tox_system_factor }}-${{ matrix.tox_packages_factor }}
Expand Down
8 changes: 4 additions & 4 deletions .zenodo.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"description": "Mirror of the Sage https://sagemath.org/ source tree",
"license": "other-open",
"title": "sagemath/sage: 9.3.rc3",
"version": "9.3.rc3",
"title": "sagemath/sage: 9.3",
"version": "9.3",
"upload_type": "software",
"publication_date": "2021-04-12",
"publication_date": "2021-05-09",
"creators": [
{
"affiliation": "SageMath.org",
Expand All @@ -15,7 +15,7 @@
"related_identifiers": [
{
"scheme": "url",
"identifier": "https://github.com/sagemath/sage/tree/9.3.rc3",
"identifier": "https://github.com/sagemath/sage/tree/9.3",
"relation": "isSupplementTo"
},
{
Expand Down
2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
SageMath version 9.3.rc3, Release Date: 2021-04-12
SageMath version 9.3, Release Date: 2021-05-09
3 changes: 2 additions & 1 deletion build/pkgs/brial/spkg-configure.m4
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
SAGE_SPKG_CONFIGURE([brial], [
SAGE_SPKG_DEPCHECK([boost m4ri], [
dnl Trac #31624: Avoid C++ ABI issues
SAGE_SPKG_DEPCHECK([gcc boost m4ri], [
# If we're using the system m4ri and boost, ensure that we can
# compile and run an executable linked against both libbrial and
# libbrial_groebner (both are used by SageMath).
Expand Down
6 changes: 3 additions & 3 deletions build/pkgs/configure/checksums.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
tarball=configure-VERSION.tar.gz
sha1=8e87b8d927704c25058ba2d9595e48e22062197f
md5=ebdea78d9fb120ab8e31f4ea5dd01d8e
cksum=3284139585
sha1=2d5d2d8a2a6dbc721935f6b3d3ada9a6bd977e19
md5=d84b8fcb2ddd6949d3461f49fae01702
cksum=2508666370
2 changes: 1 addition & 1 deletion build/pkgs/configure/package-version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
c0dc957ff06d230f943cad6ae12dc3b028eec49c
3f4547f2cc40338ba42329d53f7fb48c31ff9fc8
2 changes: 1 addition & 1 deletion build/pkgs/fplll/spkg-configure.m4
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
SAGE_SPKG_CONFIGURE([fplll], [
SAGE_SPKG_DEPCHECK([mpfr], [
SAGE_SPKG_DEPCHECK([gcc mpfr], [
dnl If we're using the system mpfr, use pkgconfig to determine
dnl if there's a usable system copy of fplll. Unless there's
dnl a system that ships fplll without fplll.pc file, falling
Expand Down
5 changes: 5 additions & 0 deletions build/pkgs/fplll/spkg-install.in
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ if [ "x$SAGE_DEBUG" = "xyes" ]; then
CONFIGUREFLAGS="$CONFIGUREFLAGS --enable-debug"
fi

if [ -x "$SAGE_LOCAL"/bin/gcc ]; then
# Trac #31624: Avoid C++ ABI issues
CONFIGUREFLAGS="$CONFIGUREFLAGS --without-qd"
fi

export CXXFLAGS="$CXXFLAGS"
export CPPFLAGS="$CPPFLAGS"
export CXX="$CXX"
Expand Down
6 changes: 3 additions & 3 deletions build/pkgs/freetype/checksums.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
tarball=freetype-VERSION.tar.bz2
sha1=3296b64ad1e7540289f22e4b6383e26e928b0a20
md5=c50a3c9e5e62bdc938a6e1598a782947
cksum=2822306030
sha1=040d6a4be23708132c85ef9df837eb3f8a04c4ab
md5=4934a8b61b636920bcce58e7c7f3e1a2
cksum=2814275332
upstream_url=https://download.savannah.gnu.org/releases/freetype/freetype-VERSION.tar.gz
2 changes: 1 addition & 1 deletion build/pkgs/freetype/package-version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.10.1
2.10.4
2 changes: 1 addition & 1 deletion build/pkgs/freetype/spkg-configure.m4
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
SAGE_SPKG_CONFIGURE([freetype], [
SAGE_SPKG_DEPCHECK([libpng], [
SAGE_SPKG_DEPCHECK([gcc libpng], [
dnl freetype versions are libtool's ones, cf trac #30014
PKG_CHECK_MODULES([FREETYPE], [freetype2 >= 16.1], [], [sage_spkg_install_freetype=yes])
])
Expand Down
21 changes: 3 additions & 18 deletions build/pkgs/libgd/spkg-configure.m4
Original file line number Diff line number Diff line change
@@ -1,21 +1,6 @@
SAGE_SPKG_CONFIGURE([libgd], [
AC_REQUIRE([SAGE_SPKG_CONFIGURE_LIBPNG])
AC_REQUIRE([SAGE_SPKG_CONFIGURE_FREETYPE])
AC_MSG_CHECKING([Installing freetype? ])
if test x$sage_spkg_install_freetype = xyes; then
AC_MSG_RESULT([Yes. Install libgd as well.])
sage_spkg_install_libgd=yes
else
dnl do not just rely on libpng being a dependency of freetype
AC_MSG_CHECKING([Installing libpng? ])
if test x$sage_spkg_install_libpng = xyes; then
AC_MSG_RESULT([Yes. Install libgd as well.])
sage_spkg_install_libgd=yes
else
AC_MSG_RESULT([No.])
dnl Trac #31624: Avoid C++ ABI issues
SAGE_SPKG_DEPCHECK([gcc libpng freetype], [
PKG_CHECK_MODULES([LIBGD], [gdlib >= 2.1], [], [sage_spkg_install_libgd=yes])
fi
fi
])
])


14 changes: 2 additions & 12 deletions build/pkgs/ntl/spkg-configure.m4
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
SAGE_SPKG_CONFIGURE([ntl], [
AC_REQUIRE([SAGE_SPKG_CONFIGURE_GMP])
AC_MSG_CHECKING([installing gmp/mpir? ])
if test x$sage_spkg_install_mpir = xyes -o x$sage_spkg_install_gmp = xyes; then
AC_MSG_RESULT([yes; install ntl as well])
sage_spkg_install_ntl=yes
else
AC_MSG_RESULT([no])
fi
m4_pushdef(SAGE_NTL_VERSION_MAJOR, [10])
m4_pushdef(SAGE_NTL_VERSION_MINOR, [3])
if test x$sage_spkg_install_ntl != xyes; then
SAGE_SPKG_DEPCHECK([gmp mpir gcc], [
AC_CHECK_HEADER([NTL/ZZ.h], [], [sage_spkg_install_ntl=yes])
AC_MSG_CHECKING([whether we can link a program using NTL])
NTL_SAVED_LIBS=$LIBS
Expand Down Expand Up @@ -40,7 +30,7 @@ SAGE_SPKG_CONFIGURE([ntl], [
AC_MSG_RESULT([no])
sage_spkg_install_ntl=yes
])
fi
])
m4_popdef([SAGE_NTL_VERSION_MAJOR])
m4_popdef([SAGE_NTL_VERSION_MINOR])
Expand Down
2 changes: 1 addition & 1 deletion build/pkgs/ppl/spkg-configure.m4
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
SAGE_SPKG_CONFIGURE([ppl], [
SAGE_SPKG_DEPCHECK([glpk gmp mpir], [
SAGE_SPKG_DEPCHECK([gcc glpk gmp mpir], [
# If our dependencies come from the system, then we can use the
# system ppl, too. This macro works sort-of like the
# PKG_CHECK_MODULES macro, defining e.g. PPL_CFLAGS when a
Expand Down
2 changes: 1 addition & 1 deletion build/pkgs/pynac/package-version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.7.27.p4
0.7.27.p7
39 changes: 39 additions & 0 deletions build/pkgs/pynac/patches/disable_poly_mul_expand.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
diff --git a/ginac/mul.cpp b/ginac/mul.cpp
index 1a29c01..c800cbf 100644
--- a/ginac/mul.cpp
+++ b/ginac/mul.cpp
@@ -1325,18 +1325,22 @@ ex mul::expand(unsigned options) const
const auto& add2end = add2.seq.end();
epvector distrseq;
auto s = add1.seq.size()+add2.seq.size();
- if (s > 400) {
-// // the condition is probably too simple
- try {
- // can it be converted/expanded via Singular?
- last_expanded = poly_mul_expand(last_expanded,
- elem.rest);
- continue;
- }
- catch (std::runtime_error) {
- std::cerr << "can't happen while calling poly_mul_expand\n";
- }
- }
+// // the poly_mul_expand function is buggy and
+// // therefore cannot be used (see sage :trac:`31478`),
+// // so we comment out this section of code until the
+// // function has been fixed
+// if (s > 400) {
+//// // the condition is probably too simple
+// try {
+// // can it be converted/expanded via Singular?
+// last_expanded = poly_mul_expand(last_expanded,
+// elem.rest);
+// continue;
+// }
+// catch (std::runtime_error) {
+// std::cerr << "can't happen while calling poly_mul_expand\n";
+// }
+// }

distrseq.reserve(s);
// Multiply add2 with the overall coefficient of add1 and append it to distrseq:
41 changes: 41 additions & 0 deletions build/pkgs/pynac/patches/seriesbug.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
diff --git a/ginac/useries.cpp b/ginac/useries.cpp
index fd68d49..3af04d8 100644
--- a/ginac/useries.cpp
+++ b/ginac/useries.cpp
@@ -462,7 +462,16 @@ void symbol::useries(flint_series_t& fp, int order) const

void add::useries(flint_series_t& fp, int order) const
{
- fmpq_poly_set_ui(fp.ft, 0);
+ const numeric& oc = overall_coeff;
+ if (oc.is_zero())
+ fmpq_poly_set_ui(fp.ft, 0);
+ else if (oc.is_long())
+ fmpq_poly_set_si(fp.ft, oc.to_long());
+ else if (oc.is_mpz())
+ fmpq_poly_set_mpz(fp.ft, oc.as_mpz());
+ else
+ fmpq_poly_set_mpq(fp.ft, oc.as_mpq());
+
for (const auto & elem : seq) {
const ex& t = recombine_pair_to_ex(elem);
flint_series_t fp1;
@@ -477,18 +486,6 @@ void add::useries(flint_series_t& fp, int order) const
}
fmpq_poly_add(fp.ft, fp.ft, fp1.ft);
}
- const numeric& oc = overall_coeff;
- if (oc.is_zero())
- return;
-
- flint_series_t fp1;
- if (oc.is_long())
- fmpq_poly_set_si(fp1.ft, oc.to_long());
- else if (oc.is_mpz())
- fmpq_poly_set_mpz(fp1.ft, oc.as_mpz());
- else
- fmpq_poly_set_mpq(fp1.ft, oc.as_mpq());
- fmpq_poly_add(fp.ft, fp.ft, fp1.ft);
}

void mul::useries(flint_series_t& fp, int order) const
2 changes: 1 addition & 1 deletion build/pkgs/sagelib/package-version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
9.3.rc3
9.3
3 changes: 3 additions & 0 deletions build/pkgs/sagelib/src/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
import os
import sys
import time
# Import setuptools before importing distutils, so that setuptools
# can replace distutils by its own vendored copy.
import setuptools
from distutils import log
from setuptools import setup

Expand Down
6 changes: 3 additions & 3 deletions build/pkgs/setuptools_scm/checksums.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
tarball=setuptools_scm-VERSION.tar.gz
sha1=af08a257a725dbdde9795859249ddf79caf4fc22
md5=c11bf23d80224691a46ee5deb84c42db
cksum=929248754
sha1=183e0947ee14f8107a3ad6a7f635f04f54a30011
md5=aa7f0efbbf46c5576db5994dd1ce3f8d
cksum=4017375148
upstream_url=https://pypi.io/packages/source/s/setuptools_scm/setuptools_scm-VERSION.tar.gz
2 changes: 1 addition & 1 deletion build/pkgs/setuptools_scm/package-version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.0.1
6.0.1
5 changes: 4 additions & 1 deletion build/pkgs/zeromq/spkg-configure.m4
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
SAGE_SPKG_CONFIGURE([zeromq], [
AX_ZMQ([4.2.5], [], [sage_spkg_install_zeromq=yes])
dnl Trac #31624: Avoid C++ ABI issues
SAGE_SPKG_DEPCHECK([gcc], [
AX_ZMQ([4.2.5], [], [sage_spkg_install_zeromq=yes])
])
])
24 changes: 0 additions & 24 deletions m4/sage_check_osx_supported.m4
Original file line number Diff line number Diff line change
Expand Up @@ -40,29 +40,5 @@ AC_DEFUN([SAGE_CHECK_OSX_SUPPORTED], [
fi
fi >& AS_MESSAGE_FD
#######################################################################
# (OS X only)
# Sage will probably not build at all if either Fink or MacPorts can be
# found, and the error messages can be extremely confusing. Even if it
# does build, the product will probably be wrong. This runs a basic
# check to find them. Once the Sage build process is perfected, this
# won't be necessary.
# dphilp 15/9/2008
#######################################################################
PORTS_PATH=`which port`
if test -f "$PORTS_PATH"; then
AC_MSG_ERROR(["found MacPorts in $PORTS_PATH. Either:
(1) rename /opt/local and /sw, or
(2) change PATH and DYLD_LIBRARY_PATH
(Once Sage is built, you can restore them.)])
fi
FINK_PATH=`which fink`
if test -f "$FINK_PATH"; then
AC_MSG_ERROR(["found Fink in $FINK_PATH. Either:
(1) rename /opt/local and /sw, or
(2) change PATH and DYLD_LIBRARY_PATH
(Once Sage is built, you can restore them.)])
fi
])
])
28 changes: 24 additions & 4 deletions m4/sage_spkg_collect.m4
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ SAGE_PIP_PACKAGES=''
SAGE_SCRIPT_PACKAGES=''
SAGE_NEED_SYSTEM_PACKAGES=""
SAGE_NEED_SYSTEM_PACKAGES_OPTIONAL=""
# for each package in pkgs/, add them to the SAGE_PACKAGE_VERSIONS and
# SAGE_PACKAGE_DEPENDENCIES lists, and to one or more of the above variables
Expand Down Expand Up @@ -159,6 +160,7 @@ for DIR in $SAGE_ROOT/build/pkgs/*; do
SAGE_PACKAGE_TREES="${SAGE_PACKAGE_TREES}$(printf '\ntrees_')${SPKG_NAME} = ${SPKG_TREE_VAR}"
uninstall_message=""
SAGE_NEED_SYSTEM_PACKAGES_VAR=SAGE_NEED_SYSTEM_PACKAGES
# Check consistency of 'DIR/type' file
case "$SPKG_TYPE" in
base)
Expand All @@ -176,6 +178,7 @@ for DIR in $SAGE_ROOT/build/pkgs/*; do
message="$SPKG_TYPE, will be installed as an SPKG"
], [
message="$SPKG_TYPE, use \"$srcdir/configure --enable-$SPKG_NAME\" to install"
SAGE_NEED_SYSTEM_PACKAGES_VAR=SAGE_NEED_SYSTEM_PACKAGES_OPTIONAL
])
;;
*)
Expand Down Expand Up @@ -235,7 +238,7 @@ for DIR in $SAGE_ROOT/build/pkgs/*; do
AS_VAR_COPY([reason], [sage_use_system])
AS_CASE([$reason],
[yes], [ message="no suitable system package; $message"
AS_VAR_APPEND([SAGE_NEED_SYSTEM_PACKAGES], [" $SPKG_NAME"])
AS_VAR_APPEND([$SAGE_NEED_SYSTEM_PACKAGES_VAR], [" $SPKG_NAME"])
],
[installed], [ message="already installed as an SPKG$uninstall_message" ],
[ message="$reason; $message" ])
Expand Down Expand Up @@ -359,12 +362,12 @@ AC_SUBST([SAGE_SDIST_PACKAGES])
])

AC_DEFUN([SAGE_SYSTEM_PACKAGE_NOTICE], [
AS_IF([test -n "$SAGE_NEED_SYSTEM_PACKAGES"], [
AS_IF([test -n "$SAGE_NEED_SYSTEM_PACKAGES" -o -n "$SAGE_NEED_SYSTEM_PACKAGES_OPTIONAL"], [
AC_MSG_NOTICE([
notice: the following SPKGs did not find equivalent system packages:
$SAGE_NEED_SYSTEM_PACKAGES
$SAGE_NEED_SYSTEM_PACKAGES $SAGE_NEED_SYSTEM_PACKAGES_OPTIONAL
])
AC_MSG_CHECKING([for the package system in use])
SYSTEM=$(build/bin/sage-guess-package-system 2>& AS_MESSAGE_FD)
Expand All @@ -381,8 +384,25 @@ AC_DEFUN([SAGE_SYSTEM_PACKAGE_NOTICE], [
build them (though some may have to be built anyway):
$COMMAND
])
AS_VAR_SET([need_reconfig_msg], [yes])
])
SYSTEM_PACKAGES=$(build/bin/sage-get-system-packages $SYSTEM $SAGE_NEED_SYSTEM_PACKAGES_OPTIONAL)
AS_IF([test -n "$SYSTEM_PACKAGES"], [
PRINT_SYS="build/bin/sage-print-system-package-command $SYSTEM --verbose=\" \" --prompt=\" \$ \" --sudo"
COMMAND=$(eval "$PRINT_SYS" update && eval "$PRINT_SYS" install $SYSTEM_PACKAGES && SAGE_ROOT="$SAGE_ROOT" eval "$PRINT_SYS" setup-build-env )
AC_MSG_NOTICE([
hint: installing the following system packages, if not
already present, may provide additional optional features:
$COMMAND
])
])
AS_VAR_IF([need_reconfig_msg], [yes], [
AC_MSG_NOTICE([
After installation, re-run configure using:
hint: After installation, re-run configure using:
\$ ./config.status --recheck && ./config.status
])
Expand Down
2 changes: 1 addition & 1 deletion src/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
9.3.rc3
9.3
Loading

0 comments on commit 1dbecfd

Please sign in to comment.