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

libsolv-rs is choosing slightly older libgfortran5 (on macos-arm64) #266

Open
wolfv opened this issue Jul 23, 2023 · 3 comments
Open

libsolv-rs is choosing slightly older libgfortran5 (on macos-arm64) #266

wolfv opened this issue Jul 23, 2023 · 3 comments

Comments

@wolfv
Copy link
Member

wolfv commented Jul 23, 2023

When installing numpy on macOS ARM64, the new libsolv implementation picks libgfortran5-12.2.0-h0eea778_32.

Conda and mamba choose libgfortran5-12.3.0-ha3a6a3e_0.

I wonder if that has to do with libgfortran-5.0.0-12_3_0_hd922786_0 vs. libgfortran-5.0.0-12_2_0_hd922786_32. If we compare / sort by build number vs. build string we might pick the older one (because it has a much higer build number).

@wolfv
Copy link
Member Author

wolfv commented Jul 23, 2023

I think what happens is that first libgfortran-5.0.0-12_2_0_hXXX_32 is picked (also with micromamba).

With micromamba, the following happens:

  • libgfortran-5.0.0 depends on libgfortran5 >=11.3, and then libgfortran5-12.3.0 is selected (which has a constraint on libgfortran *_0). Since we selected _32 before, it backtracks, and selects the appropriate 12_3_0_hXXX_0 version. However, the rattler solver picks 12.2 immediately and doesn't do another round of backtracking.

@wolfv
Copy link
Member Author

wolfv commented Jul 23, 2023

A test-case that shows this behavior was added in #267

@baszalmstra
Copy link
Collaborator

This issue has become quite stale, especially since we use resolvo most of the time. Would you mind if I close this?

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

No branches or pull requests

2 participants