diff options
author | Ronald Klop <ronald@FreeBSD.org> | 2024-10-24 12:31:53 +0200 |
---|---|---|
committer | Ronald Klop <ronald@FreeBSD.org> | 2024-10-24 12:44:06 +0200 |
commit | 184a22447d5cc5e297015b0e5fb51149505c3c05 (patch) | |
tree | f3ef78a75597854ed2a6709084381f91d62dcbfa /math/apache-commons-math/files | |
parent | x11-themes/Kvantum: Update to 1.1.3 (diff) |
math/apache-commons-math: unbreak armv6 and armv7
PR: 282301
Approved by: bofh@ / maintainer (as long as it doesn't break Tier 1)
Diffstat (limited to 'math/apache-commons-math/files')
-rw-r--r-- | math/apache-commons-math/files/patch-src_main_java_org_apache_commons_math3_optimization_direct_PowellOptimizer.java | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/math/apache-commons-math/files/patch-src_main_java_org_apache_commons_math3_optimization_direct_PowellOptimizer.java b/math/apache-commons-math/files/patch-src_main_java_org_apache_commons_math3_optimization_direct_PowellOptimizer.java new file mode 100644 index 000000000000..4cfd84630589 --- /dev/null +++ b/math/apache-commons-math/files/patch-src_main_java_org_apache_commons_math3_optimization_direct_PowellOptimizer.java @@ -0,0 +1,22 @@ +BROKEN_armv7= fails to compile: PowellOptimizer.java:301: error: Illegal static declaration in inner class PowellOptimizer.LineSearch + +--- src/main/java/org/apache/commons/math3/optimization/direct/PowellOptimizer.java.orig 2024-10-24 09:29:04 UTC ++++ src/main/java/org/apache/commons/math3/optimization/direct/PowellOptimizer.java +@@ -297,7 +297,7 @@ public class PowellOptimizer + * but will not pass the convergence check, so that the custom checker + * will always decide when to stop the line search. + */ +- private static final double ABS_TOL_UNUSED = Double.MIN_VALUE; ++// private static final double ABS_TOL_UNUSED = Double.MIN_VALUE; + /** + * Automatic bracketing. + */ +@@ -314,7 +314,7 @@ public class PowellOptimizer + LineSearch(double rel, + double abs) { + super(REL_TOL_UNUSED, +- ABS_TOL_UNUSED, ++ /* ABS_TOL_UNUSED */ Double.MIN_VALUE, + new SimpleUnivariateValueChecker(rel, abs)); + } + |