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

Bug 820509

Summary: media-libs/openimageio-2.2.18.0-r1: Emerging issues caused by Imath
Product: Gentoo Linux Reporter: perigordtruffle7318
Component: Current packagesAssignee: Aisha Tammy <gentoo>
Status: RESOLVED DUPLICATE    
Severity: normal CC: jstein, sci
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Emerge --info openimageio
Build.log pre imath emerge
emerge --info '=media-libs/openimageio-2.2.18.0-r1::gentoo'
emerge after emerging Imath
emerge --info '=dev-libs/imath-3.1.3::gentoo'

Description perigordtruffle7318 2021-10-27 12:31:56 UTC
Created attachment 746973 [details]
Emerge --info openimageio

First thing I noticed is the lack of Imath in any of the ebuilds


$ cat /var/db/repos/gentoo/media-libs/openimageio/* | grep -i "imath" 
✘ $
Comment 1 perigordtruffle7318 2021-10-27 12:34:08 UTC
oh wait accidentally pressed enter too early,
Comment 2 perigordtruffle7318 2021-10-27 12:38:41 UTC
Created attachment 746976 [details]
Build.log pre imath emerge
Comment 3 perigordtruffle7318 2021-10-27 12:40:43 UTC
Created attachment 746979 [details]
emerge --info '=media-libs/openimageio-2.2.18.0-r1::gentoo'
Comment 4 perigordtruffle7318 2021-10-27 12:45:06 UTC
Comment on attachment 746976 [details]
Build.log pre imath emerge

Of course this causes the cmake generation to fail
Comment 5 perigordtruffle7318 2021-10-27 12:49:46 UTC
Created attachment 746982 [details]
emerge after emerging Imath

Emerging with Imath installed does cause some namespace collisions which is easily fixed by some word replacements, i've even tried making a local clone and most of the namespace issues got fixed only leaving behind these errors:

In file included from /usr/include/Imath/ImathColor.h:17,
                 from /var/tmp/portage/media-libs/openimageio-2.2.18.0-r1/work/openimageio-2.2.18.0_build/include/OpenImageIO/Imath.h:16,
                 from /var/tmp/portage/media-libs/openimageio-2.2.18.0-r1/work/oiio-Release-2.2.18.0/src/include/OpenImageIO/fmath.h:40,
                 from /var/tmp/portage/media-libs/openimageio-2.2.18.0-r1/work/oiio-Release-2.2.18.0/src/openexr.imageio/exroutput.cpp:75:

/usr/include/Imath/half.h:569:5: error: ‘IMATH_CONSTEXPR14’ does not name a type; did you mean ‘OIIO_CONSTEXPR14’?
  569 |     IMATH_CONSTEXPR14 half round (unsigned int n) const IMATH_NOEXCEPT;
      |     ^~~~~~~~~~~~~~~~~
      |     OIIO_CONSTEXPR14
Comment 6 perigordtruffle7318 2021-10-27 12:51:46 UTC
Created attachment 746985 [details]
emerge --info '=dev-libs/imath-3.1.3::gentoo'
Comment 7 Tee KOBAYASHI 2021-10-28 23:38:55 UTC
The problem seems to be that cmake is going to use media-libs/openexr:3 when installed, whereas the ebuild(s) of openimageio specifies the dependency on media-libs/openexr:0.

A workaround would be to unmerge media-libs/openexr:3, if possible.
Comment 8 Tee KOBAYASHI 2021-10-29 00:24:42 UTC
See also: https://bugs.gentoo.org/820275
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-10-29 09:22:01 UTC

*** This bug has been marked as a duplicate of bug 816264 ***