Skip to content

mirage-os-shim.0.0.1 - via opam-publish#7688

Merged
avsm merged 1 commit into
ocaml:masterfrom
pqwy:opam-publish/mirage-os-shim.0.0.1
Oct 27, 2016
Merged

mirage-os-shim.0.0.1 - via opam-publish#7688
avsm merged 1 commit into
ocaml:masterfrom
pqwy:opam-publish/mirage-os-shim.0.0.1

Conversation

@pqwy
Copy link
Copy Markdown
Contributor

@pqwy pqwy commented Oct 26, 2016

Portable shim for MirageOS APIs

mirage-os-shim is the intersection of the Mirage OS APIs exported under the OS
modules by various Mirage backends. It shims out this interface under the same
cmi, and installs several implementations, that pass through to their
respective backends.

Clients need to be compiled against the common mirage_OS.cmi, and use the
module Mirage_OS. Final applications need to be linked using ocamlfind, and
have to define one of the ocamlfind predicates corresponding to the actual
OS implementations: unix, xen, or solo5.

When using ocamlbuild, this is
ocamlfind -use-ocamlfind -tag 'predicate(unix)' or similar.

WARNING Direct access to the OS interface is largely deprecated. The
interface is pretty volatile. It is highly likely that you, in fact, do not need
this package at all.

mirage-os-shim is distributed under the ISC license.




v0.0.1 2016-10-26

First release.

Synced to mirage-types-2.80.
Pull-request generated by opam-publish v0.3.2

@camelus
Copy link
Copy Markdown
Contributor

camelus commented Oct 26, 2016

✅ All lint checks passed 40f5937
  • These packages passed lint tests: mirage-os-shim.0.0.1

✅ Installability check (5640 → 5641)
  • new installable packages (1): mirage-os-shim.0.0.1

@hannesm
Copy link
Copy Markdown
Member

hannesm commented Oct 26, 2016

is this useful without a mirage tool that emits the predicate? (mirage/mirage#568, merged into mirage master, but not in any 2.x release)

@pqwy
Copy link
Copy Markdown
Contributor Author

pqwy commented Oct 26, 2016

Not terribly useful. It's also out of sync with the new Time.

But you get to compile against it. And you can define the predicate yourself, like the test does, to link an executable.

EDIT No, of course the included test doesn't do it. It doesn't go through ocamlfind. Duh.

@pqwy pqwy mentioned this pull request Oct 26, 2016
2 tasks
@avsm
Copy link
Copy Markdown
Member

avsm commented Oct 27, 2016

Should this be merged as-is, or do you want to revise it?

@pqwy
Copy link
Copy Markdown
Contributor Author

pqwy commented Oct 27, 2016

@avsm It can be merged as-is.

@avsm avsm merged commit 530e74d into ocaml:master Oct 27, 2016
@pqwy pqwy deleted the opam-publish/mirage-os-shim.0.0.1 branch April 3, 2019 23:30
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

Successfully merging this pull request may close these issues.

4 participants