summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Dittrich <markusle@gentoo.org>2006-03-16 17:31:28 +0000
committerMarkus Dittrich <markusle@gentoo.org>2006-03-16 17:31:28 +0000
commitf1dbfce64dbff5114dc59b036cc56c645f966d88 (patch)
tree06a279385ee1d81e4d368818529f69f3b64f8e41 /sci-mathematics/singular/files
parentStable on sparc wrt security #125830 (diff)
downloadgentoo-2-f1dbfce64dbff5114dc59b036cc56c645f966d88.tar.gz
gentoo-2-f1dbfce64dbff5114dc59b036cc56c645f966d88.tar.bz2
gentoo-2-f1dbfce64dbff5114dc59b036cc56c645f966d88.zip
Added patch to fix compile failure with gcc-4.1. This fixes bug #126159
(Portage version: 2.1_pre6-r3)
Diffstat (limited to 'sci-mathematics/singular/files')
-rw-r--r--sci-mathematics/singular/files/singular-3.0.1.2-gcc4.1-gentoo.patch66
1 files changed, 66 insertions, 0 deletions
diff --git a/sci-mathematics/singular/files/singular-3.0.1.2-gcc4.1-gentoo.patch b/sci-mathematics/singular/files/singular-3.0.1.2-gcc4.1-gentoo.patch
new file mode 100644
index 000000000000..cc9f4eff4817
--- /dev/null
+++ b/sci-mathematics/singular/files/singular-3.0.1.2-gcc4.1-gentoo.patch
@@ -0,0 +1,66 @@
+diff -Naur Singular-3-0-1/factory/int_poly.cc Singular-3-0-1-new/factory/int_poly.cc
+--- Singular-3-0-1/factory/int_poly.cc 2005-01-13 09:10:22.000000000 -0600
++++ Singular-3-0-1-new/factory/int_poly.cc 2006-03-16 09:39:36.000000000 -0600
+@@ -559,6 +559,9 @@
+ }
+ }
+
++// forward declaration
++bool divremt ( const CanonicalForm&, const CanonicalForm&, CanonicalForm&, CanonicalForm& );
++
+
+ bool
+ InternalPoly::divremsamet( InternalCF* acoeff, InternalCF*& quot, InternalCF*& rem )
+diff -Naur Singular-3-0-1/factory/sm_sparsemod.cc Singular-3-0-1-new/factory/sm_sparsemod.cc
+--- Singular-3-0-1/factory/sm_sparsemod.cc 2000-04-05 05:03:09.000000000 -0500
++++ Singular-3-0-1-new/factory/sm_sparsemod.cc 2006-03-16 09:40:03.000000000 -0600
+@@ -30,6 +30,10 @@
+ #include "ftmpl_array.h"
+ #include "ftmpl_functions.h"
+
++// forward declaration
++Variable rootOf( const CanonicalForm &, char name);
++
++
+ static CanonicalForm
+ smodgcd( const CanonicalForm & u, const CanonicalForm & v, const CanonicalForm & lcggt, const REvaluation & alpha, CFRandom & gen, int CHAR, const Variable & extension )
+ {
+diff -Naur Singular-3-0-1/kernel/clapsing.cc Singular-3-0-1-new/kernel/clapsing.cc
+--- Singular-3-0-1/kernel/clapsing.cc 2005-11-04 02:44:25.000000000 -0600
++++ Singular-3-0-1-new/kernel/clapsing.cc 2006-03-16 10:25:54.000000000 -0600
+@@ -24,6 +24,9 @@
+ #endif
+ #include "ring.h"
+
++// forward declaration
++Variable rootOf( const CanonicalForm &, char name);
++
+ //
+ // FACTORY_GCD_TEST: use new gcd instead of old one. Does not work
+ // without new gcd-implementation which is not publicly available.
+diff -Naur Singular-3-0-1/libfac/charset/alg_factor.cc Singular-3-0-1-new/libfac/charset/alg_factor.cc
+--- Singular-3-0-1/libfac/charset/alg_factor.cc 2005-10-17 08:16:18.000000000 -0500
++++ Singular-3-0-1-new/libfac/charset/alg_factor.cc 2006-03-16 10:08:11.000000000 -0600
+@@ -21,6 +21,9 @@
+
+ void out_cf(char *s1,const CanonicalForm &f,char *s2);
+
++// forward declaration
++Variable rootOf( const CanonicalForm &, char name);
++
+ #ifdef ALGFACTORDEBUG
+ # define DEBUGOUTPUT
+ #else
+diff -Naur Singular-3-0-1/libfac/factor/Factor.cc Singular-3-0-1-new/libfac/factor/Factor.cc
+--- Singular-3-0-1/libfac/factor/Factor.cc 2005-12-12 12:02:03.000000000 -0600
++++ Singular-3-0-1-new/libfac/factor/Factor.cc 2006-03-16 10:07:37.000000000 -0600
+@@ -47,6 +47,9 @@
+
+ void out_cf(char *s1,const CanonicalForm &f,char *s2);
+
++// forward declaration
++Variable rootOf( const CanonicalForm &, char name);
++
+ /*
+ * a wrapper for factorize over algebraic extensions:
+ * does a sanity check and, if nec., a conversion