diff options
author | dholland <dholland@pkgsrc.org> | 2021-08-15 06:10:45 +0000 |
---|---|---|
committer | dholland <dholland@pkgsrc.org> | 2021-08-15 06:10:45 +0000 |
commit | c4820ec9744e7ab72d5ae2967a41a5bf3943b376 (patch) | |
tree | 089d1a1fda37a860f3347d87c6fe347673d7fe87 /www/ocaml-curl | |
parent | 0d8e2aeab6c5806a3012280ddf2358a0bfc0c428 (diff) | |
download | pkgsrc-c4820ec9744e7ab72d5ae2967a41a5bf3943b376.tar.gz |
www/ocaml-curl: fix build with recent ocaml
Diffstat (limited to 'www/ocaml-curl')
-rw-r--r-- | www/ocaml-curl/distinfo | 3 | ||||
-rw-r--r-- | www/ocaml-curl/patches/patch-examples_oput.ml | 22 |
2 files changed, 24 insertions, 1 deletions
diff --git a/www/ocaml-curl/distinfo b/www/ocaml-curl/distinfo index eca1ff6cb9d..51f308aa8cb 100644 --- a/www/ocaml-curl/distinfo +++ b/www/ocaml-curl/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.2 2015/11/04 02:46:59 agc Exp $ +$NetBSD: distinfo,v 1.3 2021/08/15 06:10:45 dholland Exp $ SHA1 (ocurl-0.5.3.tgz) = d074946ad61663aaed8a95bcdaee5bb6849fa163 RMD160 (ocurl-0.5.3.tgz) = 588c88adcf6d304f3a1acc8d8fef53c16d4cadcf SHA512 (ocurl-0.5.3.tgz) = 29ec901bd47ab0a26123fabdd4a447a30f8170c462aed7079c634bc6993b6e9140eb2a4d42d3d0b2aa65666dbe8a4ff7082ed08daf2e1605da0f552cb5802802 Size (ocurl-0.5.3.tgz) = 87849 bytes SHA1 (patch-Makefile.in) = 2dcf2d6f8ccb12b15dea8cf27cf31e13bbfed8be +SHA1 (patch-examples_oput.ml) = 0c8c02813703bece478188ab4bea599f45f106cf diff --git a/www/ocaml-curl/patches/patch-examples_oput.ml b/www/ocaml-curl/patches/patch-examples_oput.ml new file mode 100644 index 00000000000..ac75c5825ff --- /dev/null +++ b/www/ocaml-curl/patches/patch-examples_oput.ml @@ -0,0 +1,22 @@ +$NetBSD: patch-examples_oput.ml,v 1.1 2021/08/15 06:10:45 dholland Exp $ + +Fix build with recent ocaml. + +--- examples/oput.ml~ 2008-06-23 04:22:56.000000000 +0000 ++++ examples/oput.ml +@@ -7,13 +7,13 @@ + let counter = ref 0 + + let reader file maxBytes = +- let buffer = String.create maxBytes in ++ let buffer = Bytes.create maxBytes in + let readBytes = input file buffer 0 maxBytes in + if readBytes = 0 then "" + else + begin + counter := !counter + readBytes; +- String.sub buffer 0 readBytes ++ Bytes.to_string (Bytes.sub buffer 0 readBytes) + end + + let _ = |