← Back to Pull requests

[v10] Split the ogre 1.x render engine into an optional gz-rendering-ogre package #52

Closed
unknown closed this pull request without merging on Nov 08, 2026 10:42 UTC
View on GitHub
unknown unknown commented on Nov 06, 2026 16:18 UTC
Author

Checklist
[x] Used a personal fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[x] [Re-rendered]( https://conda-forge.org/docs/maintainer/updating_pkgs.html#rerendering-feedstocks ) with the latest conda-smithy
[x] Ensured the license file is being packaged.

Closes #47

Summary

Moves the ogre 1.x render engine into new, optional packages, so gz-rendering / libgz-rendering (and therefore gz-sim) no longer pull in ogre 1.10. by default. The default engine, ogre2 (ogre-next), stays in libgz-rendering.

Why (from #47):
ogre 1.10 is large (~100 MB) and is not needed by most users, since ogre2 has been the default engine for a long time.
It conflicts with rviz2, which uses its own Ogre 1.12 (https://github.com/RoboStack/ros-jazzy/issues/57). This would become a hard solver conflict if rviz2 starts depending on a system/conda ogre instead of its vendored copy (https://github.com/ros2/rviz/pull/1683).

Packages

| Package | Contents | Depends on ogre 1.10 |
|---|---|---|
| libgz-rendering | core library + ogre2 engine | no (was yes) |
| gz-rendering | metapackage for libgz-rendering | no (was yes) |
| libgz-rendering-ogre (new) | ogre 1.x engine plugin, headers, CMake config, .pc file, media | yes |
| gz-rendering-ogre (new) | metapackage for libgz-rendering-ogre | yes |

User-facing change: anyone using the ogre (1.x) engine needs to install gz-rendering-ogre.

Implementation

gz-rendering is built once in a staging output. The package outputs select their files from it with files: include/exclude lists, so no upstream CMake changes are needed to build the ogre backend separately.
Added conda-ogre-hint.patch: when the ogre engine is requested but its plugin is not installed, gz-rendering now also prints In conda-forge, the ogre (Ogre 1.x) render engine is packaged separately. Install it with the gz-rendering-ogre package. after the existing couldn't find shared library error.
libgz-rendering-ogre and gz-rendering-ogre have run_exports (libgz-rendering-ogre >=10.1.0,<11.0a0), like libgz-rendering and gz-rendering, since the package ships a linkable library, headers and a CMake target.
The activate scripts keep their previous name (libgz-rendering_[de]activate.) instead of being named after the staging output.
Tests: libgz-rendering now checks that the ogre 1.x plugin is not present. The ogre plugin checks moved to the new outputs.

Testing

CI passes on all platforms (linux-64, linux-aarch64, linux-ppc64le, osx-64, osx-arm64, win-64).

Locally, with rattler-build 0.80.0:
linux-aarch64 (conda-forge linux-anvil-aarch64:alma10 image, with the yum requirements CI installs): all 4 outputs build, 135/135 upstream tests pass, and all recipe tests pass.
osx-arm64: all 4 outputs build and pass their recipe tests. For this local build only, I disabled the upstream tests: minizip 4.2.2 from conda-forge ships its own include/gtest headers, which break the vendored googletest build on my machine. This is unrelated to this PR; the issue doesn't occur on Linux or in CI.
On both platforms, libgz-rendering depends on ogre-next but not on ogre. On osx-arm64 I also checked that none of its libraries link to Ogre 1.x.
Runtime check (osx-arm64) with a small program that calls gz::rendering::engine("ogre"):
with only gz-rendering installed: no ogre in the environment, and the load fails cleanly with the new hint;
with gz-rendering-ogre installed: ogre 1.10 is installed and the plugin is found and loaded.
find_package(gz-rendering) still works without the ogre component installed.
run_exports: a throwaway downstream recipe with gz-rendering-ogre in host gets libgz-rendering-ogre >=10.1.0,<11.0a0 as a runtime dependency.

Downstream

gz-sim users also need conda-forge/gz-sensors-feedstock#93. gz-sensors lists ogre 1.10. in host, and ogre's run_exports make libgz-sensors depend on ogre 1.10 at runtime. Since libgz-sim depends on libgz-sensors, gz-sim environments would still get ogre 1.10 with this PR alone. A dry-run solve of gz-sim=10.6.0 against local builds (osx-arm64) installs ogre 1.10 today and with this PR alone, but not with both PRs.
gz-sensors only uses the ogre 1.x backend in optional tests/examples (if (TARGET gz-rendering::ogre)), so dropping the dependency doesn't change its build or tests (checked locally on linux-aarch64 and osx-arm64; details in #93).

  • None of the other published Gazebo packages I checked (libgz-sim, gz-sim, libgz-gui, libgz-launch, libgz-physics, libgz-common, libsdformat, libgz-transport, libgz-fuel-tools, gz-tools) depend on ogre directly.
  • ---
    This PR description was AI-generated with Claude Opus 5.5 (claude-opus-5-5) and reviewed by the author.

    🤖 Generated with Claude Code

    Diff: 629 lines (+471 / -158) across 7 files Reviewer: mini-1235 Review duration: 2543m
    All Vouch review confidence checks passed
    Residual risk 0.20 = Change Risk (0.50) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.50 · 629 lines diff across 7 files
    0.50
    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%
    60%
    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.386
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #52"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% 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: 50.3% (MEDIUM) · Higher = larger blast radius
    50.3%
    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: 60.5% · Lower = rushed or shallow review
    60.5%
    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: 19.9% · Safe to merge
    19.9%