pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/math/R-RcppArmadillo/patches math/R-RcppArmadillo: Add...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8db6f0ea33d7
branches:  trunk
changeset: 377793:8db6f0ea33d7
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Thu Mar 22 15:38:26 2018 +0000

description:
math/R-RcppArmadillo: Add a patch file for portability fix

This should have been a part of the previous import.

diffstat:

 math/R-RcppArmadillo/patches/patch-configure |  47 ++++++++++++++++++++++++++++
 1 files changed, 47 insertions(+), 0 deletions(-)

diffs (51 lines):

diff -r 4aa2685584dc -r 8db6f0ea33d7 math/R-RcppArmadillo/patches/patch-configure
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/R-RcppArmadillo/patches/patch-configure      Thu Mar 22 15:38:26 2018 +0000
@@ -0,0 +1,47 @@
+$NetBSD: patch-configure,v 1.1 2018/03/22 15:38:26 minskim Exp $
+
+Portability fix.
+
+--- configure.orig     2017-12-04 21:30:47.000000000 +0000
++++ configure
+@@ -2754,13 +2754,13 @@ newR=$("${R_HOME}/bin/Rscript" --vanilla
+ ## while this may seem a little unusual we do it to fully reproduce the
+ ## previous bash-based implementation
+ 
+-if test x"${hasRlapack}" == x""; then
++if test x"${hasRlapack}" = x""; then
+     ## We are using a full Lapack and can use zgesdd -- so #undef remains
+     { $as_echo "$as_me:${as_lineno-$LINENO}: result: system LAPACK found" >&5
+ $as_echo "system LAPACK found" >&6; }
+     arma_lapack="#undef ARMA_CRIPPLED_LAPACK"
+ else
+-    if test x"${newR}" == x"yes"; then
++    if test x"${newR}" = x"yes"; then
+         ## The R versions are recent enough and has an augmented internal Rlapack
+         { $as_echo "$as_me:${as_lineno-$LINENO}: result: fallback LAPACK from R 3.3.0 or later used" >&5
+ $as_echo "fallback LAPACK from R 3.3.0 or later used" >&6; }
+@@ -2785,7 +2785,7 @@ arma_have_openmp="#define ARMA_DONT_USE_
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for macOS" >&5
+ $as_echo_n "checking for macOS... " >&6; }
+ RSysinfoName=$("${R_HOME}/bin/Rscript" --vanilla -e 'cat(Sys.info()["sysname"])')
+-if test x"${RSysinfoName}" == x"Darwin"; then
++if test x"${RSysinfoName}" = x"Darwin"; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
+ $as_echo "found" >&6; }
+    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenMP unavailable and turned off." >&5
+@@ -2795,13 +2795,13 @@ else
+    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found as on ${RSysinfoName}" >&5
+ $as_echo "not found as on ${RSysinfoName}" >&6; }
+    ## Check for OpenMP if and only if we have a suitable compile
+-   if test x"${can_use_openmp}" == x"yes"; then
++   if test x"${can_use_openmp}" = x"yes"; then
+       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenMP" >&5
+ $as_echo_n "checking for OpenMP... " >&6; }
+       ## if R has -fopenmp we should be good
+       allldflags=$(${R_HOME}/bin/R CMD config --ldflags)
+       hasOpenMP=$(echo ${allldflags} | grep -- -fopenmp)
+-      if test x"${hasOpenMP}" == x""; then
++      if test x"${hasOpenMP}" = x""; then
+          { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5
+ $as_echo "missing" >&6; }
+          arma_have_openmp="#define ARMA_DONT_USE_OPENMP 1"



Home | Main Index | Thread Index | Old Index