Created attachment 215166 [details] svn diff patch to allow math/arpack-ng to link against math/openblas Some consumers of arpack-ng (e.g. math/scilab) provides user a choice between atlas and openblas. However arpack-ng cannot be linked against openblas, so scilab gets linked against both libraries. Attached patch adds support for WITH_BLAS=openblas option.
Created attachment 215168 [details] svn diff patch to allow math/arpack-ng to link against math/openblas it seems that openblas provides lapack functions also
Build info is available at https://gitlab.com/swills/freebsd-ports/pipelines/156988815
I wonder why this option is not made visible to users by means of OPTIONS?
(In reply to Gleb Popov from comment #3) I see 2 problems: 1) There is some kind of global switch in Mk/Uses/blaslapack.mk. I think there should be a global flag to switch default blas implementation for all ports. 2) Unfortunately, lapack parts of openblas are not drop-in replacement of math/lapack. Some tests in dependent libraries fail with lapack from openblas.
Created attachment 255827 [details] Offer a list of BLAS-options, use blaslapack.mk I think, blaslapack.mk should derive the desired implementation from the DEFAULT_VERSIONS list, instead of always defaulting to netlib.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=a551a619c2300b8ffa5492d4a4ab7b2471db7e04 commit a551a619c2300b8ffa5492d4a4ab7b2471db7e04 Author: Mikhail T. <freebsd-2024@virtual-estates.net> AuthorDate: 2024-12-19 18:29:18 +0000 Commit: Gleb Popov <arrowd@FreeBSD.org> CommitDate: 2024-12-19 18:32:59 +0000 math/arpack-ng: OPTIONalize blas dependency Co-authored-by: Gleb Popov <arrowd@FreeBSD.org> PR: 246938 Approved by: maintainer timeout math/arpack-ng/Makefile | 37 ++++++++++++------------------------- 1 file changed, 12 insertions(+), 25 deletions(-)