Skip to content

Bump OpenCvSharp5 to 5.0.0.20260721, drop WebApi's libdrm2 workaround - #71

Merged
shimat merged 1 commit into
mainfrom
samples/opencvsharp5-20260721
Jul 21, 2026
Merged

Bump OpenCvSharp5 to 5.0.0.20260721, drop WebApi's libdrm2 workaround#71
shimat merged 1 commit into
mainfrom
samples/opencvsharp5-20260721

Conversation

@shimat

@shimat shimat commented Jul 21, 2026

Copy link
Copy Markdown
Owner

Summary

Test plan

  • dotnet build on the whole solution succeeds with 0 errors
  • Ran ldd / readelf -d / strings on the 5.0.0.20260721 OpenCvSharp5.official.runtime.linux-x64.headless native library against a plain mcr.microsoft.com/dotnet/aspnet:10.0 base image (no apt-get install) — confirmed no reference to libdrm.so.2 (NEEDED entries or dlopen strings)
  • Built the updated Dockerfile and ran the container with no apt-get step at all; /api/cartoonify (imgcodecs/imgproc) and /api/frame-analysis (VideoCapture/videoio) both returned 200 with correct output

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Bug Fixes
    • Updated OpenCvSharp components to the latest package revision across supported applications and samples.
    • Improved Linux headless runtime compatibility by removing an unnecessary graphics library installation workaround.

The new release fixes issue #2071: the linux-x64.headless native library
no longer references libdrm.so.2 at all (confirmed via ldd/readelf against
mcr.microsoft.com/dotnet/aspnet:10.0), so Samples.WebApi's Dockerfile no
longer needs any apt-get install step.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jul 21, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 0047eecb-0702-43b5-8f46-7f7316195a2a

📥 Commits

Reviewing files that changed from the base of the PR and between b3632c3 and efea22f.

📒 Files selected for processing (7)
  • AvaloniaViewer/AvaloniaViewer.csproj
  • Samples.WebApi/Dockerfile
  • Samples.WebApi/Samples.WebApi.csproj
  • Samples.Windows/Samples.Windows.csproj
  • Samples/Samples.csproj
  • VideoCaptureForm/VideoCaptureForm.csproj
  • VideoCaptureWPF/VideoCaptureWPF.csproj

📝 Walkthrough

Walkthrough

OpenCvSharp package references are bumped to 5.0.0.20260721 across the sample projects. The Web API Dockerfile removes the libdrm2 installation workaround because the updated headless runtime no longer references libdrm.so.2.

Changes

OpenCvSharp runtime update

Layer / File(s) Summary
Package reference version updates
AvaloniaViewer/AvaloniaViewer.csproj, Samples.WebApi/Samples.WebApi.csproj, Samples.Windows/Samples.Windows.csproj, Samples/Samples.csproj, VideoCaptureForm/VideoCaptureForm.csproj, VideoCaptureWPF/VideoCaptureWPF.csproj
OpenCvSharp packages and runtime/extension variants are updated from 5.0.0.20260719 to 5.0.0.20260721.
Web API container dependency cleanup
Samples.WebApi/Dockerfile
Removes the libdrm2 installation step and updates the accompanying runtime dependency comment.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Possibly related issues

  • shimat/opencvsharp_samples Issue 62 — Covers the dependency updates and Dockerfile adjustment implemented here.

Possibly related PRs

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the package bump and the Dockerfile workaround removal.
Linked Issues check ✅ Passed The version bump and Dockerfile cleanup align with #2071 and indicate the headless package no longer needs libdrm2.
Out of Scope Changes check ✅ Passed The changes are limited to OpenCvSharp5 package bumps and the related WebApi Dockerfile workaround removal.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch samples/opencvsharp5-20260721

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@shimat shimat self-assigned this Jul 21, 2026
@shimat
shimat merged commit 7461113 into main Jul 21, 2026
3 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.

headless linux-x64 package still depends on libdrm.so.2 despite vaapi/vdpau/v4l2-m2m being disabled

1 participant