Skip to content
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

Merged
merged 13 commits into from
Nov 29, 2023
Merged

tinyalsa: conan2 #21064

merged 13 commits into from
Nov 29, 2023

Conversation

Ahajha
Copy link
Contributor

@Ahajha Ahajha commented Nov 11, 2023

Specify library name and version: tinyalsa/all

@conan-center-bot

This comment has been minimized.

@Ahajha
Copy link
Contributor Author

Ahajha commented Nov 11, 2023

Looking at changes in tinyalsa, 2.0.0 seems to be just bugfixes from 1.1.1. For ease of converting the recipe, it now uses the CMake file provided in 2.0.0. Hopefully the changes are small enough and enough time has passed that anyone using this package would be willing to upgrade. Disregard

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

Copy link
Member

@uilianries uilianries left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Ahajha
Copy link
Contributor Author

Ahajha commented Nov 14, 2023

Please, do not remove a major version from conandata.yml, it may break users

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 :(

@conan-center-bot

This comment has been minimized.

@uilianries
Copy link
Member

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 :(

@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

@Ahajha
Copy link
Contributor Author

Ahajha commented Nov 17, 2023

@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.

Copy link
Member

@uilianries uilianries left a 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.

recipes/tinyalsa/all/conandata.yml Outdated Show resolved Hide resolved
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]}
Copy link
Member

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

Copy link
Contributor Author

@Ahajha Ahajha Nov 27, 2023

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.

Copy link
Contributor Author

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.

Copy link
Member

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.

Copy link
Contributor Author

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>
@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ✔️

All green in build 9 (e1a70ebcfcc3e809224056fce872a19f3f5d62f6):

  • tinyalsa/2.0.0:
    All packages built successfully! (All logs)

  • tinyalsa/1.1.1:
    All packages built successfully! (All logs)


Conan v2 pipeline ✔️

Note: Conan v2 builds are now mandatory. Please read our discussion about it.

All green in build 9 (e1a70ebcfcc3e809224056fce872a19f3f5d62f6):

  • tinyalsa/2.0.0:
    All packages built successfully! (All logs)

  • tinyalsa/1.1.1:
    All packages built successfully! (All logs)

Copy link
Member

@uilianries uilianries left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@conan-center-bot conan-center-bot merged commit e70ab4a into conan-io:master Nov 29, 2023
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants