pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

log1pl expm1l (Re: math/py-scipy import failure on netbsd-current



It is a good chance to review,
I had a patch on
   math/R-igraph,
thanks tnn@, 
Please correct me if I'm doing too bad,
thank you,

Makoto Fujiwara
mef%NetBSD.org@localhost
makoto%if.t.u-tokyo.ac.jp@localhost
Key fingerprint = 0BFA FAEB EAD1 90BA 7498  8F85 6809 9E0B B7EF A12E
----
pkgsrc freshness:
http://www.ki.nu/~makoto/pkgsrc/check-update/00_Summary.html
http://www.ki.nu/~makoto/pkgsrc/check-update/HEAD/00_Summary.html

$NetBSD: patch-src_vendor_plfit_hzeta.c,v 1.1 2022/04/28 15:44:47 mef Exp $

math/R-igraph/patches/patch-src_vendor_plfit_hzeta.c

/* tweak the macro, not found in NetBSD as of 9.99.96  */

--- src/vendor/plfit/hzeta.c.orig	2022-04-20 01:23:25.000000000 +0900
+++ src/vendor/plfit/hzeta.c	2022-04-29 00:33:15.125029161 +0900
@@ -64,6 +64,12 @@
 #define M_LOG2E    1.44269504088896340735992468100      /* log_2 (e) */
 #endif
 
+/* tweak the macro, not found in NetBSD as of 9.99.96  */
+#ifdef __NetBSD__
+#define log1pl(x) logl(1.0f+(x))
+#define expm1l(x) expl(x) - 1
+#endif
+
 /* imported from gsl_sf_result.h */
 
 struct gsl_sf_result_struct {



Home | Main Index | Thread Index | Old Index