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

Commit c17adf7

Browse files
committed
Merge branch 'u/saraedum/factorization_over_some_quotient_rings_incorrect' of git://trac.sagemath.org/sage into t/23642/factorization_over_some_quotient_rings_incorrect
2 parents 5739955 + 4bddab1 commit c17adf7

File tree

350 files changed

+12893
-3190
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

350 files changed

+12893
-3190
lines changed

VERSION.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
SageMath version 8.1.beta2, Release Date: 2017-08-13
1+
SageMath version 8.1.beta4, Release Date: 2017-09-05

build/bin/sage-spkg

+21-2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
# SAGE_ROOT -- root directory of sage install
2222
# SAGE_LOCAL -- $SAGE_ROOT/local
2323
# SAGE_DISTFILES -- directory that stores upstream tarballs
24+
# PKG_BASE -- the base name of the package itself (e.g. 'patch')
25+
# PKG_VER -- the version number of the package
26+
# PKG_NAME -- $PKG_BASE-$PKG_VER
2427
# LIBRARY_PATH, PYTHONPATH, LD_LIBRARY_PATH, DYLD_LIBRARY_PATH
2528
# CC, CXX, CFLAGS, CXXFLAGS, LDFLAGS, MAKE
2629
#
@@ -153,6 +156,7 @@ fi
153156
# than exiting. Using dot suggested by W. Cheung.
154157
. sage-env
155158

159+
156160
if [ $? -ne 0 ]; then
157161
error_msg "Error setting environment variables by sourcing sage-env"
158162
exit 1
@@ -673,9 +677,23 @@ export SAGE_ROOT="$SAGE_ROOT"
673677
export SAGE_SRC="$SAGE_SRC"
674678
export SAGE_PKG_DIR="$pkgdir"
675679
676-
source "\$SAGE_SRC/bin/sage-env"
680+
export PKG_NAME="$PKG_NAME"
681+
export PKG_BASE="$PKG_BASE"
682+
export PKG_VER="$PKG_VER"
683+
684+
for lib in env dist-helpers; do
685+
lib="sage-\$lib"
686+
source "\$SAGE_SRC/bin/\$lib"
687+
if [ \$? -ne 0 ]; then
688+
echo >&2 "Error: failed to source \$lib"
689+
echo >&2 "Is \$SAGE_ROOT the correct SAGE_ROOT?"
690+
exit 1
691+
fi
692+
done
693+
694+
sdh_guard
677695
if [ \$? -ne 0 ]; then
678-
echo >&2 "Error: failed to source sage-env; is \$SAGE_ROOT the correct SAGE_ROOT?"
696+
echo >&2 "Error: sdh_guard not found; Sage environment was not set up properly"
679697
exit 1
680698
fi
681699
@@ -786,6 +804,7 @@ export rsync_proxy=$http_proxy
786804
# Actually install
787805
##################################################################
788806

807+
789808
if [ -f spkg-build ]; then
790809
# Package has both spkg-build and spkg-install; execute the latter with SAGE_SUDO
791810
time ./spkg-build

build/make/deps

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ DOC_DEPENDENCIES = sagelib $(inst_sphinx) $(inst_sagenb) \
206206
| $(SAGERUNTIME) $(inst_maxima) $(inst_networkx) $(inst_scipy) \
207207
$(inst_matplotlib) $(inst_pillow) $(inst_mathjax) $(inst_mpmath) \
208208
$(inst_ipykernel) $(inst_jupyter_client) $(inst_conway_polynomials) \
209-
$(inst_tachyon) $(inst_jmol) $(inst_thebe) $(inst_ipywidgets)
209+
$(inst_tachyon) $(inst_jmol) $(inst_thebe) $(inst_ipywidgets) $(inst_typing)
210210

211211
doc: doc-html
212212

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20141105
1+
20141105.p0

build/pkgs/autotools/spkg-install

+12
Original file line numberDiff line numberDiff line change
@@ -106,3 +106,15 @@ cd "$SAGE_LOCAL"/bin
106106
for x in $automake_versions; do
107107
ln -sf ../automake-$x/bin/automake-* ../automake-$x/bin/aclocal-* .
108108
done
109+
110+
# Some older versions of automake don't create this directory at install time
111+
# because there aren't any files in it by default; however aclocal crashes if
112+
# the directory is missing; https://trac.sagemath.org/ticket/21526
113+
for x in $automake_versions; do
114+
aclocal_system_dir="$SAGE_LOCAL/automake-$x/share/aclocal"
115+
if [ ! -d "$aclocal_system_dir" ]; then
116+
mkdir -p "$aclocal_system_dir"
117+
# Place a dummy file so that the directory at least isn't empty
118+
touch "$aclocal_system_dir/README"
119+
fi
120+
done

