-
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
new package: dpp 10.0.34 #25745
new package: dpp 10.0.34 #25745
Conversation
This comment has been minimized.
This comment has been minimized.
how exactly is this to be tested with a test package? it is a discord library and requires a token to test it? |
Hi @braindigitalis thanks a lot for taking the time to add this to CCI, we appreciate it! A few points about the PR: I recommend you use the package template available in https://github.com/conan-io/conan-center-index/tree/master/docs/package_templates/cmake_package as the basis for your package, which will improve the recipe and simplify the review process
There's no need to actually run the library/tests - usually ensuring that a call to any of the functions implemented in a (Also note that currently your PR is not set to allow us to directly commit on your branch, which limits how useful we can be while reviewing, I also recommend enabling it here, thanks!) Again, thanks for the effort in opening the PR, happy to help where needed :) |
This comment has been minimized.
This comment has been minimized.
... why are there no logs? Also the reason you cannot contribute to the PR is because it is from within an organisation, this is a known issue in github. Someone reported it as an issue in 2021 and github being github, still havent fixed it. |
@braindigitalis Hello and thank you for your PR! Please, take a look in the build log available on the comment above: #25745 (comment) As Abril commented, it's highly recommended using the templates to avoid extra changes needed. You actual recipe misses conandata.yml and requires Conan 2.x only (Conan 1.x is still mandatory in CCI). |
everything I've read says you're getting rid of Conan 1.x, surely we aren't expected to still support it too? I'm confused now as I've spent a long time getting this ready using only Conan 2 stuff. |
your template appears to be full of irrelevant stuff that is not needed by this library. why do you have stuff in the template to toggle fPIC, this isn't usually something we let the end user decide on, as it simply breaks builds...? a lot of stuff in there for detection of compiler etc we do in dpp's makefile, seems a lot of it is to work around broken cmakelists on projects that are not properly portable... is this the intent of the template? also this cannot be worked around.
we require cmake 3.16 (around since 2019!), what's with the ancient version? |
Most of Conan 2.x features are compatible to Conan 1.x so all recipes in CCI are running for both major versions. Indeed there are new features for Conan 2.x that really nice and will not be ported to Conan 1.x. Specifically speaking about your current recipe only The Conan 1.x support in ConanCenterIndex should be ended by the next week, so you can wait until the next week to re-visit this PR, or just update your recipe to be both Conan 1.x and Conan 2.x compatible. Still, we use conandata.yml and not Git commands directly in the recipe. The main advantage is being able to parse, validate and conandata; and re-use the same file for multiple versions without touching the recipe. The template shows how to use conandata in ConanCenterIndex: https://github.com/conan-io/conan-center-index/blob/master/docs/package_templates/cmake_package/all/conanfile.py#L98 Using conandata.yml will make your recipe compatible with both Conan 1.x and 2.x btw
The template covers a general cmake project, most compatible with almost all project that are using cmake in ConanCenterIndex. The fPIC and shared option are configurable yes, and for most of projects it's transparent as CMake itself is capable to manage it.
Please, read the design decision from 2020: https://github.com/conan-io/tribe/blob/main/design/004-tools-cmake.md In case you need >=3.15, which is totally fine, you can use tool_requirements, as indicate in the template: https://github.com/conan-io/conan-center-index/blob/master/docs/package_templates/cmake_package/all/conanfile.py#L95. The current recommendation for cmake is to include it with a version range like |
This comment has been minimized.
This comment has been minimized.
how do i get the test errors please? They were messaged into this thread last time, this time i'm not seeing them? |
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.
Thanks! Some suggestions, otherwise looks good
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
thanks, this is a known issue, but i forgot to add a workaround. We just need this: tc.cache_variables["AVX_TYPE"] = "AVX0" to force DPP to not attempt to enable AVX/NEON for now, until this can be patched properly upstream. It isn't something i'd want to try and hack in downstream with a patch in conan, and it doesnt cause any issue to disable NEON except a slight loss of performance when mixing received audio which isnt a feature many users use anyway. |
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.
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.
Almost good to go.
Co-authored-by: Uilian Ries <uilianries@gmail.com>
Co-authored-by: Uilian Ries <uilianries@gmail.com>
I've bought through your recommendations @uilianries however I left the pr with ci running last night waiting for it to complete and this AM it still hasn't finished, how long should the CI take to run, was this just an anomaly? Thanks! |
this now fails because it does not publicly bring in nlohmann json. only fails on 2.x... any ideas? |
This comment has been minimized.
This comment has been minimized.
Co-authored-by: Uilian Ries <uilianries@gmail.com>
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. The recipe looks good to be merged now. Thank you for your PR!
To understand the review process better, please, read https://github.com/conan-io/conan-center-index/blob/master/docs/review_process.md#getting-your-pull-request-reviewed
In summary, need to pass by the CI and have +2 approves.
Conan v1 pipeline ✔️Warning Conan Center will stop receiving updates for Conan 1.x packages soon - please see announcement. All green in build 26 (
Conan v2 pipeline ✔️
All green in build 26 (
|
@braindigitalis Your PR has been merged and is now available in Conan Center:
The https://conan.io/center updates the data base using a scheduled job, so the package should be listed there after some hours. Regards. |
* initial conan commit for dpp * fix * fix * test package * fix: specify minimum cmake version * change to 1.6 * we dont support users messing with fPIC * homepage, url * package_type * conandata * add get * Update recipes/dpp/all/conandata.yml Co-authored-by: Abril Rincón Blanco <git@rinconblanco.es> * Update recipes/dpp/all/conanfile.py Co-authored-by: Abril Rincón Blanco <git@rinconblanco.es> * Update recipes/dpp/all/conanfile.py Co-authored-by: Abril Rincón Blanco <git@rinconblanco.es> * Update recipes/dpp/all/conanfile.py Co-authored-by: Abril Rincón Blanco <git@rinconblanco.es> * Update recipes/dpp/all/conanfile.py Co-authored-by: Abril Rincón Blanco <git@rinconblanco.es> * Update recipes/dpp/all/conanfile.py Co-authored-by: Abril Rincón Blanco <git@rinconblanco.es> * revised from feedback * import copy * remove unused imports * Update recipes/dpp/all/conanfile.py Co-authored-by: Abril Rincón Blanco <git@rinconblanco.es> * enforce minimum compiler * workaround issue with AVX not working on neon * import Version * rm the pkgconfig and cmake find module after install * on windows, we need the includedirs and subdirs for the lib to be found * Update recipes/dpp/all/conanfile.py Co-authored-by: Uilian Ries <uilianries@gmail.com> * Update recipes/dpp/all/conanfile.py Co-authored-by: Uilian Ries <uilianries@gmail.com> * transitive headers for nlohmann (fixes: 2.x) Co-authored-by: Uilian Ries <uilianries@gmail.com> --------- Co-authored-by: Abril Rincón Blanco <git@rinconblanco.es> Co-authored-by: Uilian Ries <uilianries@gmail.com>
Summary
Adds new recipe dpp/10.0.34
Motivation
This library does not exist in Conan yet.
Details
Adds the initial build for dpp 10.0.34. I am the lead developer of the library in the recipe.
Installs from a zip of the release.