Skip to content

opencv{2,3}: drop#336141

Merged
SuperSandro2000 merged 5 commits intoNixOS:masterfrom
emilazy:push-uztymzmukyyk
Aug 22, 2024
Merged

opencv{2,3}: drop#336141
SuperSandro2000 merged 5 commits intoNixOS:masterfrom
emilazy:push-uztymzmukyyk

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 This PR adds or changes release notes labels Aug 20, 2024
@mweinelt
Copy link
Member

@ofborg eval

@ofborg ofborg bot added the 8.has: clean-up This PR removes packages or removes other cruft label Aug 20, 2024
@ofborg ofborg bot requested review from ovlach, pinpox and zhaofengli 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 This PR causes between 1 and 10 packages to rebuild on Linux. 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
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 This PR adds or changes release notes 8.has: clean-up This PR removes packages or removes other cruft 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 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

Development

Successfully merging this pull request may close these issues.

3 participants