-
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
Add libsndio recipe #23087
Add libsndio recipe #23087
Conversation
This comment has been minimized.
This comment has been minimized.
Thanks! The bad thing about modifying recipes/libsndfile/all/conanfile.py the current CI will complain and it won't try to compile the new recipe - I'd recommend removing that change from this PR and focusing on getting this merged knowing that we need to additionally check ffmpeg :) Also don't forget to request access in #4 so that the PR gets built by the CI |
3f9f55c
to
bfe2c43
Compare
Thanks @RubenRBS. Just requested access and removed the commit against libsndfile. The changes to libsndfile can still be seen here: |
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
…dep info to sndio's configure script
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Added a test package for conan v2. It passes, but it seems there is a missing dependency still:
This |
This comment has been minimized.
This comment has been minimized.
No idea why the v1 pipeline is failing. I've run |
Co-authored-by: ericLemanissier <[email protected]>
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.
This comment has been minimized.
This comment has been minimized.
Feel free to ping once you've addressed @valgur review :) |
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 looks good.
sources: | ||
"1.9.0": | ||
"source": | ||
url: "https://github.com/ratchov/sndio/archive/refs/tags/v1.9.0.tar.gz" |
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 the sources from https://sndio.org/install.html (https://sndio.org/sndio-1.9.0.tar.gz) aren't used? It seems they say their sources work in Linux, it is necessary to use this Github fork instead of the original project sources?
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 had originally used those sources, but found they didn't include the license file. I thought the GitHub release would because I saw the license file on the main branch, so I switched to GitHub sources. It turned out that the license file had been added in a commit later than the latest release, though, so it ended up not mattering.
I can switch this back to the sndio.org sources, if it is preferable. They should be the same.
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's worth noting that Alexandre Ratchov is one of the authors of sndio though, which is why I thought it would be acceptable. Their fork/repo is the only place where I could find a complete license file that includes all authors.
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 approved it, sorry for the delays, it is very difficult to keep up with everything.
I think in the future it would make sense to use the official URLs, but that is not critical, I preferred to approve to not further delay it, and it can be changed in the future.
Many thanks again for this contribution!
…upport to FreeBSD
Co-authored-by: Martin Valgur <[email protected]>
I've added the suggested changes from @valgur 's review. @memsharded let me know if you want the source URL changed, based on the above conversation, otherwise I think this should be ready to land. |
Conan v1 pipeline ✔️All green in build 15 (
Conan v2 pipeline ✔️
All green in build 15 (
|
libsndio/1.9.0
The current
libsndfile
recipe has a line:This was ultimately causing issues for me within my machine's environment, for partially unknown reasons. I described my findings here (meant to file the issue here, though):
conan-io/conan#15240
By adding this sndio recipe, the complete chain of deps when building
ffmpeg
in a configuration that pulls inpulseaudio
can be resolved (ffmpeg->pulseaudio->libsndfile->libsndio), and I was able to get the test to pass using thelibsndio
package.I know that PRs should only change one recipe at a time, but I've currently put in the commit that adjusts
libsndfile
as well, for visibility and in case I'm missing something. I will remove this if this PR moves forward/gets buy-in.I also haven't written a test-package specifically for this recipe yet, but will also do that once any issues are addressed. I have tested it indirectly by doing a
conan create --version 6.1
forffmpeg
which had previously been exhibiting my linked issues.libsndio
is a little weird compared to other projects I've written recipes for in that it has a handwrittenconfigure
file and noconfigure.ac
, so the standard approach for using the AutoToolsToolchain didn't really work. I have very little experience writing autotools recipes, so please let me know if there are ways to improve this.^- will do this at some point