Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 914716 - media-libs/opencolorio-2.2.1: configuration fails - get_target_property() called with non-existent target "yaml-cpp"
Summary: media-libs/opencolorio-2.2.1: configuration fails - get_target_property() cal...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Paul Zander
URL: https://github.com/AcademySoftwareFou...
Whiteboard:
Keywords: PATCH, PullRequest
Depends on:
Blocks:
 
Reported: 2023-09-25 18:58 UTC by Toralf Förster
Modified: 2023-09-27 06:38 UTC (History)
6 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.68 KB, text/plain)
2023-09-25 18:58 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,108.29 KB, text/plain)
2023-09-25 18:58 UTC, Toralf Förster
Details
environment (environment,130.39 KB, text/plain)
2023-09-25 18:59 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.05 KB, application/x-xz)
2023-09-25 18:59 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,15.91 KB, application/x-xz)
2023-09-25 18:59 UTC, Toralf Förster
Details
media-libs:opencolorio-2.2.1:20230925-183729.log (media-libs:opencolorio-2.2.1:20230925-183729.log,4.90 KB, text/plain)
2023-09-25 18:59 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,29.74 KB, application/x-xz)
2023-09-25 18:59 UTC, Toralf Förster
Details
Patch to fix compilation of 2.3.0 against yaml-cpp-0.8 (yaml-cpp-0.8.patch,732 bytes, patch)
2023-09-26 15:50 UTC, Bernd Feige
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2023-09-25 18:58:57 UTC
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
  share/cmake/modules/Findyaml-cpp.cmake:122 (find_package_handle_standard_args)
  share/cmake/modules/FindExtPackages.cmake:44 (find_package)
  CMakeLists.txt:270 (include)


-- Configuring incomplete, errors occurred!
 * ERROR: media-libs/opencolorio-2.2.1::gentoo failed (configure phase):
 *   cmake failed

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_desktop_systemd-20230924-064505

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 17.0.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/17/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/17
17.0.1
Python 3.11.5
Available Ruby profiles:
  [1]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.72.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
2)	Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17  system-vm

php cli (if any):
go version go1.21.1 linux/amd64

  HEAD of ::gentoo
commit 819cc6180da48fb8d21b403a9f08a8bd25756409
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Sep 25 17:46:55 2023 +0000

    2023-09-25 17:46:54 UTC

emerge -qpvO media-libs/opencolorio
[ebuild   R   ] media-libs/opencolorio-2.2.1  USE="opengl -apps (-doc) -python -static-libs -test" CPU_FLAGS_X86="sse2" PYTHON_SINGLE_TARGET="python3_11 -python3_10"
Comment 1 Toralf Förster gentoo-dev 2023-09-25 18:58:58 UTC
Created attachment 871443 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-09-25 18:58:59 UTC
Created attachment 871444 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2023-09-25 18:59:00 UTC
Created attachment 871445 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-09-25 18:59:01 UTC
Created attachment 871446 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2023-09-25 18:59:02 UTC
Created attachment 871447 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-09-25 18:59:03 UTC
Created attachment 871448 [details]
media-libs:opencolorio-2.2.1:20230925-183729.log
Comment 7 Toralf Förster gentoo-dev 2023-09-25 18:59:04 UTC
Created attachment 871449 [details]
temp.tar.xz
Comment 8 Miroslav Šulc gentoo-dev 2023-09-25 19:38:47 UTC
this happens after update to yaml-cpp-0.8.0
Comment 9 Alexey 2023-09-25 20:42:00 UTC
The target is now called yaml-cpp::yaml-cpp

I see an upstream commit which apparently fixes this: https://github.com/AcademySoftwareFoundation/OpenColorIO/commit/8854e13604d207c141fce65ff6e6c2685fba1b91
Comment 10 Luke A. Guest 2023-09-26 09:32:46 UTC
The first patch doesn't seem to match anything in the 2.2.1 release. I couldn't work out where to put it.
Comment 11 Bernd Feige 2023-09-26 15:49:43 UTC
(In reply to Luke A. Guest from comment #10)
> The first patch doesn't seem to match anything in the 2.2.1 release. I
> couldn't work out where to put it.

That patch applies to a later version of opencolorio than 2.2.1 - in 2.3.0 it is already included. However, pulling 2.3.0, I get exactly this error, suggesting that there is still something missing with that patch:

https://github.com/AcademySoftwareFoundation/OpenColorIO/issues/1858

If I add the attached patch on top of 2.3.0 it works.
Comment 12 Bernd Feige 2023-09-26 15:50:53 UTC
Created attachment 871483 [details, diff]
Patch to fix compilation of 2.3.0 against yaml-cpp-0.8
Comment 13 Larry the Git Cow gentoo-dev 2023-09-26 20:47:59 UTC
The bug has been closed via the following commit(s):

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

commit f6301c1fc5eac9e41164de7fd5c4db0c581979ad
Author:     Paul Zander <negril.nx+gentoo@gmail.com>
AuthorDate: 2023-09-26 17:24:38 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-09-26 20:45:40 +0000

    media-libs/opencolorio: add 2.3.0
    
    Closes: https://bugs.gentoo.org/914716
    Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/opencolorio/Manifest                    |   1 +
 .../opencolorio-2.3.0-support-yaml-cpp-0.8.0.patch |  21 ++++
 media-libs/opencolorio/opencolorio-2.3.0.ebuild    | 131 +++++++++++++++++++++
 3 files changed, 153 insertions(+)

Additionally, it has been referenced in the following commit(s):

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

commit 66d131cee54e702b3791ff50974277eab589628b
Author:     Paul Zander <negril.nx+gentoo@gmail.com>
AuthorDate: 2023-09-26 17:23:23 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-09-26 20:45:38 +0000

    media-libs/opencolorio: 2.1.3, 2.2.1 require <dev-cpp/yaml-cpp-0.8.0
    
    yaml-cpp-0.8.0 uses cmake targets, this breaks <ocio-2.3.0
    
    Bug: https://bugs.gentoo.org/914716
    Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/opencolorio/opencolorio-2.1.3.ebuild | 2 +-
 media-libs/opencolorio/opencolorio-2.2.1.ebuild | 9 +++++----
 2 files changed, 6 insertions(+), 5 deletions(-)