Conversation
|
The tests fail on Jenkins, could you check those? |
|
Thanks. I managed to reproduce this locally, and have pushed a fix: 79c7aef I determined this by noting that the formula installed its Python modules into directories with the following names: |
|
For what it's worth: the 3 formulas in Homebrew core that depend on OpenCV could be adapted to OpenCV 4 by a simple patch, which was already available upstream in most cases. The breaking changes appear limited. The criteria for new versions formulas in Homebrew core are here https://docs.brew.sh/Versions. They include:
So: does the OpenCV project maintain the 2.x branch, and plans to make future releases? |
Formula/opencv@3.rb
Outdated
| url "https://github.com/opencv/opencv/archive/3.4.5.tar.gz" | ||
| sha256 "0c57d9dd6d30cbffe68a09b03f4bebe773ee44dc8ff5cd6eaeb7f4d5ef3b428e" | ||
|
|
||
| bottle do |
There was a problem hiding this comment.
No bottle block, please.
Removed in e1f9843
Yes, according to this: Branch 3.4 will be switched to maintanence mode: only bugfixes and light features will be accepted. BTW, release 3.4.4 is ready too! |
Agreed, but people also use Homebrew as a source of native libraries for non-Homebrew work, so bridging changes like this can be helpful. In my case, I'm using language bindings for OpenCV that are not yet compatible with OpenCV 4. With any luck, I'll get them updated, but it's still only a matter of weeks since the OpenCV 4 release. Obviously after a few months it would be best to drop these versioned formulae where possible: there may well be a case for dropping |
|
@purcell our “problem” is: it's hard to drop a versioned formula once it's introduced, since people rely on it. While it's easier to just tell people affected negatively by the version migration to just pin the version on their local system for now, until their other software becomes compatible. To give an example, last month |
|
Yep, understandably difficult to strike the right balance. You folks seem to do a wonderful job, though, so thanks! |
|
FWIW, there's at least one place where the 4.x release does not maintain feature parity with 3.x. Quoting from the changelog:
I'm not going to be able to migrate my code until they fix this, so I'd really appreciate having |
|
@BrewTestBot test this please |
|
That all sounds reasonable, let's go for it! |
|
Thanks @purcell for your contribution to Homebrew! |
Cheers @fxcoudert, your help and work on homebrew is appreciated. |
Closes Homebrew#35761. Signed-off-by: FX Coudert <fxcoudert@gmail.com>
OpenCV was recently bumped to 4.x in #35521, but a lot of non-Homebrew-packaged code does not yet compile against 4.x, which was only released just over a month ago.
Therefore, since there is an
opencv@2formula, it also seems prudent to provideopencv@3. This PR does that, based on the most recent version ofopencv.rbfor OpenCV 3.x.brew install --build-from-source <formula>, where<formula>is the name of the formula you're submitting?brew test <formula>, where<formula>is the name of the formula you're submitting?brew audit --strict <formula>(after doingbrew install <formula>)?