[Bug 272173] graphics/opencv ATLAS knob cannot depend on cblas and cmake cannot find lapacke for this knob

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 03 Oct 2024 05:46:33 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272173

Jason E. Hale <jhale@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|maintainer-feedback?(deskto |maintainer-feedback+
                   |p@FreeBSD.org)              |
                 CC|                            |jhale@FreeBSD.org

--- Comment #1 from Jason E. Hale <jhale@FreeBSD.org> ---
(In reply to alt2600 from comment #0)

Sorry for the delayed response. I'm working on updating opencv to 4.10.0 and am
just trying to close some open PRs pertaining to it in the process.

Do you have a particular reason for using atlas over openblas? The atlas
project has been dead for many years and I was thinking of dropping support for
it in opencv.

> Anyway, noticed cblas and atlas-math cannot coexist, cblas says things are broken, they clobber.
Once upon a time, math/cblas and math/atlas installed headers into the same
place, but this doesn't seem to the case anymore after [1]. I think the
CONFLICTS line in math/atlas/Makefile is a leftover and can be removed. Atlas
doesn't have an active maintainer, so these things can happen.

> after clearing this depend and checking the configure's output I noticed lapack wasn't being found, actually lapacke, so had to force its path using a CMAKE_ON with Atlas_CLAPACK_INCLUDE_DIR.
This makes sense. The atlas-math package doesn't install a lapacke.h, so it
wouldn't be found in Atlas_INCLUDE_SEARCH_PATHS. Atlas_CLAPACK_INCLUDE_DIR
needs to be pointed to the lapacke.h installed by math/lapacke.

> Its possible openblas maybe has this issue?
Openblas installs its own cblas.h and lapacke.h which opencv detects and uses.
The BUILD_DEPENDS for cblas and lackpacke are ultimately unneeded/unused for
the OPENBLAS option and will be removed in the 4.10.0 update.

[1]
https://cgit.freebsd.org/ports/commit/?id=c2488a6020830af2cf09699b887adec7af806bf3

-- 
You are receiving this mail because:
You are the assignee for the bug.