maintainer-feedback requested: [Bug 267809] graphics/opencv: does not link with lapacke

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 16 Nov 2022 13:12:20 UTC
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-desktop (Team)
<desktop@FreeBSD.org> for maintainer-feedback:
Bug 267809: graphics/opencv: does not link with lapacke
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267809



--- Description ---
Testing an upgrade to the blas/lapack ports, I noticed that opencv depends on
liblapacke, but it does not use it:

Just try the output of:
$ ldd /usr/local/bin/opencv_annotation | grep lapacke

Actually it only checks for the headers, cblas.h and lapacke.h, so that we can
replace LIB_DEPENDS by a BUILD_DEPENDS.

=>> Checking shared library dependencies
 0x0000000000000001 NEEDED		 Shared library: [libOpenEXR-3_1.so.30]
 0x0000000000000001 NEEDED		 Shared library: [libc++.so.1]
 0x0000000000000001 NEEDED		 Shared library: [libc.so.7]
 0x0000000000000001 NEEDED		 Shared library: [libcxxrt.so.1]
 0x0000000000000001 NEEDED		 Shared library: [libdc1394.so.25]
 0x0000000000000001 NEEDED		 Shared library: [libdl.so.1]
 0x0000000000000001 NEEDED		 Shared library: [libfreetype.so.6]
 0x0000000000000001 NEEDED		 Shared library: [libgcc_s.so.1]
 0x0000000000000001 NEEDED		 Shared library: [libgdal.so.3]
 0x0000000000000001 NEEDED		 Shared library: [libgdcmDSED.so.3.0]
 0x0000000000000001 NEEDED		 Shared library: [libgdcmMSFF.so.3.0]
 0x0000000000000001 NEEDED		 Shared library: [libglib-2.0.so.0]
 0x0000000000000001 NEEDED		 Shared library: [libglog.so.1]
 0x0000000000000001 NEEDED		 Shared library: [libgobject-2.0.so.0]
 0x0000000000000001 NEEDED		 Shared library: [libgphoto2.so.6]
 0x0000000000000001 NEEDED		 Shared library:
[libgphoto2_port.so.12]
 0x0000000000000001 NEEDED		 Shared library: [libgstapp-1.0.so.0]
 0x0000000000000001 NEEDED		 Shared library: [libgstaudio-1.0.so.0]
 0x0000000000000001 NEEDED		 Shared library: [libgstbase-1.0.so.0]
 0x0000000000000001 NEEDED		 Shared library:
[libgstpbutils-1.0.so.0]
 0x0000000000000001 NEEDED		 Shared library:
[libgstreamer-1.0.so.0]
 0x0000000000000001 NEEDED		 Shared library: [libgstriff-1.0.so.0]
 0x0000000000000001 NEEDED		 Shared library: [libgstvideo-1.0.so.0]
 0x0000000000000001 NEEDED		 Shared library: [libharfbuzz.so.0]
 0x0000000000000001 NEEDED		 Shared library: [libhdf5.so.200]
 0x0000000000000001 NEEDED		 Shared library: [libjpeg.so.8]
 0x0000000000000001 NEEDED		 Shared library: [libm.so.5]
 0x0000000000000001 NEEDED		 Shared library: [libopenblas.so.0]
 0x0000000000000001 NEEDED		 Shared library:
[libopencv_alphamat.so.406]
 0x0000000000000001 NEEDED		 Shared library:
[libopencv_aruco.so.406]
 0x0000000000000001 NEEDED		 Shared library:
[libopencv_barcode.so.406]
 0x0000000000000001 NEEDED		 Shared library:
[libopencv_bgsegm.so.406]
 0x0000000000000001 NEEDED		 Shared library:
[libopencv_bioinspired.so.406]
 0x0000000000000001 NEEDED		 Shared library:
[libopencv_calib3d.so.406]
 0x0000000000000001 NEEDED		 Shared library:
[libopencv_ccalib.so.406]
 0x0000000000000001 NEEDED		 Shared library:
[libopencv_core.so.406]
 0x0000000000000001 NEEDED		 Shared library: [libopencv_dnn.so.406]
 0x0000000000000001 NEEDED		 Shared library:
[libopencv_dnn_superres.so.406]
 0x0000000000000001 NEEDED		 Shared library:
[libopencv_face.so.406]
 0x0000000000000001 NEEDED		 Shared library:
