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_breadthfirstsearch.cpp | 29 ++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 math/gfan/files/patch-src_breadthfirstsearch.cpp (limited to 'math/gfan/files/patch-src_breadthfirstsearch.cpp') diff --git a/math/gfan/files/patch-src_breadthfirstsearch.cpp b/math/gfan/files/patch-src_breadthfirstsearch.cpp new file mode 100644 index 000000000000..9a09444033d4 --- /dev/null +++ b/math/gfan/files/patch-src_breadthfirstsearch.cpp @@ -0,0 +1,29 @@ +--- src/breadthfirstsearch.cpp.orig 2017-06-20 14:47:37 UTC ++++ src/breadthfirstsearch.cpp +@@ -259,7 +259,7 @@ class Orbit{ (public) + // fprintf(Stderr,"1b\n"); + } + +- log2 fprintf(Stderr,"numFixed = %i\n",numFixed); ++ gfan_log2 fprintf(Stderr,"numFixed = %i\n",numFixed); + return groupSize/numFixed; + } + }; +@@ -368,7 +368,7 @@ void BreadthFirstSearch::enumerate(const PolynomialSet + static int n; + n++; + if(!(n%10)) +- log2 fprintf(Stderr,"%i\n",n); ++ gfan_log2 fprintf(Stderr,"%i\n",n); + } + log3 fprintf(Stderr,"Active set:\n"); + log3 active.print(Stderr); +@@ -484,7 +484,7 @@ void BreadthFirstSearch::enumerate(const PolynomialSet + } + else + { +- // log2 fprintf(Stderr,"-- marked\n"); ++ // gfan_log2 fprintf(Stderr,"-- marked\n"); + } + } + } -- cgit v1.2.3