-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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/4.1.2 #4270
opencv/4.1.2 #4270
Conversation
This comment has been minimized.
This comment has been minimized.
I detected other pull requests that are modifying opencv/4.x recipe: This message is automatically generated by https://github.com/ericLemanissier/conan-center-conflicting-prs so don't hesitate to report issues/improvements there. |
Some configurations of 'opencv/4.1.2' failed in build 2 (
|
Cannot reproduce, everything builds fine locally 🤔 |
It can not find OpenEXR because the thirdparty folder is removed. Take a look on |
recipes/opencv/4.x/conanfile.py
Outdated
#https://github.com/opencv/opencv/issues/17984 | ||
self.requires("jasper/2.0.16") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should raise in build()
if this condition is not honored (overridden).
@uilianries @SSE4 @danimtb @jgsogo because version range is not allowed in CCI, maybe we could allow version range of each dependency in conandata.yml, and loop over them in build()
(or validate()
when implemented for deps versions) with an helper function, it would be easier and we could document compatible versions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this recipe needs to raise in the validate
method after the graph has been resolved. The requirement to jasper
can be overridden somewhere else (consumer).
I don't fully get the suggestion (that loop...). We should be able to open automatically PRs trying to upgrade dependencies (the objective would be to have a consistent graph, all packages use the same versions of the dependencies) and, of course, if this is done we need a place to write down versions that are incompatible so the bot doesn't open them over and over again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
build or validate? Its in build now, shall I move it?
Btw, when is validate executed? It is missing in the docs of conan create
https://docs.conan.io/en/latest/reference/commands/creator/create.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
validate
is a better place for it. Without building the package Conan knows that the binary with the resulting configuration cannot be built. Of course, Conan will raise if you try to build the package, but conan info
will show valuable information too:
conan info ...
...
ID: INVALID
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought that deps versions were not yet available at validate()
time (only final deps options values for the moment)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved to validate 🤷
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bad idea, that does not even work, seems that deps_cpp_info
is not available/filled in validate
:
ERROR: opencv/4.1.2: Error in validate() method, line 275
if tools.Version(self.version) < "4.5.0" and self.deps_cpp_info["jasper"].version > "2.0.16":
KeyError: 'jasper'
--> reverted
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should go to build()
for the moment.
Some configurations of 'opencv/4.1.2' failed in build 3 (
|
This reverts commit 60b8a73.
Failure in build 4 (
|
Some configurations of 'opencv/4.1.2' failed in build 5 (
|
Some configurations of 'opencv/4.1.2' failed in build 6 (
|
This whole openexr thing wont work :-/ |
Just remove all the logic in this module file and inject conan variables related to OpenEXR to variables defined in this module file and used later in OpenCV build files. |
All green in build 7 (
|
wtf happened? |
(Maybe this was not the question, but...) You patched openexr (1cb29a8) and it worked... messages are associated to a commit, the success belongs to the commit about "patch openexr" while the failure belongs to the commit "patch it" (2d9db83). When a new commit arrives we try to stop running builds, but sometimes the message from those previous jobs is posted to GitHub too. @SSE4 is having a look to GitHub API to hide old messages, it can be a bit tricky for these concurrent jobs. |
yea that makes sense @jgsogo , building 366 packages of OpenCV might take a day or two on 4 cores 😅 |
All green in build 8 (
|
Specify library name and version: opencv/4.1.2
needed for CUDA 10.0 nvcc compatibility.
Due to this bug I had to add a version check for the jasper requires.
conan-center hook activated.