Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opencv{2,3}: drop #336141

Merged
merged 5 commits into from
Aug 22, 2024
Merged

opencv{2,3}: drop #336141

merged 5 commits into from
Aug 22, 2024

Conversation

emilazy
Copy link
Member

@emilazy emilazy commented Aug 20, 2024

Description of changes

The final non‐trivial stretch of the FFmpeg 4 mostly‐removal. It would be sufficient to simply disable FFmpeg support for these versions, but as they are obsolete and were almost unused in‐tree, let’s extend the old versions clean‐up task to OpenCV as well.

opencv3 was unreferenced except as part of the already‐broken haskellPackages.opencv{,-extra} packages. Those will hopefully be fixed by LumiGuide/haskell-opencv#157 in the future. I confirmed with the Haskell maintainers that the dangling reference inside the automatically‐generated haskellPackages.opencv definition is desired and that this PR does not break eval; see #336110 for the corresponding clean‐up PR to haskell-updates.

opencv2 was referenced by two packages that build fine with the latest version, long‐obsolete (and already broken‐by‐default) versions of Mathematica, and a cute but sadly bitrotten terminal video chat program. See the commit messages for further details and rationales.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

This builds fine with OpenCV 4.
This builds fine with OpenCV 4 using `enableUnfree`.
These versions have been obsolete for 5 to 10 years, and have been
broken since 34cd490 unless the user
specifies manual overrides. Given that nobody seems to have reported
an issue with them, I conclude that demand for them is minimal and
that there’s no need for them to block the removal of OpenCV 2.
Essentially unmaintained upstream for almost a decade, kept alive
with treewides and drive‐by fixes, and depends on the deprecated
and removed OpenCV C API. Sorry, it looks like a fun toy! Hopefully
someone can port it to a newer OpenCV.
@github-actions github-actions bot added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: documentation This PR adds or changes documentation 8.has: changelog labels Aug 20, 2024
@mweinelt
Copy link
Member

@ofborg eval

@ofborg ofborg bot requested review from ovlach, zhaofengli and pinpox August 20, 2024 20:21
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10 labels Aug 20, 2024
@emilazy emilazy requested a review from basvandijk August 20, 2024 21:05
@emilazy emilazy mentioned this pull request Aug 21, 2024
13 tasks
@SuperSandro2000 SuperSandro2000 merged commit 11b26f0 into NixOS:master Aug 22, 2024
28 of 30 checks passed
@emilazy emilazy deleted the push-uztymzmukyyk branch August 26, 2024 00:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: changelog 8.has: clean-up 8.has: documentation This PR adds or changes documentation 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10
Projects
Development

Successfully merging this pull request may close these issues.

3 participants