-
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
+mirage-platform.3.3.0 #13495
+mirage-platform.3.3.0 #13495
Conversation
supports forthcoming dune support as part of mirage/mirage#969: * Add support for OCaml 4.08 (mirage/mirage-platform#206 by @anmonteiro) * `libxenasmrun.a` is symlinked in the ocaml directory in order to be able to use ocamlopt's `-runtime-variant` option. * Expose flags through files as well as pkg-config (mirage/mirage-platform#205 by @TheLortex). Instead of pkg-config, one can use the following files to get compilation flags: * mirage-xen-ocaml/libs * mirage-xen-ocaml/cflags * mirage-xen-posix/minios-cflags * mirage-xen-posix/minios-libs * mirage-xen-posix/posix-cflags * mirage-xen-posix/posix-libs With dune this allows us to write `%{lib:mirage-xen-posix:posix-libs}` to get the flags instead of having a script invoking `pkg-config mirage-xen-posix --libs`.
☀️ All lint checks passed 260293e
☀️ Installability check (10501 → 10503)
|
The failure with the system switch is expected? |
Hm, no - will respin release |
Hm, after some discussion with @TheLortex, I think we need to restrict this package to non-system installations. That won't disrupt existing users of mirage-platform, but will unblock the dune release of Mirage. @samoht @hannesm are you ok with this? The reason is that we need to symlink into the ocaml libdir in order to support |
@avsm is there at some point in the future an idea how to support system switches? or will the is a system switch detectable from within an opam file - and is it possible to print a message "you're using a system switch that is currently not supported"? (or inform the user "in order to use a system switch, you'll have to manually I'm slightly concerned to introduce behaviour that only works on non-system opam switches, and would be in favour to figure out how system switches can be supported. |
It could be supported by patching OCaml so that the -runtime-variant option is more flexible: if we're able to provide a path to |
IIUC, runtime-variant is located in the default search path ( |
It looks like |
@TheLortex true. a plan!?:
|
I suggest a conflict of |
Wouldn't an |
why should it cause trouble with CI? it will lead to not being installable if a system switch is used, which is the currently proposed support level (warning messages have the downside that people will ignore them). there is a variety of CI systems around, some use system switches, but most use opam switches, so they should be fine :) |
Okay that's fine with me ! |
since it symlinks into ocaml libdir to work with output-complete-obj
ive pushed the ocaml-system conflict |
Thanks |
@avsm fine, the conflict should be synchronised at upstream |
we discussed this a bit further in marrakesh, and it turns out we can use edit: see #13679 for same thing on freestanding. |
supports forthcoming dune support as part of mirage/mirage#969:
libxenasmrun.a
is symlinked in the ocaml directory in order to be able to use ocamlopt's-runtime-variant
option.With dune this allows us to write
%{lib:mirage-xen-posix:posix-libs}
to get the flags instead of having a script invokingpkg-config mirage-xen-posix --libs
.