Bug 2422067 - Broken OSLTargets.cmake from openshadinglanguage-devel
Summary: Broken OSLTargets.cmake from openshadinglanguage-devel
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: openshadinglanguage
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Luya Tshimbalanga
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2262694
TreeView+ depends on / blocked
 
Reported: 2025-12-14 17:18 UTC by Jonathan Steffan
Modified: 2025-12-15 02:53 UTC (History)
4 users (show)

Fixed In Version: openshadinglanguage-1.14.8.0-4.fc44
Clone Of:
Environment:
Last Closed: 2025-12-15 02:53:24 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.