Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 836378 - media-libs/opencolorio-2.1.1-r7 does not install ociodisplay and ocioconvert
Summary: media-libs/opencolorio-2.1.1-r7 does not install ociodisplay and ocioconvert
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Paul Zander
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2022-03-29 17:43 UTC by peteru
Modified: 2024-03-18 16:35 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description peteru 2022-03-29 17:43:27 UTC
Emerging media-libs/opencolorio-2.1.1-r7 does not result in the ociodisplay and ocioconvert programs being installed.


Reproducible: Always

Steps to Reproduce:
# emerge -av opencolorio
[ebuild   R    ] media-libs/opencolorio-2.1.1-r7:0/2.1.1::gentoo  USE="opengl (-doc) -python -static-libs -test" CPU_FLAGS_X86="sse2" PYTHON_SINGLE_TARGET="python3_9 -python3_8 -python3_10" 0 KiB


Actual Results:  
# equery f opencolorio
 * Searching for opencolorio ...
 * Contents of media-libs/opencolorio-2.1.1-r7:
/usr
/usr/bin
/usr/bin/ociobakelut
/usr/bin/ociocheck
/usr/bin/ociochecklut
/usr/bin/ociomakeclf
/usr/bin/ociowrite
/usr/include
/usr/include/OpenColorIO
/usr/include/OpenColorIO/OpenColorABI.h
/usr/include/OpenColorIO/OpenColorAppHelpers.h
/usr/include/OpenColorIO/OpenColorIO.h
/usr/include/OpenColorIO/OpenColorTransforms.h
/usr/include/OpenColorIO/OpenColorTypes.h
/usr/include/OpenColorIO/oglapphelpers
/usr/include/OpenColorIO/oglapphelpers/glsl.h
/usr/include/OpenColorIO/oglapphelpers/oglapp.h
/usr/lib64
/usr/lib64/cmake
/usr/lib64/cmake/OpenColorIO
/usr/lib64/cmake/OpenColorIO/OpenColorIOConfig.cmake
/usr/lib64/cmake/OpenColorIO/OpenColorIOConfigVersion.cmake
/usr/lib64/cmake/OpenColorIO/OpenColorIOTargets-relwithdebinfo.cmake
/usr/lib64/cmake/OpenColorIO/OpenColorIOTargets.cmake
/usr/lib64/libOpenColorIO.so -> libOpenColorIO.so.2.1
/usr/lib64/libOpenColorIO.so.2.1 -> libOpenColorIO.so.2.1.1
/usr/lib64/libOpenColorIO.so.2.1.1
/usr/lib64/libOpenColorIOoglapphelpers.a
/usr/lib64/pkgconfig
/usr/lib64/pkgconfig/OpenColorIO.pc
/usr/share
/usr/share/doc
/usr/share/doc/opencolorio-2.1.1-r7
/usr/share/doc/opencolorio-2.1.1-r7/README.md.bz2
/usr/share/ocio
/usr/share/ocio/setup_ocio.sh

Expected Results:  
/usr/bin/ should also include ociodisplay and ocioconvert

OpenImageIO is also built with OpenGL enabled, which would be a prerequisite for ocidisplay

# eix openimageio
[I] media-libs/openimageio
     Available versions:  2.2.18.0-r1(0/2.2)^t ~2.2.19.0(0/2.2)^t ~2.3.11.0(0/2.3)^t ~2.3.11.0-r2(0/2.3.1)^t 2.3.12.0-r3(0/2.3.1)^t ~2.3.13.0(0/2.3.1)^t {X dicom doc ffmpeg field3d gif jpeg2k opencv opengl openvdb ptex python qt5 raw test +truetype CPU_FLAGS_X86="aes avx avx2 avx512f f16c sse2 sse3 sse4_1 sse4_2 ssse3" PYTHON_SINGLE_TARGET="python3_8 python3_9 python3_10"}
     Installed versions:  2.3.12.0-r3(0/2.3.1)^t(03:05:44 30/03/22)(X ffmpeg gif opengl qt5 raw truetype -dicom -doc -jpeg2k -opencv -openvdb -ptex -python -test CPU_FLAGS_X86="aes avx avx2 f16c sse2 sse3 sse4_1 sse4_2 ssse3 -avx512f" PYTHON_SINGLE_TARGET="python3_9 -python3_8 -python3_10")
     Homepage:            https://sites.google.com/site/openimageio/ https://github.com/OpenImageIO
     Description:         A library for reading and writing images




