← Back to Pull requests

Add lcm #35308

Closed
unknown closed this pull request without merging on Oct 22, 2026 09:43 UTC
View on GitHub
unknown unknown commented on Oct 22, 2026 01:50 UTC
Author

Checklist

  • Title of this PR is meaningful: e.g. "Adding my_nifty_package", not "updated recipe".

  • Recipe uses the v1 recipe.yaml format, or this PR explains the exceptional requirement for deprecated v0.

  • License file is packaged (see the v1 example recipe for an example).

  • Source is from official source.

  • Package does not vendor other packages. (If a package uses the source of another package, they should be separate packages or the licenses of all packages need to be packaged).

  • If static libraries are linked in, the license of the static library is packaged.

  • Package does not ship static libraries. If static libraries are needed, follow CFEP-18.

  • Build number is 0.

  • A tarball (url) rather than a repo (e.g. git_url) is used in your recipe (see here for more details).

  • GitHub users listed in the maintainer section have posted a comment confirming they are willing to be listed there.

  • When in trouble, please check our knowledge base documentation before pinging a team.
  • Summary

    Adds LCM (Lightweight Communications and Marshalling) v1.5.3, a plain CMake project. It is requested for RoboStack: a user on linux-aarch64 needs lcm for unitree_ros_to_real and the package isn't on conda-forge yet (https://github.com/RoboStack/robostack.github.io/issues/119).

    Outputs:

  • liblcm: the shared C/C++ library, headers, the CMake config (lcmConfig.cmake, lcmUtilities.cmake with lcm_wrap_types/lcm_add_library), lcm.pc, and the lcm-gen, lcm-logger and lcm-logplayer tools. It has run_exports of pin_subpackage('liblcm', upper_bound='x.x'). The SOVERSION is the ABI version, which is 1.

  • lcm: the Python bindings (the name matches PyPI). It is built per Python version and depends on the exact liblcm so the tools are available.
  • Notes:

  • Patch 0001 stops the static liblcm.a from being installed or exported. It also makes lcm_add_library(... C ...) in lcmUtilities.cmake fall back to the shared lcm target when lcm-static is not available. The in-tree tools and the Python extension still link the static archive privately, as upstream does.

  • Patch 0002 uses fsync() instead of fdatasync() on macOS, because the macOS SDK does not declare fdatasync.

  • glib (the development package; libglib doesn't ship glibconfig.h) is in host. libglib arrives through run_exports.

  • Java, Lua, Go, docs, examples and tests are disabled.

  • On Windows the tools link upstream's bundled BSD-3-Clause getopt (WinSpecific/getopt), so its license text is packaged and the license is LGPL-2.1-or-later AND BSD-3-Clause.

  • The Python bindings are installed with CMake rather than pip because the upstream scikit-build wheel bundles the whole C install plus entry points that would clash with liblcm. That means there is no .dist-info, and pip_check is disabled.
  • Tests

  • liblcm: package_contents checks the headers, library, tools, CMake config files and lcm.pc, and checks that no static library is shipped. The tests run lcm-gen --version/--help and pkg-config --cflags --libs lcm. They also build a small CMake project that uses find_package(lcm) and lcm_wrap_types/lcm_add_library to generate C and C++ bindings for a message. The C and C++ programs do a publish/subscribe round trip over memq://.

  • lcm: imports lcm, generates Python bindings with lcm-gen --python, and does a publish/subscribe round trip over memq://.
  • Tested locally with rattler-build (conda-forge pinning + staged-recipes .ci_support configs)

  • osx-arm64: both outputs build and all tests pass (liblcm and lcm for py3.11–3.14).

  • linux-aarch64 (native, Ubuntu VM): both outputs build and all tests pass (liblcm and lcm for py3.11–3.14).

  • linux-64, osx-64 and win-64 are untested locally, so this PR's CI covers them first.
  • Follow-ups (not in this PR): Java (lcm-java, lcm-spy) and Lua bindings.

    🤖 Claude (AI assistant), on behalf of @Tobias-Fischer
    🤖 Generated with Claude Code

    Diff: 549 lines (+411 / -138) across 6 files Reviewer: traversaro Review duration: 472m
    All Vouch review confidence checks passed
    Residual risk 0.21 = Change Risk (0.48) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.48 · 549 lines diff across 6 files
    0.48
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    56%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.378
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #35308"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 48.1% (MEDIUM) · Higher = larger blast radius
    48.1%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 56.8% · Lower = rushed or shallow review
    56.8%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 20.8% · Safe to merge
    20.8%