Received: by mail.netbsd.org (Postfix, from userid 605) id A2F7F84D39; Sun, 15 Aug 2021 06:10:47 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id DAF9C84D31 for ; Sun, 15 Aug 2021 06:10:46 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id mNTGVfIGXpHe for ; Sun, 15 Aug 2021 06:10:45 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id D17DC84CEA for ; Sun, 15 Aug 2021 06:10:45 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id C5492FA97; Sun, 15 Aug 2021 06:10:45 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_162900784512640" MIME-Version: 1.0 Date: Sun, 15 Aug 2021 06:10:45 +0000 From: "David A. Holland" Subject: CVS commit: pkgsrc/www/ocaml-curl To: pkgsrc-changes@NetBSD.org Reply-To: dholland@netbsd.org X-Mailer: log_accum Message-Id: <20210815061045.C5492FA97@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_162900784512640 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" 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. --_----------=_162900784512640 Content-Disposition: inline Content-Length: 1752 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii 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 _ = --_----------=_162900784512640--