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

String.create: get rid of deprecation warning #112

Merged
merged 3 commits into from
Apr 8, 2018

Conversation

cfcs
Copy link

@cfcs cfcs commented Dec 12, 2017

No description provided.

@yomimono
Copy link
Contributor

yomimono commented Jan 5, 2018

The build is failing for the package which exercises this change: https://travis-ci.org/mirage/ocaml-vchan/jobs/315142527#L2655

Do you have time to revisit this PR?

@cfcs
Copy link
Author

cfcs commented Jan 6, 2018

Hmm, I am unable to reproduce that build error.
String.create is an alias for Bytes.create on 4.04.2, perhaps this is not the case with 4.03?

@cfcs
Copy link
Author

cfcs commented Jan 6, 2018

Ah, it was unrelated to the code change, I think.
- File "lwt/vchan_lwt_unix.ml", line 17, characters 33-61:
module Xs = Xs_client_lwt.Client(Xs_transport_lwt_unix_client)

This is the interface:

val Xs_transport_lwt_unix_client.read Lwt_unix.file_descr -> bytes -> int -> int -> int Lwt.t 

It is building against an old version of xenstore_transport (0.9.6) rather than 1.0.0:
https://github.com/xapi-project/ocaml-xenstore-clients/releases

@hannesm
Copy link
Member

hannesm commented Jan 6, 2018

@cfcs you can add in vchan*.opam in this repository a {>= "1.0.0"} next to the xenstore_transport dependency! :)

@cfcs
Copy link
Author

cfcs commented Jan 6, 2018

@hannesm yes, I just pushed a commit that does that, waiting for the CI to see if 4.03 users will be happy now :)

@cfcs
Copy link
Author

cfcs commented Jan 6, 2018

Ah, shit.
https://github.com/xapi-project/ocaml-xenstore-clients/blob/master/xenstore_transport.opam#L37

Well, there's the problem. I don't know how to proceed. @yomimono @hannesm

@hannesm
Copy link
Member

hannesm commented Jan 6, 2018

it's pretty easy: drop 4.03 support, and require the same 4.04.0 ;) MirageOS anyways requires 4.04.2 these days.

@hannesm
Copy link
Member

hannesm commented Jan 6, 2018

so you'll need to update the opam files and also .travis.yml to use a mix of 4.04.2 and 4.05.0 (instead of the 4.03.0)

@cfcs
Copy link
Author

cfcs commented Jan 7, 2018

@hannesm ;) I didn't feel comfortable killing 4.03 by myself, do we need to ping someone to take a decision? On the other hand I guess it would make sense when the other Xen-related repositories already have a lower bound of 4.04...

@hannesm
Copy link
Member

hannesm commented Jan 7, 2018

@cfcs there, i pushed a commit onto this PR here... not sure why you specified xenstore_transport {.. < "1.1.0"} -- that's not sth we usually do in opam (instead, we fix up the reverse dependencies upon API breakage)

@cfcs
Copy link
Author

cfcs commented Jan 8, 2018

Cool! I like upper bounds to prevent breakage (would rather have an unresolvable-constraints-error-in-some-cases-but-works-for-most-users in opam in than broken-for-everyone-until-maintainers-fix-package), but that's just personal preference.

@hannesm
Copy link
Member

hannesm commented Apr 8, 2018

this LGTM, @djs55 @samoht @avsm seem to be the maintainers (by looking at the number of commits to this repository)!

@samoht
Copy link
Member

samoht commented Apr 8, 2018

LGTM

@samoht samoht merged commit 0c1958b into mirage:master Apr 8, 2018
@cfcs cfcs deleted the deprecation_warning branch April 9, 2018 09:43
avsm added a commit to avsm/opam-repository that referenced this pull request Dec 13, 2018
CHANGES:

* Modernise build for OCaml 4.04 and port to Dune (mirage/ocaml-vchan#120 @talex5 @avsm)
* Upgrade opam metadata files to 2.0 (mirage/ocaml-vchan#120 @avsm @talex5)
* Remove mli only module (mirage/ocaml-vchan#114 @rgrinberg @samoht)
* Fix deprecation warning on String.create (mirage/ocaml-vchan#112 @samoht)
* Make OCaml 4.04 the minimum version (mirage/ocaml-vchan#111 @cfcs @hannesm)
* Update test cases for Mirage 3 (mirage/ocaml-vchan#110 @mneilsen)
mseri pushed a commit to ocaml/opam-repository that referenced this pull request Dec 13, 2018
CHANGES:

* Modernise build for OCaml 4.04 and port to Dune (mirage/ocaml-vchan#120 @talex5 @avsm)
* Upgrade opam metadata files to 2.0 (mirage/ocaml-vchan#120 @avsm @talex5)
* Remove mli only module (mirage/ocaml-vchan#114 @rgrinberg @samoht)
* Fix deprecation warning on String.create (mirage/ocaml-vchan#112 @samoht)
* Make OCaml 4.04 the minimum version (mirage/ocaml-vchan#111 @cfcs @hannesm)
* Update test cases for Mirage 3 (mirage/ocaml-vchan#110 @mneilsen)
fdopen added a commit to fdopen/opam-repository-mingw that referenced this pull request Dec 18, 2018
CHANGES:

* Modernise build for OCaml 4.04 and port to Dune (mirage/ocaml-vchan#120 @talex5 @avsm)
* Upgrade opam metadata files to 2.0 (mirage/ocaml-vchan#120 @avsm @talex5)
* Remove mli only module (mirage/ocaml-vchan#114 @rgrinberg @samoht)
* Fix deprecation warning on String.create (mirage/ocaml-vchan#112 @samoht)
* Make OCaml 4.04 the minimum version (mirage/ocaml-vchan#111 @cfcs @hannesm)
* Update test cases for Mirage 3 (mirage/ocaml-vchan#110 @mneilsen)
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