# emerge --info
Portage 3.0.30 (python 3.9.9-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-11.2.1, glibc-2.33-r13, 5.17.0-gentoo x86_64)
=================================================================
System uname: Linux-5.17.0-gentoo-x86_64-Intel-R-_Core-TM-_i7-10700_CPU_@_2.90GHz-with-glibc2.33
KiB Mem:    65618084 total,  57898412 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sat, 26 Mar 2022 04:45:01 +0000
Head commit of repository gentoo: 7956e41c2bed05c5fc55e7937f892c53474a0f72
Timestamp of repository metahax: Fri, 25 Mar 2022 20:09:52 +0000
Head commit of repository metahax: ec034daf1e00726bf336353148723ca30f04d7ca

Timestamp of repository spikyatlinux: Sat, 26 Mar 2022 00:34:27 +0000
Head commit of repository spikyatlinux: 676adbe032d07fbba61fb4bc46194fab793587c0

sh bash 5.1_p16
ld GNU ld (Gentoo 2.37_p1 p2) 2.37
app-misc/pax-utils:        1.3.3::gentoo
app-shells/bash:           5.1_p16::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.34.0-r6::gentoo
dev-lang/python:           2.7.18_p14::gentoo, 3.9.9-r1::gentoo, 3.10.2_p1::gentoo
dev-lang/rust:             1.58.1::gentoo
dev-util/cmake:            3.22.2::gentoo
dev-util/meson:            0.60.3::gentoo
sys-apps/baselayout:       2.7-r3::gentoo
sys-apps/openrc:           0.44.10::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.4::gentoo
sys-devel/binutils:        2.37_p1-r2::gentoo
sys-devel/binutils-config: 5.4::gentoo
sys-devel/clang:           13.0.1::gentoo
sys-devel/gcc:             11.2.1_p20220115::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.6-r6::gentoo
sys-devel/lld:             13.0.1::gentoo
sys-devel/llvm:            13.0.1::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.33-r13::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync2.au.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts:
    sync-rsync-verify-jobs: 1

metahax
    location: /var/db/repos/metahax
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/metahax.git
    masters: gentoo

spikyatlinux
    location: /var/db/repos/spikyatlinux
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/spikyatlinux.git
    masters: gentoo

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="-j8 --keep-going --with-bdeps y"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="https://mirror.aarnet.edu.au/pub/gentoo https://mirror.rackspace.com/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_AU.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j16 --load-average=20"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="7zip X a52 aac acl acpi activities alsa amd64 bash-completion bluetooth branding bzip2 cairo cdda cddb cdr cli crypt cups dbus declarative dri drm dts dvd dvdr elogind encode exif ffmpeg fftw flac fontconfig fortran gdbm gif git gstreamer gtk gui iconv icu id3tag imagemagick ipod ipv6 jpeg kde kwallet lame lcms libglvnd libnotify libtirpc lm-sensors lv2 lzma mad matroska mng mp3 mp4 mpeg mtp multilib ncurses nfs nls nptl ogg opengl openmp opus pam pango pcre pdf plasma png policykit postproc ppds pulseaudio qml qt5 rar raw readline samba sddm sdl seccomp semantic-desktop sensors spell split-usr ssl startup-notification svg taglib theora threads tiff tk truetype udev udisks unicode upower usb v4l vaapi vdpau vorbis vpx vulkan webp widgets wxwidgets x264 x265 xattr xcb xml xv xvid zeroconf zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2020" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev libinput wacom" KERNEL="linux" L10N="en en_AU" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="intel i965 iris" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 peteru 2022-03-29 17:51:10 UTC
This may be due to the C++ version not being set, thus defaulting to C++11, whereas C++14 is needed for OpenImageIO

