-
Notifications
You must be signed in to change notification settings - Fork 2k
Add metis/5.1.1 #8980
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
Add metis/5.1.1 #8980
Conversation
@SpaceIm Is it crucial to rewrite this without new tools? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I think it's premature for CCI. |
IMHO, the only issue would be some future Conan v1.x release breaking the syntax of these new tools/helpers. For these tools I wouldn't expect breaking changes (It is not a problem if, for some reason, they change the implementation (some new flag), following PRs will keep working, no unexpected errors or hard to fix ones). At some point in time, we need to start using them... maybe the time has come? Of course, I wouldn't force the migration yet, but if the PR is already contributed using Conan v2 compatible features... for me it's ok, I don't see a blocker. Edit.- For really common libraries I would try to delay these changes a little bit more, so those recipes keep working with a wider range of Conan versions (not just |
The problem is that there are still issues in these new tools, they are not yet as robust as old ones for some key behaviors. Moreover, the rule was CMake >= 3.1 support in CI for the moment, now it requires 3.15 for sure with CMakeToolchain (even with the policy CMP0091 set to NEW, anybody trying to build with CMake <= 3.15 would have its msvc runtime not honored since CMakeToolchain doesn't try to replace MT/MD stuff in CMAKE_CXX_FLAGS and CMAKE_C_FLAGS, it was a feature of I'm also wondering how robust new CMake helper is with compiler=Visual Studio, since it's the main target on Windows in CCI. |
This comment has been minimized.
This comment has been minimized.
At some point in time, we need to start using these new tools and helpers for compatibility with v2, and Conan 1.44 is the version when we think we should try to start promoting this migration (now we are using 1.43.3 in CCI). It doesn't mean that we need to modify all recipes, not yet, but we should start to accept PRs with this new integration soon. How can we proceed? We cannot add IMHO it's more the pain for Linux/Mac users if they are forced to use I agree that we should try to do our best, and we should try to warn those users about this issue, but we cannot block the rest of consumers from using something that works just because one configuration fails unless you use a bleeding edge version (and you try to build from sources). @Nekto89 , thanks for backporting the recipe, sure it is the best way to go. |
This comment has been minimized.
This comment has been minimized.
@jgsogo that's fair. Is there any other known issue in CMakeToolchain compared to cmake generator? The other one I see is that CMakeToolchain forces We can indeed patch upstream CMakelists and add a TODO to remove it if conan min version is bumped to at least the version fixing vc runtime issue. |
small change will be needed after #8994 |
@SpaceIm , we trust the team that is more focused on the Conan client development and try to help them to move forward as well. AFAIK, there is nothing blocking and there is some pressure towards using these new generators (and dedicate more and more resources in v2). Anyway, if a recipe uses Of course, the more |
This comment has been minimized.
This comment has been minimized.
All green in build 8 (
|
--- /dev/null | ||
+++ b/include/metis.h.in |
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.
This patch is really big 😱 I understand what it's doing but it hard to say if it's correct
Have you considered opening a PR upstream to contribute back? that can help us verify the work + not have to repeate this in the future 🤞
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 has been taken from closed PR
https://github.com/KarypisLab/METIS/pull/15/files
Does conan support rename in patches? With rename it will be smaller
Specify library name and version: metis/5.1.1
Closes #1152
conan-center hook activated.