-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Fix conf-openblas on macOS arm64 hardware #25076
Conversation
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.
Tested with conf-pkg-config
fix locally on both x86 and Arm MacOS.
pkg-config requires additional configuration after installing the openblas package.
dda7ae9
to
2e0bc6f
Compare
I suspect this commit could be causing problems on my Debian machine. See this issue: #25194 |
That is surprising though, I wonder why we don’t see issues on debian in the ci |
Could it be that a critical environment variable is set to the empty string? The specific error message seems only to be triggered in line 216 of https://github.com/ocaml/opam/blob/master/src/state/opamEnv.ml, perhaps because the variable |
I wonder why such a major semantic change (introducing some |
You are right, we should have made it with a |
I am not at my laptop until later in the afternoon, the best I can do is a fast merge and then a new PR later |
|
That is something that at some point we should figure out. So far is mostly just .x, adding 1 to the version for large changes and appending -1 for smaller (whatever this means), but different packages have different versioning for different (sometimes historical but other times not) reasons 😳 |
Fine with me. My intuition is: adding "os" "distributions" to an existing conf- package doesn't deserve a version bump, but everything else does. Is it annoying (i.e. recompiles on every client) if a depexts changes? I do not know (hopefully someone else does). I remember #10531 still being open, but eventually there should be some concrete policies being written down (plus CI-checked). |
Oh dear, apologies for this.
In limited defence, the point here is that it was not believed to be a semantic change affecting all packages. I had not registered that the second commit here relied on opam 2.0.11+ or 2.1.5+ to work correctly, as noted by my unfortunately incomplete comment "Note that opam ignores I don't know the full history on conf version bumping either - in this PR, I incorrectly believed that the semantic change only fixed things. I'm not sure what the best thing here in terms of testing would be - if this had been put in a new version, we'd still have had all the breakage, it would have "just" been with a different version number. I'll prepare a replacement PR in a sec. |
Possible fix for #25075 - working correctly on my M2 and didn't break a run in a Debian 12 opam container.
pkg-config
requires additional configuration after installing the openblas package - it's detailed after installing the package thatPKG_CONFIG_PATH
must be updated for this to work.The first commit fixes the test command to do exactly that; the second commit also adds the amendment to the output of
opam env
. Note that opam ignoresFOO += ""
in asetenv
. The second commit is optional, but having installed openblas, it seems logical for opam to ensure thatpkg-config
then actually works.