Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Nov 2021 01:34:53 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org
Subject:   git: 95cd93086e6f - 2021Q4 - biology/treekin: Unbreak
Message-ID:  <202111070134.1A71Yrfw044592@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch 2021Q4 has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=95cd93086e6fb0a44865d86a95486dfa59c16a83

commit 95cd93086e6fb0a44865d86a95486dfa59c16a83
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2021-10-15 15:47:33 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2021-11-07 01:34:50 +0000

    biology/treekin: Unbreak
    
    Recent Lapack API changes broke it.
    
    PR:             259179
    (cherry picked from commit c16b145a0f292e0aaf321c7b48681ccd63f7280b)
---
 biology/treekin/files/patch-src_calcpp.h | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/biology/treekin/files/patch-src_calcpp.h b/biology/treekin/files/patch-src_calcpp.h
index a4a06105feb8..ce61918e34e0 100644
--- a/biology/treekin/files/patch-src_calcpp.h
+++ b/biology/treekin/files/patch-src_calcpp.h
@@ -1,3 +1,5 @@
+- patch for latest breaking Lapack API changes, see https://github.com/Reference-LAPACK/lapack/issues/604#issuecomment-944069793
+
 --- src/calcpp.h.orig	2019-06-13 14:11:19 UTC
 +++ src/calcpp.h
 @@ -49,6 +49,9 @@
@@ -10,3 +12,23 @@
  #   include <lapacke/lapacke.h>
  # else
  #   ifdef HAVE_OPENBLAS_LAPACKE_H
+@@ -311,7 +314,8 @@ Calccpp::Mx_Dsyevx(const char *jobz,
+       /*default standard lapack */
+       ::dsyevx_((char *)jobz, (char *)range, (char *)uplo, n, (double *)a, lda, (double *)vl,
+               (double *)vu, il, iu, (double *)abstol, m, (double *)w,
+-              (double *)z, ldz, (double *)work, lwork, iwork, ifail, info);
++              (double *)z, ldz, (double *)work, lwork, iwork, ifail, info,
++              int(0) /*jobz_int*/, int(0) /*range_int*/, int(0) /*uplo_int*/); // "int" after the "info" parameter for each "char*" argument in the list
+       break;
+   }
+ }
+@@ -367,7 +371,8 @@ Calccpp::Mx_Dgeevx(const char *balanc,
+               (double *)wr, (double *)wi, (double *)vl, ldvl,
+               (double *)vr, ldvr, ilo, ihi, (double *)scale, (double *)abnrm, (double *)rconde,
+               (double *)rcondv, (double *)work,
+-              lwork, iwork, info);
++              lwork, iwork, info,
++              int(0) /*balanc_int*/, int(0) /*jobvl_int*/, int(0) /*jobvr_int*/, int(0) /*sense_int*/); // "int" after the "info" parameter for each "char*" argument in the list
+       break;
+   }
+ }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202111070134.1A71Yrfw044592>