Bug 2492928 - FTBFS Monado Due to Missing librs_lz4.a
Summary: FTBFS Monado Due to Missing librs_lz4.a
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: librealsense
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Sayan
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2492258
TreeView+ depends on / blocked
 
Reported: 2026-06-25 14:37 UTC by Jonathan Steffan
Modified: 2026-07-11 18:59 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2026-07-11 18:59:44 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jonathan Steffan 2026-06-25 14:37:58 UTC
The most recent changes in Rawhide are causing FTBFS in Monado due to:

CMake Error at /usr/lib64/cmake/realsense2/realsense2Targets.cmake:107 (message):
  The imported target "realsense2::rs_lz4" references the file

     "/usr/lib64/librs_lz4.a"

  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/realsense2/realsense2Targets.cmake"

  but not all the files it references.

Call Stack (most recent call first):
  /usr/lib64/cmake/realsense2/realsense2Config.cmake:47 (include)
  CMakeLists.txt:124 (find_package)


Reproducible: Always

Steps to Reproduce:
1. Try to use the realsense cmake
Actual Results:
Internal checks fail due to missing file.

Expected Results:
Builds work.

Additional Information:
I don't know if we need to patch the cmake or -static subpackage, or what here.

Comment 1 Sayan 2026-06-26 06:44:55 UTC
Fix has been pushed as as PR please test with the CI package build: https://koji.fedoraproject.org/koji/taskinfo?taskID=147044777

Comment 2 Jonathan Steffan 2026-06-26 15:01:29 UTC
Something is still not working:

-- #####----- Config -----#####
-- Configuring done (7.3s)
CMake Error at /usr/lib64/cmake/realsense2/realsense2Targets.cmake:80 (set_target_properties):
  The link interface of target "realsense2::rs_lz4" contains:

    PkgConfig::LZ4

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.

Call Stack (most recent call first):
  /usr/lib64/cmake/realsense2/realsense2Config.cmake:47 (include)
  CMakeLists.txt:124 (find_package)


-- Generating done (0.2s)

This occurs when trying to: BuildRequires:  pkgconfig(realsense2)

I confirmed that lz4-devel is in my failing build, so that's not the problem.

Comment 3 Sayan 2026-06-26 19:48:49 UTC
I updated the patch to now point to lz4 link libraries, I have tested by taking artifacts from https://koji.fedoraproject.org/koji/buildinfo?buildID=2993314 and it builds successfully.
updated rpm should be available at: https://koji.fedoraproject.org/koji/taskinfo?taskID=147065417

Comment 4 Jonathan Steffan 2026-06-27 16:56:04 UTC
This resolves the issue.

Comment 5 Jonathan Steffan 2026-07-11 18:59:44 UTC
I've issued a build based on the latest merge and Monado is building again. Thanks for getting this fixed!


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