[libopencv_features2d.so.406]
 0x0000000000000001 NEEDED		 Shared library:
[libopencv_flann.so.406]
 0x0000000000000001 NEEDED		 Shared library:
[libopencv_freetype.so.406]
 0x0000000000000001 NEEDED		 Shared library:
[libopencv_fuzzy.so.406]
 0x0000000000000001 NEEDED		 Shared library:
[libopencv_gapi.so.406]
 0x0000000000000001 NEEDED		 Shared library: [libopencv_hdf.so.406]
 0x0000000000000001 NEEDED		 Shared library: [libopencv_hfs.so.406]
 0x0000000000000001 NEEDED		 Shared library:
[libopencv_highgui.so.406]
 0x0000000000000001 NEEDED		 Shared library:
[libopencv_img_hash.so.406]
 0x0000000000000001 NEEDED		 Shared library:
[libopencv_imgcodecs.so.406]
 0x0000000000000001 NEEDED		 Shared library:
[libopencv_imgproc.so.406]
 0x0000000000000001 NEEDED		 Shared library:
[libopencv_intensity_transform.so.406]
 0x0000000000000001 NEEDED		 Shared library:
[libopencv_line_descriptor.so.406]
 0x0000000000000001 NEEDED		 Shared library: [libopencv_mcc.so.406]
 0x0000000000000001 NEEDED		 Shared library: [libopencv_ml.so.406]
 0x0000000000000001 NEEDED		 Shared library:
[libopencv_objdetect.so.406]
 0x0000000000000001 NEEDED		 Shared library:
[libopencv_optflow.so.406]
 0x0000000000000001 NEEDED		 Shared library:
[libopencv_phase_unwrapping.so.406]
 0x0000000000000001 NEEDED		 Shared library:
[libopencv_photo.so.406]
 0x0000000000000001 NEEDED		 Shared library:
[libopencv_plot.so.406]
 0x0000000000000001 NEEDED		 Shared library:
[libopencv_quality.so.406]
 0x0000000000000001 NEEDED		 Shared library:
[libopencv_rapid.so.406]
 0x0000000000000001 NEEDED		 Shared library: [libopencv_reg.so.406]
 0x0000000000000001 NEEDED		 Shared library:
[libopencv_rgbd.so.406]
 0x0000000000000001 NEEDED		 Shared library:
[libopencv_saliency.so.406]
 0x0000000000000001 NEEDED		 Shared library: [libopencv_sfm.so.406]
 0x0000000000000001 NEEDED		 Shared library:
[libopencv_shape.so.406]
 0x0000000000000001 NEEDED		 Shared library:
[libopencv_stereo.so.406]
 0x0000000000000001 NEEDED		 Shared library:
[libopencv_stitching.so.406]
 0x0000000000000001 NEEDED		 Shared library:
[libopencv_structured_light.so.406]
 0x0000000000000001 NEEDED		 Shared library:
[libopencv_surface_matching.so.406]
 0x0000000000000001 NEEDED		 Shared library:
[libopencv_text.so.406]
 0x0000000000000001 NEEDED		 Shared library:
[libopencv_tracking.so.406]
 0x0000000000000001 NEEDED		 Shared library:
[libopencv_video.so.406]
 0x0000000000000001 NEEDED		 Shared library:
[libopencv_videoio.so.406]
 0x0000000000000001 NEEDED		 Shared library:
[libopencv_wechat_qrcode.so.406]
 0x0000000000000001 NEEDED		 Shared library:
[libopencv_xfeatures2d.so.406]
 0x0000000000000001 NEEDED		 Shared library:
[libopencv_ximgproc.so.406]
 0x0000000000000001 NEEDED		 Shared library:
[libopencv_xobjdetect.so.406]
 0x0000000000000001 NEEDED		 Shared library:
[libopencv_xphoto.so.406]
 0x0000000000000001 NEEDED		 Shared library: [libopenjp2.so.7]
 0x0000000000000001 NEEDED		 Shared library: [libpng16.so.16]
 0x0000000000000001 NEEDED		 Shared library: [libthr.so.3]
 0x0000000000000001 NEEDED		 Shared library: [libtiff.so.5]
 0x0000000000000001 NEEDED		 Shared library: [libwebp.so.7]
 0x0000000000000001 NEEDED		 Shared library: [libz.so.6]