-
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
adding cpprestsdk/v2.10.15 #1191
Conversation
Some configurations of 'cpprestsdk/2.10.14' failed in build 3 (
|
All green in build 4 (
|
Co-Authored-By: Michael "Croydon" Keck <[email protected]>
Co-Authored-By: Michael "Croydon" Keck <[email protected]>
Co-Authored-By: Michael "Croydon" Keck <[email protected]>
recipes/cpprestsdk/all/conanfile.py
Outdated
def configure(self): | ||
if self.settings.compiler == 'Visual Studio': | ||
del self.options.fPIC |
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'll drop this here...
I ran a search to see how to deleted the fPIC option... However I have seen many different way is lots of recipes.
Which way is correct?
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.
Correct me if I'm wrong. @uilianries
In config_options()
, only the settings
object is finished, so you can do:
if self.settings.os == "Windows":
del self.options.fPIC
In the configure()
method, the options object is finished, so you can do:
if self.options.shared:
del self.options.fPIC
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.
@madebr Yes. Thus, it should be moved to config_options
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.
@uilianries I noticed this is very inconsistent in most recipes. Could this be added to the hooks?
Failure in build 9 ( 'conan export' command failed: ERROR: Package recipe with version 2.10.14!=2.10.15 |
recipes/cpprestsdk/all/conanfile.py
Outdated
def configure(self): | ||
if self.settings.compiler == 'Visual Studio': | ||
del self.options.fPIC |
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.
Correct me if I'm wrong. @uilianries
In config_options()
, only the settings
object is finished, so you can do:
if self.settings.os == "Windows":
del self.options.fPIC
In the configure()
method, the options object is finished, so you can do:
if self.options.shared:
del self.options.fPIC
recipes/cpprestsdk/all/conanfile.py
Outdated
self._cmake.definitions["IOS"] = True | ||
elif self.settings.os == "Android": | ||
self._cmake.definitions["ANDROID"] = True | ||
self._cmake.definitions["CONAN_LIBCXX"] = '' |
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.
What is the reason for this?
Maybe a dependency sets wrong flags?
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.
Copy paste from bincrafters, I have no clue =)
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.
@SSE4
only 2 years ago
bincrafters/conan-cpprestsdk@c648cea 😈😄
Do you have any clues why this is/was needed?
I would comment the line out (+add comment) and see what happens.
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.
From the wiki, Android is not even listed. Is supporting android require for CCI?
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 is not tested by CI, but patches are accepted as mobile devices are popular these days. (What is the official stance? @uilianries)
When you think about it, the IOS
and ANDROID
lines can be removed as well.
See https://cmake.org/cmake/help/latest/manual/cmake-variables.7.html#variables-that-describe-the-system
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.
When I search for the string "android" in their github cpprestsdk repo, I can find some hits.
So it is supported by the project (to some level at least)
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.
Android support came from another contributor. Need to investigate if that recipe really requires those definitions
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 have opted for removing Android. If in the future it's needed we can always revisit the topic.
Co-Authored-By: Anonymous Maarten <[email protected]>
Co-Authored-By: Anonymous Maarten <[email protected]>
All green in build 13 (
|
Signed-off-by: Uilian Ries <[email protected]>
@prince-chrismc take a look prince-chrismc#2 |
External patches for cpprestsdk
Some configurations of 'cpprestsdk/2.10.14' failed in build 15 (
|
Some configurations of 'cpprestsdk/2.10.14' failed in build 16 (
|
All green in build 17 (
|
All green in build 18 (
|
❤️ I really appreciate the work the whole CCI team put's in to make this project a reality. 🥇 It's greatly appreciated. @danimtb I do have a small requests for tomorrow's "PR merging session"... here's a list off oldest approved PR which many seem ready to go. Regardless of what you do, I am incredibly grateful for the effort from the CCI team! 💘 |
All green in build 19 (
|
@prince-chrismc thanks a lot for the feedback. We have plans to automate ConanCenter and improve the review process involving enthusiastic users from the community like you. Of course, we will review the list of approved PRs and unblock other ones in the next wave, it just that sometimes there are so many things going on that you overlook some of the open PRs. Thanks a lot again for your contributions and for helping us review other PRs 😄 |
from bincrafters/conan-cpprestsdk@a322739
Specify library name and version: cpprestsdk/v2.10.15
conan-center hook activated.
The patches are very complicated, looking for guidance on how they can be improved!