-
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
tinyalsa: conan2 #21064
tinyalsa: conan2 #21064
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.
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.
@Ahajha Please, do not remove a major version from conandata.yml
, it may break users: https://github.com/conan-io/conan-center-index/blob/master/docs/adding_packages/sources_and_patches.md#removing-old-versions
I originally thought that the changes between 1.1.1 and 2.0.0 were small, it seems I somehow overlooked a lot of changes. I did feel odd about it, I can go back and re-add 1.1.1, unfortunately I can't use CMake for that version :( |
This comment has been minimized.
This comment has been minimized.
@Ahajha you can split the recipe in separated folders like 1.x and 2.x. For real example: https://github.com/conan-io/conan-center-index/tree/master/recipes/mosquitto |
I have both using the Makefile for now, I'm wondering if the consistency is better or the simplicity/"easy correctness" of CMake for 2.0.0 is better. It's working as is, I think it's probably 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.
The patches are okay, as more or less they are integrated already to the upstream and the latest release is from 2021.
license = "BSD-3-Clause" | ||
url = "https://github.com/conan-io/conan-center-index" | ||
homepage = "https://github.com/tinyalsa/tinyalsa" | ||
topics = ("tiny", "alsa", "sound", "audio", "tinyalsa") | ||
description = "A small library to interface with ALSA in the Linux kernel" | ||
exports_sources = ["patches/*",] | ||
options = {"shared": [True, False], "with_utils": [True, 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.
Why did you remove with_utils
options? Is it not available for 1.1? Please, consider not removing an option, it affects directly the package ID: https://github.com/conan-io/conan-center-index/blob/master/docs/faqs.md#can-i-remove-an-option-from-a-recipe
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 utils get built regardless, it's just a matter of if they get packaged. As far as I can tell it's a conan-only thing. So to me it seemed odd to have an option for something where including it unconditionally didn't affect anything.
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 can change it to be deprecated instead, per the link.
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.
Please, revert that change, people still can decide if they want or not executables installed too.
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 revert the change, though I'm still confused as to what utility it provides. The executables are tiny (combined total of 160 Kb on my machine). Removing them doesn't save any significant amount of time or space, and keeping them shouldn't break anything, the only possible thing is the environment variables.
Co-authored-by: Uilian Ries <uilianries@gmail.com>
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Conan v1 pipeline ✔️All green in build 9 (
Conan v2 pipeline ✔️
All green in build 9 ( |
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: tinyalsa/all