-
Notifications
You must be signed in to change notification settings - Fork 996
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
[question] usability of linux binaries on conan center #7121
Comments
Hi, @rconde01! Yes, the This will alleviate some problems we have right now, but I know this is not fixing the issue. We could add Your suggestion could work, but we cannot identify the platform/glibc and decide that binaries coming from a remote have to be compiled (even though binaries with exactly the same package-ID are available). A remote is just an URL for Conan, the user can add many remotes to the client, and we don't want to take special actions based on the URL, it'd require to hardcode things that shouldn't be hardcoded in a generic client. ...but we could add a trait for the remotes, so the user can decide if everything coming from a remote should be compiled from sources. It would work, it'd probably be easy to implement, maybe it is a bit overkill, but maybe it is the only solution so far. |
Related to this one #7117 |
Thanks for the background. I definitely get that you can't host binaries for all glibc versions...but why can't add it to settings and just host for one version (i guess whatever is in that ubuntu distro)? |
We could add So the plan is to use the oldest supported Ubuntu image to generate the binaries, so it will use a relatively old |
Gotcha - I guess the success will depend on the Ubuntu LTS strategy which i'm not very familiar with...I would assume the commercial distos are more conservative but I don't know for sure. |
Yes. We will use Xenial: conan-io/conan-docker-tools#204 @uilianries is preparing a blogpost to explain about this migration, maybe it makes sense to talk about what the user can do to take into account glibc version. |
The problem with modeling the glibc is that the glibc doesn't need to have an exact match (like most of the other settings), but older glibc are compatible. We could implement this as a Building with a relatively older distro will be a pragmatic approach that will probably be good for most of the ConanCenter users. |
No matter what choice of distro/glibc version is chosen for conan center, there will always be someone who has different needs. If there is no desire to fix the underlying issue of glibc compatibility (due to package resolution performance concerns), how about adding an allow list and/or deny list for binaries? That way, if someone knows that they can't use the binaries on conan center, for whatever reason, they can simply block it. Put another way, rather than simply having a remote being enabled or disabled, it is enabled/source only/disabled. |
I like that |
This kind of usage of ConanCenter, specially in production environments is documented in https://docs.conan.io/2/devops/using_conancenter.html, and recommends using recipes from |
I was using the xerces/3.2.2 package from conan center on redhat 7 using devtoolset-8 and getting linker errors related to ABI/GLIBC etc. After I rebuilt the binaries locally, it worked. I understand the issue here...but i'm wondering at the conan center strategy. Are the usability of conan center linux binaries a dice roll? If so, is there any plan to handle this better? If not, is there a way to set a policy to always build locally for a given platform?
The text was updated successfully, but these errors were encountered: