As reported in bug 28485, there are file conflicts between the Mageia 7 and 8 versions of opencv-devel. file /usr/include/opencv2 from install of opencv-devel-4.5.1-1.mga8.x86_64 conflicts with file from package opencv-devel-3.4.5-2.1.mga7.x86_64 The problem there is that the directory /usr/include/opencv2 is being replaced by a symlink /usr/include/opencv2 -> opencv4/opencv2/ so proper conflicts are needed. As file conflicts cause all packages that happen to be in the same transaction to fail to be installed, it can result in a partial upgrade which leaves rpm unable to be used as happened in the report. Since opencv doesn't have a maintainer assigning to all packagers. This must be fixed before upgrading using mgaapplet can be enabled.
Priority: Normal => High
Should be fixed with upcoming opencv-4.5.1-1.1.mga8 in Core/Updates_testing repo!
CC: (none) => geiger.david68210
Keywords: (none) => IN_ERRATA8CC: (none) => fri
Installing updated packages over existing: lib64opencv_video4.5-4.5.1-1.1.mga8 lib64opencv_objdetect4.5-4.5.1-1.1.mga8 lib64opencv_calib3d4.5-4.5.1-1.1.mga8 lib64opencv_imgcodecs4.5-4.5.1-1.1.mga8 lib64opencv_highgui4.5-4.5.1-1.1.mga8 lib64opencv_features2d4.5-4.5.1-1.1.mga8 lib64opencv_dnn4.5-4.5.1-1.1.mga8 lib64opencv_imgproc4.5-4.5.1-1.1.mga8 lib64opencv_flann4.5-4.5.1-1.1.mga8 lib64opencv_core4.5-4.5.1-1.1.mga8 on Mageia 8 Plasma x86_64 does not produce any issue.
CC: (none) => ouaurelien
Blocks: (none) => 28393
Still fails on m7 to m8 upgrade of an install with opencv-devel installed. Installation failed: file /usr/include/opencv2 from install of opencv-devel-4.5.1-1.1.mga8.x86_64 conflicts with file from package opencv-devel-3.4.5-2.1.mga7.x86_64
Keywords: (none) => feedback
(In reply to Dave Hodgins from comment #3) > Still fails on m7 to m8 upgrade of an install with opencv-devel installed. > Installation failed: file /usr/include/opencv2 from install of > opencv-devel-4.5.1-1.1.mga8.x86_64 conflicts with file from package > opencv-devel-3.4.5-2.1.mga7.x86_64 With 8/core/updates_testing repositories enabled at update time?
(In reply to Aurelien Oudelet from comment #4) > (In reply to Dave Hodgins from comment #3) > > Still fails on m7 to m8 upgrade of an install with opencv-devel installed. > > Installation failed: file /usr/include/opencv2 from install of > > opencv-devel-4.5.1-1.1.mga8.x86_64 conflicts with file from package > > opencv-devel-3.4.5-2.1.mga7.x86_64 > > With 8/core/updates_testing repositories enabled at update time? Yes or opencv-devel-4.5.1-1.1.mga8.x86_64.rpm wouldn't have been found as shown in the error message.
Did more digging. It's obsoletes rather then conflicts that's needed. Obsoletes: opencv-devel < 4.5.1 instead of Conflicts: opencv-devel < 4.5.1
Pkg foo always obsoletes previous versions of foo. A %pretrans lua scriptlet is needed when replacing file/directory with a symlink. https://docs.fedoraproject.org/en-US/packaging-guidelines/Directory_Replacement/#_scriptlet_to_replace_a_directory
CC: (none) => jani.valimaa
Installation failed: file /usr/include/opencv2 from install of opencv-devel-4.5.1-1.1.mga8.x86_64 conflicts with file from package opencv-devel-3.4.5-2.1.mga7.x86_64 This is still the case. BUT as this is a -devel package and not installed on a default Mageia 7 installation... Ping?
Wally, can you do this ?
CC: (none) => mageia
Ping. This is still causing a cascading error during upgrade. In my latest test the upgrade appeared to complete ok, but after rebooting into the upgraded system the desktop fails to load leaving just a black screen, with no menu or context menu working. Out of just over 2,500 packages included in this upgrade test this was the only remaining file conflict.
Please test with opencv-4.5.1-1.2.mga8 from core/updates_testing.
Assignee: pkg-bugs => qa-bugs
Keywords: feedback => (none)
Fails with Installation failed: file /usr/include/opencv2 from install of opencv-devel-4.5.1-1.2.mga8.x86_64 conflicts with file from package opencv-devel-3.4.5-2.1.mga7.x86_64
Fedora has documentation on how to replace a directory with a symlink https://docs.fedoraproject.org/en-US/packaging-guidelines/Directory_Replacement/
(In reply to Dave Hodgins from comment #13) > Fedora has documentation on how to replace a directory with a symlink > https://docs.fedoraproject.org/en-US/packaging-guidelines/ > Directory_Replacement/ Yep, see comment 7. Lua scriptlet was used, but os.remove() can't remove directories unless they're empty. Lets see if opencv-4.5.1-1.3.mga8 works better.
I had no issues when upgrading my mga7 dev chroot to mga8 with opencv-devel installed. SRPMS: opencv-4.5.1-1.3.mga8 RPMS: opencv-4.5.1-1.3.mga8 opencv-devel-4.5.1-1.3.mga8 opencv-samples-4.5.1-1.3.mga8 python3-opencv-4.5.1-1.3.mga8 lib(64)opencv_alphamat4.5-4.5.1-1.3.mga8 lib(64)opencv_aruco4.5-4.5.1-1.3.mga8 lib(64)opencv_bgsegm4.5-4.5.1-1.3.mga8 lib(64)opencv_bioinspired4.5-4.5.1-1.3.mga8 lib(64)opencv_calib3d4.5-4.5.1-1.3.mga8 lib(64)opencv_ccalib4.5-4.5.1-1.3.mga8 lib(64)opencv_core4.5-4.5.1-1.3.mga8 lib(64)opencv_datasets4.5-4.5.1-1.3.mga8 lib(64)opencv_dnn4.5-4.5.1-1.3.mga8 lib(64)opencv_dnn_objdetect4.5-4.5.1-1.3.mga8 lib(64)opencv_dnn_superres4.5-4.5.1-1.3.mga8 lib(64)opencv_dpm4.5-4.5.1-1.3.mga8 lib(64)opencv_face4.5-4.5.1-1.3.mga8 lib(64)opencv_features2d4.5-4.5.1-1.3.mga8 lib(64)opencv_flann4.5-4.5.1-1.3.mga8 lib(64)opencv_freetype4.5-4.5.1-1.3.mga8 lib(64)opencv_fuzzy4.5-4.5.1-1.3.mga8 lib(64)opencv_gapi4.5-4.5.1-1.3.mga8 lib(64)opencv_hfs4.5-4.5.1-1.3.mga8 lib(64)opencv_highgui4.5-4.5.1-1.3.mga8 lib(64)opencv_imgcodecs4.5-4.5.1-1.3.mga8 lib(64)opencv_img_hash4.5-4.5.1-1.3.mga8 lib(64)opencv_imgproc4.5-4.5.1-1.3.mga8 lib(64)opencv_intensity_transform4.5-4.5.1-1.3.mga8 lib(64)opencv_line_descriptor4.5-4.5.1-1.3.mga8 lib(64)opencv_mcc4.5-4.5.1-1.3.mga8 lib(64)opencv_ml4.5-4.5.1-1.3.mga8 lib(64)opencv_objdetect4.5-4.5.1-1.3.mga8 lib(64)opencv_optflow4.5-4.5.1-1.3.mga8 lib(64)opencv_phase_unwrapping4.5-4.5.1-1.3.mga8 lib(64)opencv_photo4.5-4.5.1-1.3.mga8 lib(64)opencv_plot4.5-4.5.1-1.3.mga8 lib(64)opencv_quality4.5-4.5.1-1.3.mga8 lib(64)opencv_rapid4.5-4.5.1-1.3.mga8 lib(64)opencv_reg4.5-4.5.1-1.3.mga8 lib(64)opencv_rgbd4.5-4.5.1-1.3.mga8 lib(64)opencv_saliency4.5-4.5.1-1.3.mga8 lib(64)opencv_shape4.5-4.5.1-1.3.mga8 lib(64)opencv_stereo4.5-4.5.1-1.3.mga8 lib(64)opencv_stitching4.5-4.5.1-1.3.mga8 lib(64)opencv_structured_light4.5-4.5.1-1.3.mga8 lib(64)opencv_superres4.5-4.5.1-1.3.mga8 lib(64)opencv_surface_matching4.5-4.5.1-1.3.mga8 lib(64)opencv_text4.5-4.5.1-1.3.mga8 lib(64)opencv_tracking4.5-4.5.1-1.3.mga8 lib(64)opencv_video4.5-4.5.1-1.3.mga8 lib(64)opencv_videoio4.5-4.5.1-1.3.mga8 lib(64)opencv_videostab4.5-4.5.1-1.3.mga8 lib(64)opencv_ximgproc4.5-4.5.1-1.3.mga8 lib(64)opencv_xobjdetect4.5-4.5.1-1.3.mga8 lib(64)opencv_xphoto4.5-4.5.1-1.3.mga8
Yeah! 1612/2513: opencv-devel ############################################# 16/37: removing opencv-devel-3.4.5-2.1.mga7.x86_64 [root@localhost ~]# rpm -q opencv-devel opencv-devel-4.5.1-1.3.mga8 Validating the update.
Whiteboard: (none) => MGA8-64-OKKeywords: (none) => validated_updateCC: (none) => sysadmin-bugs
Advisory committed to svn
Keywords: (none) => advisory
An update for this issue has been pushed to the Mageia Updates repository. https://advisories.mageia.org/MGAA-2021-0056.html
Status: NEW => RESOLVEDResolution: (none) => FIXED
In Errata marked as fixed by update