-
Notifications
You must be signed in to change notification settings - Fork 371
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
OPAM 2 interpretation of 'arch:' field is backward incompatible with OPAM 1 #3293
Comments
See #3058 |
@dbuenzli Thanks for that. I have two questions:
|
|
@AltGr Just to confirm that I understand correctly: Both of the cases that I mention (mirage/ocaml-solo5#36, mirage/ocaml-solo5#35 (comment)) are due to a bug in the format upgrader? So we should stick with the 1.2 format for those packages and things will keep working? I presume the format upgrader is also used when installing packages from local pins? |
Underlying issue fixed by #3296. Thanks for reporting! |
Thanks. I'll wait for a -rc2 build with this fix, then report back once tested. |
@AltGr I've tested this at least in the OpenBSD cases, and with a build of OPAM 2 from today's |
As discovered by @kit-ty-kate in mirage/ocaml-solo5/pull/36, OPAM 2 appears to have a different interpretation for the
arch:
field compared to OPAM 1:arch: the host architecture, typically one of "x86_32", "x86_64", "ppc32", "ppc64", "arm32" or "arm64", or the lowercased output of uname -m, or "unknown"
arch: the host architecture, as returned by uname -m
In practice, this is causing extra work for packages which require
arch
-dependent constraints, as thearch
value will be different for OPAM 1 and OPAM 2.Possibly related, it appears that even on the same
os
andarch
(OpenBSD onamd64
) the values do diverge: mirage/ocaml-solo5#35 (comment)I'm not sure what the correct solution is here, but as a first step I'd like to know what the intent behind this change to OPAM 2 was, and what the exact semantics for OPAM 2 are?
If at all possible I'd prefer to work towards a solution that does not result in adding more
arch
constraints to package definitions in order to accomodate OPAM 2.The text was updated successfully, but these errors were encountered: