Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 947031 - media-libs/opencv[mkl, -lapack] should not be allowed and crashes build
Summary: media-libs/opencv[mkl, -lapack] should not be allowed and crashes build
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Paul Zander
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2024-12-27 17:07 UTC by Reva Denis
Modified: 2025-05-08 11:30 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Complete build log (build.log,684.71 KB, text/x-log)
2024-12-27 17:08 UTC, Reva Denis
Details
emerge --info (info.txt,9.34 KB, text/plain)
2024-12-27 17:09 UTC, Reva Denis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Reva Denis 2024-12-27 17:07:08 UTC
At this moment it is possible to install media-libs/opencv[mkl,-lapack], which is completely wrong because:
	lapack? (
		atlas? ( sci-libs/atlas )
		mkl? ( sci-libs/mkl )
		!atlas? (
			!mkl? (
				virtual/cblas
				>=virtual/lapack-3.10
				virtual/lapacke
			)
		)
	)
So mkl dep weirdly is not installed if lapack is not enabled :)


Reproducible: Always



Expected Results:  
There must be REQUIRED_USE
Comment 1 Reva Denis 2024-12-27 17:08:04 UTC
Created attachment 915295 [details]
Complete build log
Comment 2 Reva Denis 2024-12-27 17:09:26 UTC
Created attachment 915297 [details]
emerge --info
Comment 3 Paul Zander 2025-05-07 14:29:19 UTC
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: error: /opt/cuda/targets/x86_64-linux/lib/libcublasLt.so: file too short

That's the cause of the build crash. Not the config options.

I'll add the REQUIRED_USE to opencv-4.11.
Comment 4 Larry the Git Cow gentoo-dev 2025-05-08 06:29:32 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b9d43224edb4e4a966f3031b08f97929c3a24065

commit b9d43224edb4e4a966f3031b08f97929c3a24065
Author:     Paul Zander <negril.nx+gentoo@gmail.com>
AuthorDate: 2025-05-01 18:37:55 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-05-08 06:26:48 +0000

    media-libs/opencv: add 4.11.0
    
    Bug: https://bugs.gentoo.org/947031
    Closes: https://bugs.gentoo.org/953397
    Closes: https://bugs.gentoo.org/953304
    Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
    Part-of: https://github.com/gentoo/gentoo/pull/41967
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/opencv/Manifest                         |    5 +
 .../files/opencv-4.11.0-ade-0.1.2e.tar.gz.patch    |   18 +
 .../opencv/files/opencv-4.11.0-cmake-CMP0175.patch |   22 +
 .../opencv/files/opencv-4.11.0-cmake-CMP0177.patch |   25 +
 media-libs/opencv/files/opencv-4.11.0-qt-6.9.patch |   19 +
 media-libs/opencv/metadata.xml                     |    4 +
 media-libs/opencv/opencv-4.11.0.ebuild             | 1473 ++++++++++++++++++++
 profiles/arch/amd64/use.mask                       |    9 +
 profiles/arch/arm/use.mask                         |    5 +
 profiles/arch/arm64/use.mask                       |    4 +
 profiles/arch/base/use.mask                        |    9 +
 profiles/features/big-endian/package.use.mask      |    1 +
 12 files changed, 1594 insertions(+)