cmake -C /var/tmp/portage/media-libs/opencolorio-2.1.1-r7/work/opencolorio-2.1.1_build/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DOCIO_USE_OPENEXR_HALF=OFF -DBUILD_SHARED_LIBS=ON -DOCIO_BUILD_STATIC=no -DOCIO_BUILD_DOCS=no -DOCIO_BUILD_APPS=yes -DOCIO_BUILD_PYTHON=no -DOCIO_PYTHON_VERSION= -DOCIO_BUILD_JAVA=OFF -DOCIO_USE_SSE=yes -DOCIO_BUILD_TESTS=no -DOCIO_BUILD_GPU_TESTS=no -DOCIO_BUILD_FROZEN_DOCS=no -DOCIO_INSTALL_EXT_PACKAGES=NONE -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/media-libs/opencolorio-2.1.1-r7/work/opencolorio-2.1.1_build/gentoo_toolchain.cmake /var/tmp/portage/media-libs/opencolorio-2.1.1-r7/work/OpenColorIO-2.1.1
loading initial cache file /var/tmp/portage/media-libs/opencolorio-2.1.1-r7/work/opencolorio-2.1.1_build/gentoo_common_config.cmake
-- The CXX compiler identification is GNU 11.2.1
-- The C compiler identification is GNU 11.2.1
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Setting C++ version to '11' as none was specified.
-- Performing Test COMPILER_SUPPORTS_CXX11
-- Performing Test COMPILER_SUPPORTS_CXX11 - Success
-- Found OpenGL: /usr/lib64/libOpenGL.so  found components: OpenGL 
-- Found GLEW: /usr/include (found version "2.2.0") 
-- Found PkgConfig: /usr/bin/x86_64-pc-linux-gnu-pkg-config (found version "1.8.0") 
-- Checking for module 'glut'
--   Found glut, version 3.2.1
-- Found GLUT: TRUE  
-- GLVND supported
-- Performing Test HAVE_SSE2
-- Performing Test HAVE_SSE2 - Success
-- Setting SOVERSION to '2.1' as none was specified.
-- Found expat: /usr/include (found suitable version "2.4.7", minimum required is "2.2.8") 
-- Found yaml-cpp: /usr/lib64/libyaml-cpp.so.0.7.0 (found suitable version "0.7.0", minimum required is "0.6.3") 
-- Found pystring: /usr/include (Required is at least version "1.1.3") 
-- Found Imath: /usr/lib64/libImath-3_1.so.29.3.0 (found suitable version "3.1.4", minimum required is "3.1.2") 
-- Found lcms2: /usr/include (found suitable version "2.12", minimum required is "2.2") 
-- Found OpenImageIO: /usr/include (found suitable version "2.3.12.0", minimum required is "2.1.9") 
-- OpenImageIO includes     = /usr/include
-- OpenImageIO libraries    = /usr/lib64/libOpenImageIO.so
-- OpenImageIO library_dirs = /usr/lib64
CMake Warning at share/cmake/modules/FindOpenImageIO.cmake:128 (message):
  Need C++14 or higher to compile with OpenImageIO 2.3.12.0.
Call Stack (most recent call first):
  CMakeLists.txt:269 (find_package)


CMake Warning at tests/CMakeLists.txt:35 (message):
  Could NOT find OpenImageIO.  Skipping build of the OSL unit tests


CMake Warning at src/apps/CMakeLists.txt:17 (message):
  Could NOT find OpenImageIO.  Skipping build for ociolutimage, ocioconvert,
  ociodisplay and ocioperf
Comment 2 peteru 2022-03-29 18:04:54 UTC
Calling CMake with -DCMAKE_CXX_STANDARD=17 should be sufficient to fix this.
Comment 3 Larry the Git Cow gentoo-dev 2024-03-18 16:35:27 UTC
The bug has been closed via the following commit(s):

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

commit cf3109448e102c0a415be195246637745d28074c
Author:     Paul Zander <negril.nx+gentoo@gmail.com>
AuthorDate: 2024-02-16 17:43:18 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-03-18 16:32:18 +0000

    media-libs/opencolorio: add 2.3.2
    
    Re-disable tests because upstream can't get around fixing this
    
    Bug: https://github.com/AcademySoftwareFoundation/OpenColorIO/issues/1784
    Bug: https://github.com/AcademySoftwareFoundation/OpenColorIO/issues/1361
    Closes: https://bugs.gentoo.org/912190
    Closes: https://bugs.gentoo.org/836378
    Closes: https://bugs.gentoo.org/835496
    Closes: https://bugs.gentoo.org/795459
    Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/35376
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/opencolorio/Manifest                 |   1 +
 media-libs/opencolorio/opencolorio-2.3.2.ebuild | 175 ++++++++++++++++++++++++
 2 files changed, 176 insertions(+)