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

SDL 2.0.14 #5466

Merged
merged 19 commits into from
Jun 17, 2021
Merged

SDL 2.0.14 #5466

merged 19 commits into from
Jun 17, 2021

Conversation

MartinDelille
Copy link
Contributor

@MartinDelille MartinDelille commented May 7, 2021

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/


  • I've read the guidelines for contributing.
  • I've followed the PEP8 style guides for Python code in the recipes.
  • I've used the latest Conan client version.
  • I've tried at least one configuration locally with the
    conan-center hook activated.

@MartinDelille
Copy link
Contributor Author

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 SystemPackageTool has a ConanInvalidConfiguration ?

@conan-center-bot

This comment has been minimized.

@SpaceIm
Copy link
Contributor

SpaceIm commented May 7, 2021

Few issues:

  • conandata.yml is missing
  • add 2.0.14 only for the moment, not 2.0.12
  • all system_requirements must be abstracted in a CCI recipe

@conan-center-bot

This comment has been minimized.

@MartinDelille
Copy link
Contributor Author

  • conandata.yml is missing

In fact config.yml was missing but it's fixed

  • add 2.0.14 only for the moment, not 2.0.12

done

  • all system_requirements must be abstracted in a CCI recipe

Can you be more explicit about this issue I raised here ?

@conan-center-bot

This comment has been minimized.

@MartinDelille
Copy link
Contributor Author

My question is partially answered here: #641

@Croydon
Copy link
Contributor

Croydon commented May 7, 2021

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

@MartinDelille
Copy link
Contributor Author

And what about a partial support for MacOS and Windows ?

@conan-center-bot

This comment has been minimized.

Comment on lines 81 to 82
if self.settings.os == "Windows":
del self.options.fPIC
Copy link
Contributor

@SpaceIm SpaceIm May 7, 2021

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.

Copy link
Contributor

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

@MartinDelille MartinDelille changed the title SDL 2.0.12/2.0.14 SDL 2.0.14 May 8, 2021
@conan-center-bot

This comment has been minimized.

@Croydon
Copy link
Contributor

Croydon commented May 8, 2021

And what about a partial support for MacOS and Windows ?

Theoretically possible. If you ask me personally, I think it will once again confuse people and pretty much doubles maintenance work.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot conan-center-bot requested review from czoido and jgsogo June 8, 2021 11:58
Co-authored-by: Uilian Ries <uilianries@gmail.com>
jgsogo
jgsogo previously approved these changes Jun 15, 2021
Copy link
Contributor

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

@jgsogo jgsogo requested a review from uilianries June 15, 2021 10:01
prince-chrismc
prince-chrismc previously approved these changes Jun 15, 2021
SSE4
SSE4 previously approved these changes Jun 15, 2021
@MartinDelille MartinDelille dismissed stale reviews from SSE4, prince-chrismc, and jgsogo via 70d44e9 June 15, 2021 12:01
@conan-center-bot

This comment has been minimized.

@conan-center-bot
Copy link
Collaborator

All green in build 16 (b5676d2a717e4f294b524c1a552dedc0907ff3cc):

  • sdl/2.0.14@:
    All packages built successfully! (All logs)

@conan-center-bot conan-center-bot merged commit c220b4a into conan-io:master Jun 17, 2021
@SpaceIm
Copy link
Contributor

SpaceIm commented Jun 17, 2021

Why it is not sdl2? I think it's a very bad idea, all package managers use a different name for sdl (1) and sdl2.

@SpaceIm SpaceIm mentioned this pull request Jun 17, 2021
4 tasks
@jgsogo
Copy link
Contributor

jgsogo commented Jun 17, 2021

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 sdl one).

What do other reviewers think?

@prince-chrismc
Copy link
Contributor

No objection

@jgsogo
Copy link
Contributor

jgsogo commented Jun 17, 2021

I've created PR here: #5944

madebr pushed a commit to madebr/conan-center-index that referenced this pull request Jun 21, 2021
* 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>
@MartinDelille MartinDelille deleted the sdl branch July 18, 2021 10:44
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.

8 participants