Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK)) by mollari.NetBSD.org (Postfix) with ESMTPS id 96C507A27F for ; Wed, 4 Jan 2017 00:10:45 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id D69C6855D6; Wed, 4 Jan 2017 00:10:44 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 66E56855B5 for ; Wed, 4 Jan 2017 00:10:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id MiQPncCKDRow for ; Wed, 4 Jan 2017 00:10:43 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id D5EA5855A0 for ; Wed, 4 Jan 2017 00:10:43 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id D0A98FBA6; Wed, 4 Jan 2017 00:10:43 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1483488643285820" MIME-Version: 1.0 Date: Wed, 4 Jan 2017 00:10:43 +0000 From: "Jaap Boender" Subject: CVS commit: pkgsrc/devel/ocaml-ppx_optcomp To: pkgsrc-changes@NetBSD.org Reply-To: jaapb@netbsd.org X-Mailer: log_accum Message-Id: <20170104001043.D0A98FBA6@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk This is a multi-part message in MIME format. --_----------=_1483488643285820 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: jaapb Date: Wed Jan 4 00:10:43 UTC 2017 Modified Files: pkgsrc/devel/ocaml-ppx_optcomp: Makefile Added Files: pkgsrc/devel/ocaml-ppx_optcomp/patches: patch-src_META.ab patch-src_ppx_optcomp.ml Log Message: Added two uncommitted patches & increased revision. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 pkgsrc/devel/ocaml-ppx_optcomp/Makefile cvs rdiff -u -r0 -r1.1 \ pkgsrc/devel/ocaml-ppx_optcomp/patches/patch-src_META.ab \ pkgsrc/devel/ocaml-ppx_optcomp/patches/patch-src_ppx_optcomp.ml Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1483488643285820 Content-Disposition: inline Content-Length: 3690 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/devel/ocaml-ppx_optcomp/Makefile diff -u pkgsrc/devel/ocaml-ppx_optcomp/Makefile:1.5 pkgsrc/devel/ocaml-ppx_optcomp/Makefile:1.6 --- pkgsrc/devel/ocaml-ppx_optcomp/Makefile:1.5 Fri Dec 30 11:25:33 2016 +++ pkgsrc/devel/ocaml-ppx_optcomp/Makefile Wed Jan 4 00:10:43 2017 @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.5 2016/12/30 11:25:33 jaapb Exp $ +# $NetBSD: Makefile,v 1.6 2017/01/04 00:10:43 jaapb Exp $ VERSION= 114.08+89 +PKGREVISION= 1 GITHUB_PROJECT= ppx_optcomp GITHUB_TAG= 6f1ce80 DISTNAME= ${GITHUB_PROJECT}-${VERSION} Added files: Index: pkgsrc/devel/ocaml-ppx_optcomp/patches/patch-src_META.ab diff -u /dev/null pkgsrc/devel/ocaml-ppx_optcomp/patches/patch-src_META.ab:1.1 --- /dev/null Wed Jan 4 00:10:43 2017 +++ pkgsrc/devel/ocaml-ppx_optcomp/patches/patch-src_META.ab Wed Jan 4 00:10:43 2017 @@ -0,0 +1,17 @@ +$NetBSD: patch-src_META.ab,v 1.1 2017/01/04 00:10:43 jaapb Exp $ + +Add deriving bit - patch from 4.04 branch +--- src/META.ab.orig 2016-09-02 10:02:01.000000000 +0000 ++++ src/META.ab +@@ -6,3 +6,11 @@ archive(native) = "ppx_optcomp.cmxa" + plugin(byte ) = "ppx_optcomp.cma" + plugin(native) = "ppx_optcomp.cmxs" + exists_if = "ppx_optcomp.cma" ++ ++package "for_ppx_deriving" ( ++ description = "Don't use this directly" ++ error(ppx_driver) = "Cannot use ppx_optcomp.for_ppx_deriving when ppx_driver is set" ++ requires = "ppx_core.for_ppx_deriving ppx_deriving" ++ exists_if = "ppx_optcomp.cma" ++ ppxopt = "ppx_deriving,./ppx_optcomp.cma" ++) Index: pkgsrc/devel/ocaml-ppx_optcomp/patches/patch-src_ppx_optcomp.ml diff -u /dev/null pkgsrc/devel/ocaml-ppx_optcomp/patches/patch-src_ppx_optcomp.ml:1.1 --- /dev/null Wed Jan 4 00:10:43 2017 +++ pkgsrc/devel/ocaml-ppx_optcomp/patches/patch-src_ppx_optcomp.ml Wed Jan 4 00:10:43 2017 @@ -0,0 +1,41 @@ +$NetBSD: patch-src_ppx_optcomp.ml,v 1.1 2017/01/04 00:10:43 jaapb Exp $ + +Changes to do with OCaml 4.04 (from 4.04 branch) +--- src/ppx_optcomp.ml.orig 2016-09-02 10:02:01.000000000 +0000 ++++ src/ppx_optcomp.ml +@@ -617,7 +617,7 @@ end = struct + + let rec next_directive (lexer : lexer) lexbuf = + match lexer lexbuf with +- | SHARP -> parse_directive lexer lexbuf ++ | HASH -> parse_directive lexer lexbuf + | EOL -> next_directive lexer lexbuf + | EOF -> endif_missing lexbuf + | _ -> skip_line lexer lexbuf; next_directive lexer lexbuf +@@ -712,7 +712,7 @@ end = struct + (* Return the next token from a stream, interpreting directives. *) + let rec lexer_internal (lexer : lexer) lexbuf : Parser.token = + match lexer lexbuf with +- | SHARP when at_bol lexbuf -> ++ | HASH when at_bol lexbuf -> + interpret_directive lexer lexbuf (parse_directive lexer lexbuf); + lexer_internal lexer lexbuf + | EOF -> Stack.check_eof lexbuf; EOF +@@ -740,7 +740,7 @@ end = struct + (* Special case for ifndef + define. If we fallback to [interpret_if], it will + raise, because the variable is not defined. *) + match lexer lexbuf with +- | SHARP when at_bol lexbuf -> begin ++ | HASH when at_bol lexbuf -> begin + match (parse_directive lexer lexbuf).txt with + | Define (var', expr) when var'.txt = var.txt -> + Stack.enqueue dir; +@@ -847,7 +847,7 @@ end = struct + Location.init lexbuf fn; + let rec loop pos acc = + match Lexer.token lexbuf with +- | SHARP when at_bol lexbuf -> ++ | HASH when at_bol lexbuf -> + let acc = (pos, Lexing.lexeme_start lexbuf) :: acc in + interpret_directive Lexer.token lexbuf (parse_directive Lexer.token lexbuf); + loop (Lexing.lexeme_end lexbuf) acc --_----------=_1483488643285820--