build/pkgs/ccache/spkg-install

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ die () {
77

88
cd src
99

10+
# Use newer version of config.guess and config.sub (see Trac #23710)
11+
cp "$SAGE_ROOT"/config/config.* .
12+
1013
export CPPFLAGS="-I$SAGE_LOCAL/include $CPPFLAGS"
1114
./configure --prefix="$SAGE_LOCAL" ||
1215
die "configuring ccache failed"

build/pkgs/configure/checksums.ini

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
tarball=configure-VERSION.tar.gz
2-
sha1=0f56bbb0118c834fec6c7adbe6276245f856092b
3-
md5=993b6a1f19eafc160cad2a67f17aad8b
4-
cksum=3308302982
2+
sha1=a3dfdfa1a3c4ac07bcce5e3168da1397281f1550
3+
md5=b1bc7eaf8f85c6f2cf5fe4747ff4800c
4+
cksum=3170921032
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
233
1+
236

build/pkgs/cypari/checksums.ini

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
tarball=cypari2-VERSION.tar.bz2
2-
sha1=95e9ed35e729df4d5119d9c74f602006b284c841
3-
md5=e957936bb41b37688733a61f741361c6
4-
cksum=3353441543
1+
tarball=cypari2-VERSION.tar.gz
2+
sha1=3388af8a9c847e16348864ad58f9c033f5a91592
3+
md5=1fabc73b44d56ef222fb9e87628b3ecb
4+
cksum=2221981199

build/pkgs/cypari/package-version.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.0
1+
1.1.1

build/pkgs/cypari/spkg-check

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
cd src && $MAKE check

build/pkgs/cysignals/checksums.ini

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
tarball=cysignals-VERSION.tar.bz2
2-
sha1=4c2db8f94e79e50fb07b353703a02c47b656322c
3-
md5=69d8a43db2eaf9b38cd45401928a96a9
4-
cksum=3211856095
2+
sha1=00f61815a2b6e4b95e7363aa279cb8063dc6dd66
3+
md5=cd70b6c09e86b15aae5aaa72a6a373a8
4+
cksum=962294947
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.6.4
1+
1.6.5
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.4.24.p2
1+
2.4.24.p3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
When using FfSetNoc() correctly, the equation
2+
FfCurrentRowSizeIo==FfTrueRowSize(FfNoc) will always hold.
3+
This patch replaces all calls to FfTrueRowSize(FfNoc).
4+
See trac ticket #23410.
5+
6+
AUTHOR:
7+
8+
- Simon King, 2015-09-26
9+
10+
From 19ad8271345e704423d242241380f321f0fdd97e Mon Sep 17 00:00:00 2001
11+
From: Simon King <[email protected]>
12+
Date: Mon, 12 Sep 2016 12:31:47 +0200
13+
Subject: [PATCH] Do not call FfTrueRowSize(FfNoc)
14+
15+
---
16+
src/ffio.c | 6 +++---
17+
src/kernel-0.c | 6 +++---
18+
src/mfread.c | 2 +-
19+
src/mfwrite.c | 2 +-
20+
src/zcmprow.c | 2 +-
21+
5 files changed, 9 insertions(+), 9 deletions(-)
22+
23+
diff --git a/src/ffio.c b/src/ffio.c
24+
index d2e3f1c..65fc2d1 100644
25+
--- a/src/ffio.c
26+
+++ b/src/ffio.c
27+
@@ -68,7 +68,7 @@ int FfReadRows(FILE *f, PTR buf, int n)
28+
-------------------- */
29+
for (i = 0; i < n; ++i)
30+
{
31+
- if (fread(b,FfTrueRowSize(FfNoc),1,f) != 1) break;
32+
+ if (fread(b,FfCurrentRowSizeIo,1,f) != 1) break;
33+
b += FfCurrentRowSize;
34+
}
35+
if (ferror(f))
36+
@@ -106,7 +106,7 @@ int FfWriteRows(FILE *f, PTR buf, int n)
37+
--------------------- */
38+
for (i = 0; i < n; ++i)
39+
{
40+
- if (fwrite(b,FfTrueRowSize(FfNoc),1,f) != 1) break;
41+
+ if (fwrite(b,FfCurrentRowSizeIo,1,f) != 1) break;
42+
b += FfCurrentRowSize;
43+
}
44+
if (ferror(f))
45+
@@ -141,7 +141,7 @@ int FfSeekRow(FILE *f, int pos)
46+
long addr;
47+
48+
if (FfOrder != -1)
49+
- addr = (long) FfTrueRowSize(FfNoc) * pos + 12;
50+
+ addr = (long) FfCurrentRowSizeIo * pos + 12;
51+
else
52+
addr = (long) FfNoc * 4 * pos + 12;
53+
if (SysFseek(f,addr) == -1)
54+
diff --git a/src/kernel-0.c b/src/kernel-0.c
55+
index 431f01a..bbab00b 100644
56+
--- a/src/kernel-0.c
57+
+++ b/src/kernel-0.c
58+
@@ -638,7 +638,7 @@ PTR FfAddRow(PTR dest, PTR src)
59+
#else
60+
register BYTE *p1 = dest;
61+
register BYTE *p2 = src;
62+
- for (i = FfTrueRowSize(FfNoc); i != 0; --i)
63+
+ for (i = FfCurrentRowSizeIo; i != 0; --i)
64+
{
65+
register int x = *p2++;
66+
if (x != 0) *p1 = mtx_tadd[*p1][x];
67+
@@ -787,7 +787,7 @@ PTR FfSubRow(PTR dest, PTR src)
68+
#else
69+
register FEL *p1 = dest;
70+
register FEL *p2 = src;
71+
- for (i = FfTrueRowSize(FfNoc); i != 0; --i)
72+
+ for (i = FfCurrentRowSizeIo; i != 0; --i)
73+
{
74+
register int x = *p2++;
75+
if (x != 0) *p1 = mtx_tadd[*p1][table_inv[x]];
76+
@@ -999,7 +999,7 @@ void FfMulRow(PTR row, FEL mark)
77+
{
78+
multab = mtx_tmult[mark];
79+
m = row;
80+
- for (i = FfTrueRowSize(FfNoc); i != 0; --i)
81+
+ for (i = FfCurrentRowSizeIo; i != 0; --i)
82+
{
83+
register int x = *m;
84+
if (x != 0) *m = multab[x];
85+
diff --git a/src/mfread.c b/src/mfread.c
86+
index ce576f4..4d2a076 100644
87+
--- a/src/mfread.c
88+
+++ b/src/mfread.c
89+
@@ -59,7 +59,7 @@ int MfReadRows(MtxFile_t *f, PTR buf, int nrows)
90+
-------------------- */
91+
for (i = 0; i < nrows; ++i)
92+
{
93+
- if (fread(b,FfTrueRowSize(FfNoc),1,f->File) != 1) break;
94+
+ if (fread(b,FfCurrentRowSizeIo,1,f->File) != 1) break;
95+
b += FfCurrentRowSize;
96+
}
97+
if (ferror(f->File))
98+
diff --git a/src/mfwrite.c b/src/mfwrite.c
99+
index cf24541..41fc181 100644
100+
--- a/src/mfwrite.c
101+
+++ b/src/mfwrite.c
102+
@@ -58,7 +58,7 @@ int MfWriteRows(MtxFile_t *f, PTR buf, int nrows)
103+
--------------------- */
104+
for (i = 0; i < nrows; ++i)
105+
{
106+
- if (fwrite(b,FfTrueRowSize(FfNoc),1,f->File) != 1)
107+
+ if (fwrite(b,FfCurrentRowSizeIo,1,f->File) != 1)
108+
break;
109+
b += FfCurrentRowSize;
110+
}
111+
diff --git a/src/zcmprow.c b/src/zcmprow.c
112+
index f9fe2a5..c4faff4 100644
113+
--- a/src/zcmprow.c
114+
+++ b/src/zcmprow.c
115+
@@ -36,7 +36,7 @@
116+
117+
int FfCmpRows(PTR p1, PTR p2)
118+
{
119+
- return memcmp(p1,p2,FfTrueRowSize(FfNoc));
120+
+ return memcmp(p1,p2,FfCurrentRowSizeIo);
121+
}
122+
123+
/**
124+
--
125+
2.5.0
126+

build/pkgs/patch/spkg-install

+3-24
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
if [ -z "$SAGE_LOCAL" ]; then
2-
echo >&2 "Error: SAGE_LOCAL undefined - exiting..."
3-
echo >&2 "Maybe run 'sage -sh'?"
4-
exit 1
5-
fi
6-
71
# Let the user define the environment variable CFLAG64 to
82
# something if their C compiler needs a compiler flag other than
93
# -m64 to build 64-bit objects. This would be the case with IBM's
@@ -32,24 +26,9 @@ if [ "x$UNAME" = xAIX ] ; then
3226
fi
3327

3428
cd src
35-
36-
./configure --prefix="$SAGE_LOCAL"
37-
if [ $? -ne 0 ]; then
38-
echo >&2 "Error configuring GNU patch"
39-
exit 1
40-
fi
41-
42-
$MAKE
43-
if [ $? -ne 0 ]; then
44-
echo >&2 "Error building GNU patch"
45-
exit 1
46-
fi
47-
48-
$MAKE install
49-
if [ $? -ne 0 ]; then
50-
echo >&2 "Error installing GNU patch"
51-
exit 1
52-
fi
29+
sdh_configure
30+
sdh_make
31+
sdh_make_install
5332

5433
if [ "$UNAME" = "CYGWIN" ] ; then
5534
cp ../patch.exe.manifest "$SAGE_LOCAL/bin/"

build/pkgs/pip/checksums.ini

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
tarball=pip-VERSION.tar.gz
2-
sha1=1c13c247967ec5bee6de5fd104c5d78ba30951c7
3-
md5=87083c0b9867963b29f7aba3613e8f4a
4-
cksum=3317401411
2+
sha1=57ff41e99cb01b6a1c2b0999161589b726f0ec8b
3+
md5=35f01da33009719497f01a4ba69d63c9
4+
cksum=2206153684

build/pkgs/pip/package-version.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8.1.2.p1
1+
9.0.1

0 commit comments

Comments
 (0)