Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 683126 - media-libs/openimageio-1.7.17 - CMake Error at src/cmake/modules/FindOpenEXR.cmake:59 (string): string sub-command REGEX, mode MATCHALL needs at least 5 arguments total to command.
Summary: media-libs/openimageio-1.7.17 - CMake Error at src/cmake/modules/FindOpenEXR....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: 642288
  Show dependency tree
 
Reported: 2019-04-11 23:45 UTC by Tango
Modified: 2019-04-21 18:24 UTC (History)
6 users (show)

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


Attachments
Emerge Info (file_683126.txt,6.10 KB, text/plain)
2019-04-11 23:45 UTC, Tango
Details
openimageio-1.7.17+openexr-2.3.0-config.patch (openimageio-1.7.17+openexr-2.3.0-config.patch,2.03 KB, patch)
2019-04-15 12:55 UTC, Alexander Miller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tango 2019-04-11 23:45:43 UTC
Created attachment 572536 [details]
Emerge Info

media-libs/openimageio-1.7.17 which is currently marked as stable, fails to complete configure stage due to bug #668412


-- Project build dir = /var/tmp/portage/media-libs/openimageio-1.7.17/work/openimageio-1.7.17_build
-- CMAKE_CXX_COMPILER is /usr/bin/x86_64-pc-linux-gnu-g++
-- CMAKE_CXX_COMPILER_ID is GNU
-- Building for C++14
-- Compiling with SIMD level sse2,sse3,ssse3,sse4.1,sse4.2,avx,avx2,f16c
-- Setting Namespace to: OpenImageIO
-- platform = linux64
CMake Error at src/cmake/modules/FindOpenEXR.cmake:59 (string):
  string sub-command REGEX, mode MATCHALL needs at least 5 arguments total to
  command.
Call Stack (most recent call first):
  src/cmake/externalpackages.cmake:89 (find_package)
  CMakeLists.txt:363 (include)


CMake Error at src/cmake/modules/FindOpenEXR.cmake:61 (string):
  string sub-command REGEX, mode MATCHALL needs at least 5 arguments total to
  command.
Call Stack (most recent call first):
  src/cmake/externalpackages.cmake:89 (find_package)
  CMakeLists.txt:363 (include)


CMake Error at src/cmake/modules/FindOpenEXR.cmake:63 (string):
  string sub-command REGEX, mode MATCHALL needs at least 5 arguments total to
  command.
Call Stack (most recent call first):
  src/cmake/externalpackages.cmake:89 (find_package)
  CMakeLists.txt:363 (include)


CMake Error at src/cmake/externalpackages.cmake:95 (if):
  if given arguments:

    "VERSION_LESS" "2.0.0"

  Unknown arguments specified
Call Stack (most recent call first):
  CMakeLists.txt:363 (include)


-- Configuring incomplete, errors occurred!
See also "/var/tmp/portage/media-libs/openimageio-1.7.17/work/openimageio-1.7.17_build/CMakeFiles/CMakeOutput.log".
See also "/var/tmp/portage/media-libs/openimageio-1.7.17/work/openimageio-1.7.17_build/CMakeFiles/CMakeError.log".
 * ERROR: media-libs/openimageio-1.7.17::gentoo failed (configure phase):
 *   cmake failed
 * 
 * Call stack:
 *     ebuild.sh, line  124:  Called src_configure
 *   environment, line 3850:  Called cmake-utils_src_configure
 *   environment, line 1078:  Called die
 * The specific snippet of code:
 *       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
 * 
 * If you need support, post the output of `emerge --info '=media-libs/openimageio-1.7.17::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-libs/openimageio-1.7.17::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/media-libs/openimageio-1.7.17/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-libs/openimageio-1.7.17/temp/environment'.
 * Working directory: '/var/tmp/portage/media-libs/openimageio-1.7.17/work/openimageio-1.7.17_build'
 * S: '/var/tmp/portage/media-libs/openimageio-1.7.17/work/openimageio-1.7.17'

>>> Failed to emerge media-libs/openimageio-1.7.17, Log file:

>>>  '/var/tmp/portage/media-libs/openimageio-1.7.17/temp/build.log'

Upgrading to media-libs/openimageio-1.8.17 solves the problem.
Comment 1 Aleksander Zatserkovnyy 2019-04-12 06:49:13 UTC
I have the same problem with openimageio-1.7.17, 
but 1.8.17 works fine.
Comment 2 kutayboz 2019-04-12 19:48:39 UTC
I have the exact same problem.
Comment 3 Israel G. Lugo 2019-04-15 01:32:25 UTC
Failing for me too with the same error message.
Comment 4 Alexander Miller 2019-04-15 12:55:33 UTC
Created attachment 572876 [details, diff]
openimageio-1.7.17+openexr-2.3.0-config.patch

I can confirm that media-libs/openimageio-1.7.17 doesn't build with media-libs/openexr-2.3.0.

For the latter, /usr/include/OpenEXR/OpenEXRConfig.h has been changed to a multilib wrapper, and openimageio's src/cmake/modules/FindOpenEXR.cmake doesn't find the version string it expects, leading to the error shown above.

The attached patch adds a pkgconfig check (taken from openimageio-1.8.17) to the cmake file to detect the version. Thus, the failing test is bypassed and the build succeeds.
Comment 5 Larry the Git Cow gentoo-dev 2019-04-21 18:24:15 UTC
The bug has been closed via the following commit(s):

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

commit 3aaca40c1636ae63b4fbe4fa04108f22607ae261
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2019-04-21 17:18:12 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2019-04-21 18:21:40 +0000

    media-libs/openimageio: Fix configure with openexr-2.3.0
    
    Thanks-to: Alexander Miller <alex.miller@gmx.de>
    Closes: https://bugs.gentoo.org/683126
    Package-Manager: Portage-2.3.64, Repoman-2.3.12
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 .../files/openimageio-1.7.17-openexr-2.3.0.patch   | 51 ++++++++++++++++++++++
 media-libs/openimageio/openimageio-1.7.17.ebuild   |  1 +
 2 files changed, 52 insertions(+)