-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
libgit2: add version 1.7.2, support conan v2 #18458
Conversation
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 detected other pull requests that are modifying libgit2/all recipe: This message is automatically generated by https://github.com/ericLemanissier/conan-center-conflicting-prs so don't hesitate to report issues/improvements there. |
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.
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.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@uilianries |
@toge Sorry the incident, I guess it failed during the tapaholes. I just pushed to be built it again. Thank you for reporting! |
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.
Some minor tweaks are required. I would drop 0.27
as well. Maybe 0.28
also, but it's the latest v0.x version on CCI so it's still marginally useful in that regard, possibly.
recipes/libgit2/0.27.x/conanfile.py
Outdated
import os | ||
|
||
required_conan_version = ">=1.45.0" | ||
|
||
required_conan_version = ">=1.53.0" | ||
|
||
|
||
class LibGit2Conan(ConanFile): |
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.
package_type
is missing.
recipes/libgit2/0.27.x/conandata.yml
Outdated
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.
Maybe the 0.27
recipe can be dropped altogether.
recipes/libgit2/0.27.x/conanfile.py
Outdated
tc.variables["USE_HTTPS"] = self._cmake_https[str(self.options.with_https)] | ||
tc.variables["SHA1_BACKEND"] = self._cmake_sha1[str(self.options.with_sha1)] | ||
tc.variables["BUILD_CLAR"] = False | ||
tc.variables["BUILD_EXAMPLES"] = False |
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.
Need to set CMP0077
to NEW
for tc.variables
.
recipes/libgit2/0.28.x/conanfile.py
Outdated
tc.variables["THREADSAFE"] = self.options.threadsafe | ||
tc.variables["USE_SSH"] = self.options.with_libssh2 | ||
tc.variables["USE_ICONV"] = self.options.get_safe("with_iconv", False) | ||
tc.variables["USE_HTTPS"] = self._cmake_https[str(self.options.with_https)] |
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.
The False
value in the dict is not a string.
This comment has been minimized.
This comment has been minimized.
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hi @toge - I'm now trying to come back to this PR, sorry about the delay. My one main question is if you have any insight into keeping the old 0.x releases, I think we could simplify a lot if only the |
This comment has been minimized.
This comment has been minimized.
@RubenRBS |
Hi! I went ahead and removed them and updated the recipe to use version ranges, sorry I didnt notify you sooner! :) |
Conan v1 pipeline ✔️All green in build 3 (
Conan v2 pipeline ✔️
All green in build 3 (
|
@RubenRBS |
cmake.configure() | ||
return cmake | ||
tc.variables["STATIC_CRT"] = is_msvc_static_runtime(self) | ||
# REGEX_BACKEND is SET(), avoid options overriding it |
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.
Thank you for commenting the motivation! It helps a lot!
@@ -1,10 +1,10 @@ | ||
# Optional external dependency: http-parser | ||
if(USE_HTTP_PARSER STREQUAL "system") | ||
- find_package(HTTPParser) |
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.
We could use CMakeDeps with set_property to change the cmake file name, but variables are still not possible to change, so this change looks okay.
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.
Thanks a lot @toge, sorry this one took so long to get merged :)
Specify library name and version: libgit2/*