Bug 2422067

Summary: Broken OSLTargets.cmake from openshadinglanguage-devel
Product: [Fedora] Fedora Reporter: Jonathan Steffan <jonathansteffan>
Component: openshadinglanguageAssignee: Luya Tshimbalanga <luya_tfz>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: aekoroglu, code, luya_tfz, negativo17
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: openshadinglanguage-1.14.8.0-4.fc44 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-12-15 02:53:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2262694    

Description Jonathan Steffan 2025-12-14 17:18:40 UTC
When trying to use /usr/lib64/cmake/OSL/OSLTargets.cmake this results in an error due to a misalignment of filesystem and cmake expectations:

-- Setting namespace to 'MaterialX_v1_39_4'
CMake Error at /usr/lib64/cmake/OSL/OSLTargets.cmake:140 (message):
  The imported target "OSL::osl.imageio" references the file

     "/usr/lib64/osl.imageio.so"

  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

     "/usr/lib64/cmake/OSL/OSLTargets.cmake"

  but not all the files it references.

Call Stack (most recent call first):
  /usr/lib64/cmake/OSL/OSLConfig.cmake:61 (include)
  CMakeLists.txt:219 (find_package)


Reproducible: Always

Steps to Reproduce:
1. Try to use the OSLTargets.cmake
Actual Results:
osl.imageio.so is unable to be found.

Expected Results:
We look at the correct location: /usr/lib64/OpenImageIO-3.1/osl.imageio.so

Additional Information:
This was found when trying to enable tests for MaterialX.

Comment 1 Luya Tshimbalanga 2025-12-14 18:16:24 UTC
The root cause of the issue:
``
# Move the OpenImageIO plugin into its default search path
mkdir %{buildroot}%{_libdir}/OpenImageIO-%{oiio_major_minor_ver}
mv %{buildroot}%{_libdir}/osl.imageio.so %{buildroot}%{_libdir}/OpenImageIO-%{oiio_major_minor_ver}/
``

Perhaps keeping "%{_libdir}/osl.imageio.so" as OpenImageIO-plugin-osl subpackage and set symlink for "%{_libdir}/OpenImageIO-%{oiio_major_minor_ver}/" do the trick.

Comment 2 Fedora Update System 2025-12-15 02:49:49 UTC
FEDORA-2025-f27344a501 (openshadinglanguage-1.14.8.0-4.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-f27344a501

Comment 3 Fedora Update System 2025-12-15 02:53:24 UTC
FEDORA-2025-f27344a501 (openshadinglanguage-1.14.8.0-4.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.