From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by sympa.inria.fr (Postfix) with ESMTPS id E35B67EE09 for ; Fri, 26 Oct 2012 19:57:06 +0200 (CEST) Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of darioteixeira@yahoo.com) identity=pra; client-ip=98.139.91.99; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="darioteixeira@yahoo.com"; x-sender="darioteixeira@yahoo.com"; x-conformance=sidf_compatible Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of darioteixeira@yahoo.com) identity=mailfrom; client-ip=98.139.91.99; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="darioteixeira@yahoo.com"; x-sender="darioteixeira@yahoo.com"; x-conformance=sidf_compatible Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@nm29.bullet.mail.sp2.yahoo.com) identity=helo; client-ip=98.139.91.99; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="darioteixeira@yahoo.com"; x-sender="postmaster@nm29.bullet.mail.sp2.yahoo.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjQDAOPNilBii1tjXWdsb2JhbAA3DbArkhcYGAoKBxMGJIIZBQEBBAELIBUBAhUhAQEDCwYFRi8BDgEEAhIGLodYAQECCQYEqnQJgm2EegEjAwEjA4lXAQYKAQGLaoZpA4hZjSGFXy1QiBBsg24 X-IronPort-AV: E=Sophos;i="4.80,654,1344204000"; d="scan'208";a="160547036" Received: from nm29.bullet.mail.sp2.yahoo.com ([98.139.91.99]) by mail4-smtp-sop.national.inria.fr with ESMTP; 26 Oct 2012 19:57:05 +0200 Received: from [98.139.91.70] by nm29.bullet.mail.sp2.yahoo.com with NNFMP; 26 Oct 2012 17:56:59 -0000 Received: from [98.139.91.25] by tm10.bullet.mail.sp2.yahoo.com with NNFMP; 26 Oct 2012 17:56:59 -0000 Received: from [127.0.0.1] by omp1025.mail.sp2.yahoo.com with NNFMP; 26 Oct 2012 17:56:59 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 701889.69912.bm@omp1025.mail.sp2.yahoo.com Received: (qmail 45149 invoked by uid 60001); 26 Oct 2012 17:56:59 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1351274219; bh=e6FoQLa2DG2LENAico+9tB54EB0LO64CxS7P2rnlu5s=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding; b=EHTQq8bcNTQs7+L0bZuQWdNEuToL9yoSkf7+ubtL+lNWRpqYg4ha12yr2BJGMfg1ZRMibkpeB66k1xf3ZZZtZO8A+cLNmO2RCr2fmsorFq3F3AFHFqdsCkeHdlXHHWK/QXtgCfhz/BpExVblZOwwINH+xBkZkzuKF2krGZLFPhg= DomainKey-Signature:a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding; b=WQt1ii5x2YnBeu0HncXtN0rFmh1mN1CRaGgkVJ0ZT8Yw+n3plC6hgSSP7VRpNtwRu/FbzZlAXvyNNoX79+aDxbHJoXerA8+JrfUs9w1MLUYQ2AcsTnZLrK0ocHCKwBXtcMZ3+fEafPN0oihfybNvGSed8yExC1+BT4HSivH2m/I=; X-YMail-OSG: Lr20K0QVM1nmu6N0ylK2wbEQmgd4qzyG8h3vg5tQK8BIkBX ieRJvvzVu5nwdjyXxUa8F.LUlGHc9LRm5z4h1dvT1Ywex3FsVY3svJFIluqa 9x3nN0mlH6X.wIDx4Rx0vvZ1EQOwlGx6jvovFMGffM8XOVZDzisJIaKTjMoX Rr6SByjHzJFuNU90MCAbxXolKdppt44zhQZ2HB9lqIRibIBc77c5qb.iwI7m YmETMhVP3WssNG0DOcHSJA11gIZVrL3pl33euxACJ50tV8IOeX_nI5au1RSs 65H3v7wz3rrtgD8q0SXPcYnsaHxvXH3hOu9njGERqU7OeNqg38wW6ivlRYNi 38BUUh9bx53VrDum2IyYiMEjjCj.urkZ_Y1XtUBGylV2GTeprPmoxIBta_B. cOw6ZJ.5sqE1NDEYg2gzrbbxdFaxTYfsgbWXVPur6zrkjA2NwVcqNt9QkiEr UdsnDQR4juc2kz2TBjG0uFb3wc6HmmfkW2j4HxtuNmSPs69VyqCneYA-- Received: from [195.23.39.249] by web111501.mail.gq1.yahoo.com via HTTP; Fri, 26 Oct 2012 10:56:59 PDT X-Rocket-MIMEInfo: 001.001,SGksCgoKVGhhbmtzIGZvciB0aGUgc3VnZ2VzdGlvbnMsIEFuaWwhCgo.IEhvd2V2ZXIsIHlvdXIgdXNlIGNhc2Ugc2VlbXMgYSBsaXR0bGUgZGlmZmVyZW50LCBhcyBJIHByZXN1bWUgdGhlCj4gZXh0ZXJuYWwgaW50ZXJmYWNlIG9mIHBnb2NhbWwgZG9lc24ndCB2YXJ5IGJ5IHlvdXIgY2hvaWNlIG9mIEV4dGxpYgo.IG9yIEJhdHRlcmllcz8KCkluZGVlZC4KCj4gRGVzcGl0ZSB0aGlzLCBpdCBtaWdodCBiZSBlYXNpZXIganVzdCB0byBkZWZpbmUgYSAicGdvY2FtbC5iYXR0ZXJpZXMiCj4gYW5kICJwZ29jYW0BMAEBAQE- X-Mailer: YahooMailWebService/0.8.123.450 References: <1351173429.15638.YahooMailNeo@web111503.mail.gq1.yahoo.com> <58E915E9-0BD4-4F0B-9581-B446C93A4EB8@recoil.org> Message-ID: <1351274219.20181.YahooMailNeo@web111501.mail.gq1.yahoo.com> Date: Fri, 26 Oct 2012 10:56:59 -0700 (PDT) From: Dario Teixeira Reply-To: Dario Teixeira To: Anil Madhavapeddy Cc: OCaml Mailing List , pgocaml-general MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [Caml-list] Conditional BuildDepends in OASIS Hi, Thanks for the suggestions, Anil! > However, your use case seems a little different, as I presume the > external interface of pgocaml doesn't vary by your choice of Extlib > or Batteries? Indeed. > Despite this, it might be easier just to define a "pgocaml.batteries" > and "pgocaml.extlib" and leave the choice with the user as to which > one they would like to select.=A0 You can make the dependency optional > at compile time so the package doesn't generated; e.g. >=20 > Library cohttp_lwt_unix > =A0 Build$: flag(lwt) > =A0 Install$: flag(lwt) > =A0 Path: lwt > =A0 Findlibname: lwt > =A0 FindlibParent: cohttp > =A0 BuildDepends: lwt.unix, uri, cohttp, lwt.ssl, lwt.syntax > =A0 Modules: Cohttp_lwt_unix, (etc...) That would be a satisfactory solution.=A0 I did run into a different proble= m, though. I told OASIS that "pgocaml.batteries" and "pgocaml.extlib" should have "pgo= caml" as their findlib parent (fragment below).=A0 Unfortunately, OASIS complains= that library "pgocaml" does not exist.=A0 How would I tell OASIS that "pgocaml" = is a dummy library? Flag "batteries" =A0 Description: Use Batteries =A0 Default: true Library "pgocaml_batteries" =A0 Build$:=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 flag(batteries) =A0 Install$:=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 flag(batteries) =A0 Path:=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 src =A0 Modules:=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 PGOCaml =A0 BuildDepends:=A0=A0=A0=A0=A0=A0=A0=A0 calendar, batteries =A0 ByteOpt+:=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 -ppopt -DUSE_BATTERIES =A0 NativeOpt+:=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 -ppopt -DUSE_BATTERIES =A0 FindlibParent:=A0=A0=A0=A0=A0=A0=A0 pgocaml =A0 Findlibname:=A0=A0=A0=A0=A0=A0=A0=A0=A0 batteries Thanks again for your attention! Cheers, Dario