-
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
SDL 2.0.14 #5466
SDL 2.0.14 #5466
Conversation
I still have this error that I don't really know how to handle: https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H032 Can I simply mark the case in need of |
This comment has been minimized.
This comment has been minimized.
Few issues:
|
This comment has been minimized.
This comment has been minimized.
In fact config.yml was missing but it's fixed
done
Can you be more explicit about this issue I raised here ? |
This comment has been minimized.
This comment has been minimized.
My question is partially answered here: #641 |
I don't think it is the right time already to port this. This recipe could not (really) support all options relying on those system packages: https://github.com/bincrafters/community/blob/4eb2cb217d12d65791d5dec8439d1f23fcc83b1a/recipes/sdl2/all/conanfile.py#L135 |
And what about a partial support for MacOS and Windows ? |
This comment has been minimized.
This comment has been minimized.
recipes/sdl2/all/conanfile.py
Outdated
if self.settings.os == "Windows": | ||
del self.options.fPIC |
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 would also remove iconv (maybe only for Visual Studio). In this branch https://github.com/libsdl-org/SDL/blob/889cebb7c20d4195e5d4ac344a2175f2490354cc/CMakeLists.txt#L779, iconv is never tested.
Also on Mac, I'm not sure that libiconv should be provided by conan, since it's a system library.
Finally, this recipe doesn't provide a way to really be sure that iconv is disabled, so sdl:iconv=False
is quite fragile.
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.
Also on Mac, I'm not sure that libiconv should be provided by conan, since it's a system library.
In the past, we had several changes back and forth. I think this deserves a general discussion before it is changed again
This comment has been minimized.
This comment has been minimized.
Theoretically possible. If you ask me personally, I think it will once again confuse people and pretty much doubles maintenance work. |
This comment has been minimized.
This comment has been minimized.
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.
IMHO, this recipe is good enough (really good job!) as a starting point to provide SDL. I'm sure it will require some iterations and adjustments, but it is starting to work... and some people will benefit from it.
70d44e9
This comment has been minimized.
This comment has been minimized.
This reverts commit 70d44e9.
All green in build 16 (
|
Why it is not |
Hi, @SpaceIm (thanks for putting your other PR in draft). I agree with you, I think it's been a mistake and I would vote to rename this recipe (and deprecate current What do other reviewers think? |
No objection |
I've created PR here: #5944 |
* sdl2 * Rename sdl2 => sdl * Fix * Remove 2.0.12 * Add config.yml * Remove system_requirements() * Linux not supported yet * Remove iconv option for Visual Studio * Don't use iconv from conan for Macos since it is provided by the system * Safe iconv option check * get_safe iconv option * Handle fPIC properly * Fix package_info for Macos / iconv * Move fPIC option handling when shared * Requires libiconv also for Macos * Apply suggestions from code review Co-authored-by: Chris Mc <prince.chrismc@gmail.com> * Update recipes/sdl/all/conanfile.py Co-authored-by: Uilian Ries <uilianries@gmail.com> * Move ConanInvalidConfiguration raise to validate() * Revert "Move ConanInvalidConfiguration raise to validate()" This reverts commit 70d44e9. Co-authored-by: Chris Mc <prince.chrismc@gmail.com> Co-authored-by: Javier G. Sogo <jgsogo@gmail.com> Co-authored-by: Uilian Ries <uilianries@gmail.com>
Specify library name and version: sdl/2.0.14
I tried to import the sdl library from https://github.com/bincrafters/community/tree/main/recipes/sdl2/
conan-center hook activated.