From ecbb96a53302f3f796b6f5b873b1c63f122c4d31 Mon Sep 17 00:00:00 2001 From: Mikael Urankar Date: Fri, 4 Dec 2020 18:17:32 +0000 Subject: math/gfan: pass maintainership o Update URL in MASTER_SITES to current address o Update MAINTAINER o Remove post-patch target as it is not needed - Use LDFLAGS instead of the non-standard variable ADDITIONALLINKOPTIONS. - Replace "${REINPLACE_CMD} 's,log2,gfan_log2,g'" by appropriate patch files as the command triggers multiple warnings. log2 is a macro defined in src/log.h. The name of this macro is in conflict with the function log2 from math.h. To avoid errors when compiling the code, the above renaming is necessary. Furthermore, PHB 4.4.3 strongly suggests using patch files instead of REINPLACE_CMD for static content. o Sort pkg-plist alphabetically as required by PHB 3.2.2 o Shorten pkg-descr and make it less technical PR: 250879 Submitted by: Moritz Schmitt (maintainer) --- math/gfan/files/patch-src_tropicalbasis.cpp | 112 ++++++++++++++++++++++++++++ 1 file changed, 112 insertions(+) create mode 100644 math/gfan/files/patch-src_tropicalbasis.cpp (limited to 'math/gfan/files/patch-src_tropicalbasis.cpp') diff --git a/math/gfan/files/patch-src_tropicalbasis.cpp b/math/gfan/files/patch-src_tropicalbasis.cpp new file mode 100644 index 000000000000..1140cde19422 --- /dev/null +++ b/math/gfan/files/patch-src_tropicalbasis.cpp @@ -0,0 +1,112 @@ +--- src/tropicalbasis.cpp.orig 2017-06-20 14:47:37 UTC ++++ src/tropicalbasis.cpp +@@ -118,10 +118,10 @@ PolynomialSet tropicalBasisOfCurve(int n, PolynomialSe + PolynomialSet originalG=g; + // bool prebasis=true; + // debug<<"PREBASIS="<0 || n==0); + TimerScope ts(&iterativeTropicalBasisTimer); + PolyhedralFan f(n); +@@ -148,7 +148,7 @@ restart: + + if(containsNoMonomialCache.count(relativeInteriorPoint)>0) + { +- log2 fprintf(Stderr,"Weight vector found in cache.... contains no monomial.\n"); ++ gfan_log2 fprintf(Stderr,"Weight vector found in cache.... contains no monomial.\n"); + } + else + { +@@ -163,9 +163,9 @@ restart: + } + }*/ + WeightReverseLexicographicTermOrder t(relativeInteriorPoint); +- log2 fprintf(Stderr,"Computing Gr\"obner basis with respect to:"); +- log2 AsciiPrinter(Stderr).printVector(relativeInteriorPoint); +- log2 fprintf(Stderr,"\n"); ++ gfan_log2 fprintf(Stderr,"Computing Gr\"obner basis with respect to:"); ++ gfan_log2 AsciiPrinter(Stderr).printVector(relativeInteriorPoint); ++ gfan_log2 fprintf(Stderr,"\n"); + PolynomialSet h2=originalG;//g;//<------------------- Using the original set here speeds up things a lot in the starting cone via stable intersections algorithm + // debug<<"g"<dimension()<=1+homog) + //if(!containsMonomial(wall) && i->dimension()<=1+homog)//line for testing perturbation code + { +- log2 fprintf(Stderr,"Initial ideal contains no monomial... caching weight vector.\n"); ++ gfan_log2 fprintf(Stderr,"Initial ideal contains no monomial... caching weight vector.\n"); + containsNoMonomialCache.insert(relativeInteriorPoint); + } + else +@@ -227,10 +227,10 @@ restart: + dual.canonicalize(); + IntegerVectorList basis=dual.getEquations(); + PolynomialSet witnessLiftBasis=h2;//basis with respect to relativeInteriorPoint +- log2 debug<<"basis"<conesEnd())break; + } + +- log2 debug<<"TropicalBasis end\n"; +- log2 cerr <<"RETURNING"; ++ gfan_log2 debug<<"TropicalBasis end\n"; ++ gfan_log2 cerr <<"RETURNING"; + return g; + } + -- cgit v1.2.3