From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.9 required=5.0 tests=AWL,DNS_FROM_RFC_POST, SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id 96DD4BBAF for ; Mon, 1 Jun 2009 16:14:43 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgUEAIB/I0rRVdqrkGdsb2JhbACCf5RSPwEBAQEJCQwHEQOkBIEUjiEBAwIEhAgF X-IronPort-AV: E=Sophos;i="4.41,284,1241388000"; d="scan'208";a="28643074" Received: from mail-bw0-f171.google.com ([209.85.218.171]) by mail3-smtp-sop.national.inria.fr with ESMTP; 01 Jun 2009 16:14:43 +0200 Received: by bwz19 with SMTP id 19so7744028bwz.9 for ; Mon, 01 Jun 2009 07:14:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=GKzbP1Qt7rJevGCP5gGcQBe9kSvrmpZ4QvUu/ZywuKQ=; b=Ne0YOMMzCN1DeIOfjLhQPi5B5jfpfxhSWrOQ6pVdT4kUA0sFtH4FWMDOi73lKvC701 S7KbTFAD1GJfGyMgtk8ul0rjou9ZqTcWSm64y2GQHfjt1ugZyF4bQ4ktLDiWcIimyJNX MmFfCjIfzDKBYRHlsdJcOcwGERWLKfY3p4nd0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=pdCn7m7v8E9876YkQVAaMOylSCOMRtxMIwgkCQ3hE2rGi3oum+PH/AkAKieVWpNoI2 q3/mjtjeHgC+JyQVHgd5bG3wpBykRg0Ndc1SCJq3Arrp7sp4iK2TCmAyiAlbJxB+5k8A VBvzvD6xtwFib5IH4u4sTiEaAoAiSpdQFhhq4= MIME-Version: 1.0 Received: by 10.204.60.72 with SMTP id o8mr5749565bkh.210.1243865682135; Mon, 01 Jun 2009 07:14:42 -0700 (PDT) Date: Mon, 1 Jun 2009 16:14:42 +0200 Message-ID: <527cf6bc0906010714t6229d6ccn5ad1ccfeed4554f9@mail.gmail.com> Subject: Camlp4 {< ... >} bug #4673 in 3.11-rc1 : extension workaround From: blue storm To: "caml-list@inria.fr" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; camlp:01 bug:01 camlp:01 bug:01 complained:01 recompile:01 ocaml:01 syntax:01 bugfix:01 storm:98 diff:02 caml:02 modifying:02 workaround:03 workaround:03 I was recently alerted of a camlp4 bug in 3.11 : http://caml.inria.fr/mantis/view.php?id=4673 I've written a fix [1] (wich I will submit to mantis as soon as I understand how to), but the reporter complained that it was difficult for him to recompile the whole ocaml distribution (Windows syndrome). Thus, I produced a workaround syntax extension [2] that fixes the bug without modifying the distribution : just add the extension at preprocess-time and it should go fine. In case someone is interested, I'm posting it on the list. Beware, this is three-hour-old code that wasn't properly tested. Files and html pretty-print for online reading at http://bluestorm.info/camlp4/objcopy-fix/list.php [1] http://bluestorm.info/camlp4/objcopy-fix/Camlp4OCamlRevisedParser.ml.diff [2] http://bluestorm.info/camlp4/objcopy-fix/pa_objcopy_bugfix.ml