pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/www/ocaml-curl
Module Name: pkgsrc
Committed By: dholland
Date: Sun Aug 15 06:10:45 UTC 2021
Modified Files:
pkgsrc/www/ocaml-curl: distinfo
Added Files:
pkgsrc/www/ocaml-curl/patches: patch-examples_oput.ml
Log Message:
www/ocaml-curl: fix build with recent ocaml
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 pkgsrc/www/ocaml-curl/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/www/ocaml-curl/patches/patch-examples_oput.ml
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/www/ocaml-curl/distinfo
diff -u pkgsrc/www/ocaml-curl/distinfo:1.2 pkgsrc/www/ocaml-curl/distinfo:1.3
--- pkgsrc/www/ocaml-curl/distinfo:1.2 Wed Nov 4 02:46:59 2015
+++ pkgsrc/www/ocaml-curl/distinfo Sun Aug 15 06:10:45 2021
@@ -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
Added files:
Index: pkgsrc/www/ocaml-curl/patches/patch-examples_oput.ml
diff -u /dev/null pkgsrc/www/ocaml-curl/patches/patch-examples_oput.ml:1.1
--- /dev/null Sun Aug 15 06:10:45 2021
+++ pkgsrc/www/ocaml-curl/patches/patch-examples_oput.ml Sun Aug 15 06:10:45 2021
@@ -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 _ =
Home |
Main Index |
Thread Index |
Old Index