Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 684694

Summary: sci-libs/ceres-solver-1.12.0 - CMake Error at /usr/lib64/cmake/Ceres/CeresConfig.cmake:89 (else): A duplicate ELSE command was found inside an IF block.
Product: Gentoo Linux Reporter: Leonard Lausen <leonard>
Component: Current packagesAssignee: Gentoo Science Related Packages <sci>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Leonard Lausen 2019-04-29 04:28:16 UTC
See https://bugzilla.redhat.com/show_bug.cgi?id=1479023

Version 1.12.0 prevents compilation of opencv with contrib and contrib_dnn flags.

CMake Error at /usr/lib64/cmake/Ceres/CeresConfig.cmake:89 (else):
  A duplicate ELSE command was found inside an IF block.
Call Stack (most recent call first):
  /usr/lib64/cmake/Ceres/CeresConfig.cmake:217 (ceres_report_not_found)
  /var/tmp/portage/media-libs/opencv-3.4.1-r5/work/opencv_contrib-3.4.1/modules/sfm/CMakeLists.txt:8 (find_package)


Either backporting the fix (see fedora) or bumping version should solve this.
Comment 1 Andreas Sturmlechner gentoo-dev 2020-03-22 23:45:29 UTC
Fixed in 1.14 then.