-
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
Add libavrocpp/1.10.1 #4393
Add libavrocpp/1.10.1 #4393
Conversation
This comment has been minimized.
This comment has been minimized.
Add licenses
This comment has been minimized.
This comment has been minimized.
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 this contribution
One think which would be appreciated would be to follow this order
https://github.com/conan-io/conan-center-index/blob/master/docs/reviewing.md#order-of-methods-and-attributes
There's quite a few changes required so hopefully its reasonable request
If you need any help feel free to ask!
I
Thanks @prince-chrismc! There are two PR:s up, one for 1.10.1 and one for 1.8.2. Both of them were in one PR from the beginning. I split them up and reworked the 1.8.2 first, to deal with this one later. I will apply your comments to the other one as well: #4391 |
Why are you adding two versions? unless there's a specific need for the older I'd strongly suggest you only keep this one |
You are probable not correct;y following the CMake exported definitions, https://github.com/apache/avro/blob/7d1e63b219e6d0778bc57195152477adee97fcab/lang/c%2B%2B/api/Config.hh#L31 make sure |
Thanks! There was a specific need for the old one because of another dependency. I will revisit that. The 1.8.2 is old enough to warrant an upgrade across the board on my end. Thank you for the review so far! |
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.
Thanks for the frequent reviews @prince-chrismc! |
This comment has been minimized.
This comment has been minimized.
recipes/libavrocpp/all/conanfile.py
Outdated
if self.options.with_snappy: | ||
tools.replace_in_file( | ||
os.path.join(self._source_subfolder, "CMakeLists.txt"), | ||
"find_package(Snappy)", | ||
"", | ||
) |
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.
So I looked into.. and yes it's an option
To compile requires boost headers, and the boost regex library. Optionally, it requires Snappy compression library. If Snappy is available, it builds support for Snappy compression and skips it otherwise.
My suggestion is to conditionally define the variable
If it's not required and found... well 🤯
This patch should not be required 🤞
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 tried setting the variable to an empty string in _configure_cmake()
when not using snappy:
if not self.options.with_snappy:
self._cmake.definitions["SNAPPY_ROOT_DIR"] = ""
But that failed:
-- Could NOT find Snappy (missing: SNAPPY_LIBRARIES SNAPPY_INCLUDE_DIR)
Disabled snappy codec. libsnappy not found.
-- Configuring done
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
/home/user/.conan/data/libavrocpp/1.10.1/_/_/build/a285fc00ea829acfc7280102b9b32a8043fbd51c/source_subfolder/lang/c++/SNAPPY_INCLUDE_DIR
used as include directory in directory /home/user/.conan/data/libavrocpp/1.10.1/_/_/build/a285fc00ea829acfc7280102b9b32a8043fbd51c/source_subfolder/lang/c++
used as include directory in directory /home/user/.conan/data/libavrocpp/1.10.1/_/_/build/a285fc00ea829acfc7280102b9b32a8043fbd51c/source_subfolder/lang/c++
I will leave the removal of the builtin call to find_package(snappy)
in there meanwhile, and see if I can find a better way later.
So the VS builds are a real headache. Summary of errors for each CCI-config:
I still have a TODO to verify that |
I just noticed your new comments just after hitting send on my last message there. Will have a look at those as well. |
❤️ Thank you for the contribution 🏆
I think we have the same routine 🤣 |
The missing symbols are all for the static runtimes (which are probably not support) the missing names might be this erengy/anitomy#2 (comment) |
This comment has been minimized.
This comment has been minimized.
It's listed online https://conan.io/center/zlib?os=Windows&tab=configuration
|
@ericLemanissier can you please add this too #4221? |
Nevermind the comment I deleted, I overlooked something. |
I restarted CCI based on this comment from #4221:
|
This comment has been minimized.
This comment has been minimized.
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.
LGTM 🚀
This comment has been minimized.
This comment has been minimized.
All green in build 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.
LGTM
Specify library name and version: libavrocpp/1.10.1
conan-center hook activated.