git: 1f34f21bb4ef - main - math/mpsolve: Fix build
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 11 Nov 2023 17:25:31 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=1f34f21bb4ef39f59f54e9d65329f0d7b26312bb
commit 1f34f21bb4ef39f59f54e9d65329f0d7b26312bb
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-11-11 17:23:43 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-11-11 17:25:28 +0000
math/mpsolve: Fix build
Add patch that removes redefined isnan that is added in the project
for systems w/out isnan (I guess).
Reported by: fallout
---
math/mpsolve/files/patch-include_mps_types.h | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/math/mpsolve/files/patch-include_mps_types.h b/math/mpsolve/files/patch-include_mps_types.h
new file mode 100644
index 000000000000..9da025455405
--- /dev/null
+++ b/math/mpsolve/files/patch-include_mps_types.h
@@ -0,0 +1,20 @@
+- workaround for https://github.com/robol/MPSolve/issues/38
+
+--- include/mps/types.h.orig 2023-11-09 17:34:55 UTC
++++ include/mps/types.h
+@@ -22,6 +22,7 @@ typedef int mps_debug_level;
+
+ /* Handle systems where isnan and isinf are not available */
+ #include <math.h>
++#if 0
+ #ifndef isnan
+ # define isnan(x) \
+ (sizeof(x) == sizeof(long double) ? isnan_ld (x) \
+@@ -58,6 +59,7 @@ static inline int isinf_ld (long double x)
+ {
+ return !isnan (x) && isnan (x - x);
+ }
++#endif
+ #endif
+
+ #include <mps/mt-types.h>