Bug 2354154 - RFE: update opencv in EPEL10 to 4.11 with qt6 enabled
Summary: RFE: update opencv in EPEL10 to 4.11 with qt6 enabled
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: opencv
Version: epel10
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Nicolas Chauvet (kwizart)
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-03-21 17:14 UTC by loise@kde.org
Modified: 2025-03-31 01:42 UTC (History)
6 users (show)

Fixed In Version: opencv-4.10.0-8.el10_0
Clone Of:
Environment:
Last Closed: 2025-03-31 01:42:48 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description loise@kde.org 2025-03-21 17:14:02 UTC
Description of problem:
opencv 4.10 as in EPEL 10 is build with qt5 while opencv 4.11 in rawhide is build already with qt6. Please update opencv so the build is against qt6 only to support development with opencv under the RHEL shipped qt6 without needing qt5 at all (also applies to building ffmpeg which requires opencv as a BR)

Version-Release number of selected component (if applicable):
4.10.0-7

How reproducible:
see the spec file of the epel10 version vs. the spec file of the rawhide version 4.11

Steps to Reproduce:
1.rebuild opencv from epel10
2.
3.

Actual results:
requires qt5 and qt5-qtbase

Expected results:
BuildRequires:  qt6-qtbase-devel
BuildRequires:  qt6-qt5compat-devel

Additional info:

please update and rebuild for epel10.0 as well

Comment 1 Nicolas Chauvet (kwizart) 2025-03-21 17:45:31 UTC
Updating to opencv 4.11 would imply an ABI break, I still need to verify how it dealt with epel10.x updated policy.

> ... also applies to building ffmpeg which requires opencv as a BR
Not sure what you mean by that. opencv in epel10 currently uses ffmpeg, but not the other way.

Comment 2 loise@kde.org 2025-03-21 19:20:48 UTC
(In reply to Nicolas Chauvet (kwizart) from comment #1)
> Updating to opencv 4.11 would imply an ABI break, I still need to verify how
> it dealt with epel10.x updated policy.
> 
> > ... also applies to building ffmpeg which requires opencv as a BR
> Not sure what you mean by that. opencv in epel10 currently uses ffmpeg, but
> not the other way.

What I meant is, we (KDE-SIG Fedora) want to eliminate Qt5 usage as much as possible and maximise builds with Qt6, ffmpeg is needed for Qt6 and requires opencv for building as well (first build of opencv without ffmpeg, then rebuild with ffmpeg after that is build)

Comment 3 loise@kde.org 2025-03-21 19:47:11 UTC
(In reply to Nicolas Chauvet (kwizart) from comment #1)
> Updating to opencv 4.11 would imply an ABI break, I still need to verify how
> it dealt with epel10.x updated policy.
You could also check if 4.10 would build with qt6 if that would avoid the problem ?

Comment 4 Nicolas Chauvet (kwizart) 2025-03-21 20:00:40 UTC
> ffmpeg is needed for Qt6
How's that ? by core qt libs or qt6-qtwebengine ?

> You could also check if 4.10 would build with qt6 if that would avoid the problem ?
That's several order of magnitude easier (if it works).

Testing with an epel10.0 scratch build...
https://koji.fedoraproject.org/koji/taskinfo?taskID=130577356

Comment 5 loise@kde.org 2025-03-21 20:12:42 UTC
(In reply to Nicolas Chauvet (kwizart) from comment #4)
> > ffmpeg is needed for Qt6
> How's that ? by core qt libs or qt6-qtwebengine ?

qt6-qtmultimedia requires ffmpeg though it can be build with gstreamer as well (still); qt6-qtwebengine requires ffmpeg (which is why it's in epel10 together with qt6-qtwebview instead of in rhel10 to not drag in all those dependencies for ffmpeg)

https://doc.qt.io/qt-6/qtmultimedia-building-from-source.html

Qtwebengine has ffmpeg and other codecs sources as a copy in the tarball, that's why the tarball gets cleaned before being used in fedora/epel and doesn't list ffmpeg as build requires:
https://doc.qt.io/qt-6/qtwebengine-platform-notes.html 
https://doc.qt.io/qt-6/qtwebengine-licensing.html

Also, a lot of KDE requires ffmpeg like ffmpeg-thumbnails for dolphin and haruna (IIRC)

> 
> > You could also check if 4.10 would build with qt6 if that would avoid the problem ?
> That's several order of magnitude easier (if it works).
> 
> Testing with an epel10.0 scratch build...
> https://koji.fedoraproject.org/koji/taskinfo?taskID=130577356

-- highgui: using builtin backend: QT6

Seems to be working :) 

Thank you !! :)

Comment 6 Sergio Basto 2025-03-22 00:24:40 UTC
(In reply to Nicolas Chauvet (kwizart) from comment #1)
> Updating to opencv 4.11 would imply an ABI break, I still need to verify how
> it dealt with epel10.x updated policy.
> 
> > ... also applies to building ffmpeg which requires opencv as a BR
> Not sure what you mean by that. opencv in epel10 currently uses ffmpeg, but
> not the other way.

only frei0r-plugins and spectacle depends on opencv 

Depending on: opencv (2)
        frei0r-plugins (epel)
                frei0r-plugins-2.3.3-4.el10_0.src requires opencv-devel = 4.10.0-7.el10_0
                frei0r-plugins-opencv-2.3.3-4.el10_0.x86_64 requires libopencv_core.so.410()(64bit), libopencv_imgproc.so.410()(64bit), libopencv_objdetect.so.410()(64bit), libopencv_video.so.410()(64bit)

        spectacle (epel)
                spectacle-1:6.3.0-1.el10_0.src requires cmake(OpenCV)
                spectacle-1:6.3.0-1.el10_0.x86_64 requires libopencv_core.so.410()(64bit), libopencv_imgproc.so.410()(64bit)

Comment 7 Fedora Update System 2025-03-22 10:42:52 UTC
FEDORA-EPEL-2025-9574743cc7 (opencv-4.10.0-8.el10_0) has been submitted as an update to Fedora EPEL 10.0.
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2025-9574743cc7

Comment 8 Fedora Update System 2025-03-23 02:22:29 UTC
FEDORA-EPEL-2025-9574743cc7 has been pushed to the Fedora EPEL 10.0 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2025-9574743cc7

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Fedora Update System 2025-03-31 01:42:48 UTC
FEDORA-EPEL-2025-9574743cc7 (opencv-4.10.0-8.el10_0) has been pushed to the Fedora EPEL 10.0 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.