Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 820509 - media-libs/openimageio-2.2.18.0-r1: Emerging issues caused by Imath
Summary: media-libs/openimageio-2.2.18.0-r1: Emerging issues caused by Imath
Status: RESOLVED DUPLICATE of bug 816264
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Aisha Tammy
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-27 12:31 UTC by perigordtruffle7318
Modified: 2021-10-29 09:22 UTC (History)
2 users (show)

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


Attachments
Emerge --info openimageio (build.info,6.76 KB, application/x-info)
2021-10-27 12:31 UTC, perigordtruffle7318
Details
Build.log pre imath emerge (build.log,10.02 KB, text/plain)
2021-10-27 12:38 UTC, perigordtruffle7318
Details
emerge --info '=media-libs/openimageio-2.2.18.0-r1::gentoo' (build.info.log,6.76 KB, text/x-log)
2021-10-27 12:40 UTC, perigordtruffle7318
Details
emerge after emerging Imath (build-postImath.log,278.70 KB, text/plain)
2021-10-27 12:49 UTC, perigordtruffle7318
Details
emerge --info '=dev-libs/imath-3.1.3::gentoo' (imath.info,7.49 KB, text/plain)
2021-10-27 12:51 UTC, perigordtruffle7318
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***