Bug 2056509

Summary: opencv-3.4.6-7.el8 fails to rebuild from sources
Product: Red Hat Enterprise Linux 8 Reporter: Kamil Dudka <kdudka>
Component: opencvAssignee: Jiri Kucera <jkucera>
Status: CLOSED CURRENTRELEASE QA Contact: CS System Management SST QE <rhel-cs-system-management-subsystem-qe>
Severity: unspecified Docs Contact:
Priority: high    
Version: 8.6CC: databases-maint, kdudka, michel
Target Milestone: rcFlags: kdudka: needinfo-
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-22 12:17:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Kamil Dudka 2022-02-21 12:12:20 UTC
Description of problem:
opencv-3.4.6-7.el8 fails to rebuild from source in up2date build root.  This is most likely caused by ceres-solver being built against an obsolete version of gflags but I am assigning it to opencv initially because RHEL-8 packages are supposed to be rebuildable.


Version-Release number of selected component (if applicable):
opencv-3.4.6-7.el8


How reproducible:
Easily.


Steps to Reproduce:
1. brew build --scratch rhel-8.6.0-candidate 'git://pkgs.devel.redhat.com/rpms/opencv#4585e7035197c8c5c5e2d49fb33074ea6ed13e45'


Actual results:
DEBUG util.py:634:  Error: 
DEBUG util.py:634:   Problem: package ceres-solver-devel-1.13.0-2.el8.s390x requires libceres.so.1()(64bit), but none of the providers can be installed
DEBUG util.py:634:    - package ceres-solver-devel-1.13.0-2.el8.s390x requires ceres-solver(s390-64) = 1.13.0-2.el8, but none of the providers can be installed
DEBUG util.py:634:    - conflicting requests
DEBUG util.py:634:    - nothing provides libgflags.so.2.1()(64bit) needed by ceres-solver-1.13.0-2.el8.s390x
DEBUG util.py:636:  (try to add '--skip-broken' to skip uninstallable packages)
DEBUG util.py:787:  Child return code was: 1


Expected results:
Successful build.


Additional info:
https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=43206246

Comment 2 Michel Lind 2022-02-24 19:48:00 UTC
ceres-solver seems to be an internal-only dependency? On my c8s install, the ceres-solver that shows is the EPEL one, which is also why finding gflags dependencies does not bring up ceres-solver (which is likely how it was missed).

I can confirm that it built fine in my local mock against the newer gflags, with no change (just bumping the release field and regenerating the SRPM). opencv also chain-builds fine with the same bump, once I downloaded and installed SFML{,-devel} and libdc1394{,-devel} from Koji

❯ ls ../repo/results/centos-stream-8-x86_64/*/*.rpm
../repo/results/centos-stream-8-x86_64/ceres-solver-1.13.0-3.fc35/ceres-solver-1.13.0-3.el8.src.rpm
../repo/results/centos-stream-8-x86_64/ceres-solver-1.13.0-3.fc35/ceres-solver-1.13.0-3.el8.x86_64.rpm
../repo/results/centos-stream-8-x86_64/ceres-solver-1.13.0-3.fc35/ceres-solver-debuginfo-1.13.0-3.el8.x86_64.rpm
../repo/results/centos-stream-8-x86_64/ceres-solver-1.13.0-3.fc35/ceres-solver-debugsource-1.13.0-3.el8.x86_64.rpm
../repo/results/centos-stream-8-x86_64/ceres-solver-1.13.0-3.fc35/ceres-solver-devel-1.13.0-3.el8.x86_64.rpm
../repo/results/centos-stream-8-x86_64/opencv-3.4.6-7.fc35/opencv-3.4.6-7.el8.src.rpm
../repo/results/centos-stream-8-x86_64/opencv-3.4.6-7.fc35/opencv-3.4.6-7.el8.x86_64.rpm
../repo/results/centos-stream-8-x86_64/opencv-3.4.6-7.fc35/opencv-contrib-3.4.6-7.el8.x86_64.rpm
../repo/results/centos-stream-8-x86_64/opencv-3.4.6-7.fc35/opencv-contrib-debuginfo-3.4.6-7.el8.x86_64.rpm
../repo/results/centos-stream-8-x86_64/opencv-3.4.6-7.fc35/opencv-core-3.4.6-7.el8.x86_64.rpm
../repo/results/centos-stream-8-x86_64/opencv-3.4.6-7.fc35/opencv-core-debuginfo-3.4.6-7.el8.x86_64.rpm
../repo/results/centos-stream-8-x86_64/opencv-3.4.6-7.fc35/opencv-debuginfo-3.4.6-7.el8.x86_64.rpm
../repo/results/centos-stream-8-x86_64/opencv-3.4.6-7.fc35/opencv-debugsource-3.4.6-7.el8.x86_64.rpm
../repo/results/centos-stream-8-x86_64/opencv-3.4.6-7.fc35/opencv-devel-3.4.6-7.el8.x86_64.rpm
../repo/results/centos-stream-8-x86_64/opencv-3.4.6-7.fc35/opencv-doc-3.4.6-7.el8.noarch.rpm
../repo/results/centos-stream-8-x86_64/opencv-3.4.6-7.fc35/python3-opencv-3.4.6-7.el8.x86_64.rpm
../repo/results/centos-stream-8-x86_64/opencv-3.4.6-7.fc35/python3-opencv-debuginfo-3.4.6-7.el8.x86_64.rpm