Skip to content

Link urcl to rt on non-Apple Unix - #540

Merged
urfeex merged 1 commit into
UniversalRobots:masterfrom
Tobias-Fischer:codex/robostack-rolling-urcl-link-rt-linux
Jul 24, 2026
Merged

Link urcl to rt on non-Apple Unix#540
urfeex merged 1 commit into
UniversalRobots:masterfrom
Tobias-Fischer:codex/robostack-rolling-urcl-link-rt-linux

Conversation

@Tobias-Fischer

@Tobias-Fischer Tobias-Fischer commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

This PR is part of an effort to contribute RoboStack downstream patches back upstream.

Origin: RoboStack patch/ros-rolling-ur-client-library.osx.patch, authored by Daisuke Nishimatsu.

Best-guess rationale: Linux builds may need librt for realtime-related symbols, while macOS does not provide a separate rt library; gating the link on non-Apple Unix keeps both platforms working.


Note

Low Risk
Single conditional CMake link line for platform-specific library resolution; no runtime logic or security-sensitive changes.

Overview
Links urcl against librt on Linux and other non-Apple Unix targets so builds resolve realtime-related symbols (e.g. from clock_gettime in queue synchronization code) that may live in librt on some Linux setups.

The link is gated with UNIX AND NOT APPLE so macOS builds are unchanged, since macOS does not ship a separate rt library.

Reviewed by Cursor Bugbot for commit 09c4113. Bugbot is set up for automated code reviews on this repo. Configure here.

This upstreams RoboStack downstream patch `patch/ros-rolling-ur-client-library.osx.patch`.

Best-guess rationale: Linux builds may need librt for realtime-related symbols, while macOS does not provide a separate rt library; gating the link on non-Apple Unix keeps both platforms working.

Signed-off-by: Tobias Fischer <info@tobiasfischer.info>
@Tobias-Fischer

Copy link
Copy Markdown
Contributor Author

FYI @wep21 and @traversaro, this upstream PR comes from the RoboStack patch upstreaming tracker: RoboStack/robostack.github.io#16.

Origin patch: RoboStack patch/ros-rolling-ur-client-library.osx.patch, authored by Daisuke Nishimatsu.

@codecov

codecov Bot commented Jul 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.68%. Comparing base (8e11395) to head (09c4113).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #540      +/-   ##
==========================================
- Coverage   78.95%   78.68%   -0.28%     
==========================================
  Files         114      114              
  Lines        6501     6501              
  Branches     3000     3000              
==========================================
- Hits         5133     5115      -18     
- Misses        993     1013      +20     
+ Partials      375      373       -2     
Flag Coverage Δ
check_version_ur10-3.15.8 10.51% <ø> (-1.98%) ⬇️
check_version_ur10e-10.11.0 11.17% <ø> (ø)
check_version_ur10e-5.15.2 11.12% <ø> (-0.41%) ⬇️
check_version_ur12e-10.12.1 11.12% <ø> (-0.10%) ⬇️
check_version_ur12e-5.25.1 11.31% <ø> (-0.22%) ⬇️
check_version_ur15-10.12.1 11.12% <ø> (-0.10%) ⬇️
check_version_ur15-5.25.1 11.35% <ø> (+0.18%) ⬆️
check_version_ur16e-10.12.1 11.12% <ø> (-0.05%) ⬇️
check_version_ur16e-5.25.1 11.12% <ø> (-0.24%) ⬇️
check_version_ur18-10.12.1 11.12% <ø> (ø)
check_version_ur18-5.25.1 11.12% <ø> (ø)
check_version_ur20-10.12.1 11.12% <ø> (-0.05%) ⬇️
check_version_ur20-5.25.1 11.12% <ø> (ø)
check_version_ur3-3.14.3 12.57% <ø> (+0.56%) ⬆️
check_version_ur30-10.12.1 11.12% <ø> (-0.05%) ⬇️
check_version_ur30-5.25.1 11.35% <ø> (+0.04%) ⬆️
check_version_ur3e-10.11.0 11.12% <ø> (-0.10%) ⬇️
check_version_ur3e-5.9.4 11.17% <ø> (-0.36%) ⬇️
check_version_ur5-3.15.8 11.53% <ø> (-0.04%) ⬇️
check_version_ur5e-10.11.0 11.12% <ø> (-0.05%) ⬇️
check_version_ur5e-5.12.8 11.12% <ø> (-0.24%) ⬇️
check_version_ur7e-10.11.0 11.12% <ø> (-0.05%) ⬇️
check_version_ur7e-5.22.2 11.12% <ø> (-0.19%) ⬇️
check_version_ur8long-10.12.1 11.12% <ø> (-0.05%) ⬇️
check_version_ur8long-5.25.1 11.12% <ø> (-0.05%) ⬇️
python_scripts 75.90% <ø> (ø)
ur5-3.14.3 74.60% <ø> (-0.27%) ⬇️
ur5e-10.11.0 69.33% <ø> (+0.03%) ⬆️
ur5e-10.12.0 70.33% <ø> (-0.13%) ⬇️
ur5e-10.7.0 68.60% <ø> (-0.21%) ⬇️
ur5e-5.9.4 75.19% <ø> (ø)
ur7e-10.13.0 70.33% <ø> (-0.08%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@urfeex urfeex left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thank you for providing this. From what I can see, this is only needed on systems that ship glibc < 2.17 which should be quite rare, but it also shouldn't hurt on newer systems.

@mergify

mergify Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@urfeex
urfeex merged commit c5d1e26 into UniversalRobots:master Jul 24, 2026
54 of 64 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants