conan-io / conan-center-index

Recipes for the ConanCenter repository
https://conan.io/center
MIT License
942 stars 1.71k forks source link

[request] opengl/system should be updated in the future to handle future elementaryOS versions #2117

Open seanballais opened 4 years ago

seanballais commented 4 years ago

Package Details

This issue is going under the presumption that Conan will recognize elementaryOS (an Ubuntu-based distro) as a distro that uses apt (conan-io/conan#7307), which currently does not. In the moment that it does, the opengl/system recipe should be updated to use libgl-dev instead of libgl1-mesa-dev when using the upcoming elementaryOS 6.0, which will be based on Ubuntu 20.04, or later. Earlier versions of elementaryOS should use libgl1-mesa-dev.

Croydon commented 3 years ago

I think most parts of this issue are done via https://github.com/conan-io/conan/issues/7307

However, maybe we should reverse the logic here: https://github.com/conan-io/conan-center-index/blob/a0527130d23116361ec3a28399daceaafd112e63/recipes/opengl/all/conanfile.py#L50

To use on more distribution the new package, we should default to it and only use the old one when we detect an specific old distro/version combo