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 mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 22A727FC53 for ; Wed, 30 Sep 2015 13:49:53 +0200 (CEST) IronPort-PHdr: 9a23:Drz4ARDfAWtpPatdP6/YUyQJP3N1i/DPJgcQr6AfoPdwSP7zp8bcNUDSrc9gkEXOFd2CrakU16yL4uu8AiQp2tWojjMrSNR0TRgLiMEbzUQLIfWuLgnFFsPsdDEwB89YVVVorDmROElRH9viNRWJ+iXhpQAbFhi3DwdpPOO9QteU1JTrkb3jsMGIKyxzxxODIppKZC2sqgvQssREyaBDEY0WjiXzn31TZu5NznlpL1/A1zz158O34YIxu38I46Fp34d6XK77Z6U1S6BDRHRjajhtpZ6jiR6WdhqL+HIdVC0yn1JnCgzBpEXhT5Pvuyr8nu5wnSaTOcmwS70oD2eM9aBuHTrhhyEaLHYF8GzNjM12g+oPpRuuoQFk65LUbZuTNfxxOKTHcoVJFiJ6Qs9NWnkZUcuHZIwVAr9EZL4Aog== Authentication-Results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=magnus@therning.org; spf=None smtp.mailfrom=magnus@therning.org; spf=None smtp.helo=postmaster@mail-wi0-f174.google.com Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of magnus@therning.org) identity=pra; client-ip=209.85.212.174; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="magnus@therning.org"; x-sender="magnus@therning.org"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of magnus@therning.org) identity=mailfrom; client-ip=209.85.212.174; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="magnus@therning.org"; x-sender="magnus@therning.org"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-wi0-f174.google.com) identity=helo; client-ip=209.85.212.174; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="magnus@therning.org"; x-sender="postmaster@mail-wi0-f174.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0CCAQCOywtWlK7UVdFEGoN4Ywa9e4F9hXcCgTU5EwEBAQEBAQEBEAEBAQEHCwsJHzCCHYIIAQEEEmcQCxgJJQ8FIAEFASITIogMBAEDBTuoVYEwPjGgMwEBAQEBAQEBAQEBAQEBAQEBARoKi2aEKhEBUQeDGIEUBZV4hRaHeAVRfkaDcIJwihZyFoVxNYEXIgGCURYHgVZvAYdegT8BAQE X-IPAS-Result: A0CCAQCOywtWlK7UVdFEGoN4Ywa9e4F9hXcCgTU5EwEBAQEBAQEBEAEBAQEHCwsJHzCCHYIIAQEEEmcQCxgJJQ8FIAEFASITIogMBAEDBTuoVYEwPjGgMwEBAQEBAQEBAQEBAQEBAQEBARoKi2aEKhEBUQeDGIEUBZV4hRaHeAVRfkaDcIJwihZyFoVxNYEXIgGCURYHgVZvAYdegT8BAQE X-IronPort-AV: E=Sophos;i="5.17,612,1437429600"; d="asc'?scan'208";a="180179692" Received: from mail-wi0-f174.google.com ([209.85.212.174]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/AES128-GCM-SHA256; 30 Sep 2015 13:49:52 +0200 Received: by wicgb1 with SMTP id gb1so191262354wic.1 for ; Wed, 30 Sep 2015 04:49:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=RVc4EP0pF3uXubYNcttC0bHgezQR6rOXK6/vi6TBXGc=; b=WNrI9Badi/vQzq8gl1fT2+56TXaZVih6vZyXTYGek2ElE1vtMaDgNykKO1ra92XkdZ 3cH592CjZks1vcWMnz5XChrqDtd2kf+TBxAjeD+WX0Bw9v9bQs9LWnbF5Ei6+w7m2+Ro poHA6ajvihPA+pwt27i7l1MN7Xrgl+UnUn8Ml5n2IesYR3YmI3/r9MikJBykXEz0l/P1 ySYXkF2W2sHCmCW33V3a5HcSijpeaduXT6sQbLAC8KfJSSY6+QN7w4jfFXZEIX4LYbQA Jq0KXQWZwY865HIb6G22P3mBlYUM7pH6LmPWFcx1W/Y/lVpx1TEYGEOIUaF8ri3spFe5 wNeQ== X-Gm-Message-State: ALoCoQmj8UuvMzmAGaIYSCKDOXA9KoVJpqSDisw6sXtFpvWOKvbMEud+SVwAFvJfrFuihI44IHGn X-Received: by 10.180.8.164 with SMTP id s4mr4530079wia.5.1443613791376; Wed, 30 Sep 2015 04:49:51 -0700 (PDT) Received: from sobel.cipherstone.com (pc-132.aktiviteten.se. [194.218.229.132]) by smtp.gmail.com with ESMTPSA id ew2sm297988wic.20.2015.09.30.04.49.49 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Sep 2015 04:49:49 -0700 (PDT) Date: Wed, 30 Sep 2015 13:49:47 +0200 From: Magnus Therning To: Sylvain Le Gall Cc: Gabriel Scherer , Anil Madhavapeddy , OCaml List Message-ID: <20150930114947.GA21728@sobel.cipherstone.com> References: <20150922211237.GA22711@tatooine> <20150923081916.GE22004@sobel.cipherstone.com> <20150923085405.GG22004@sobel.cipherstone.com> <20150923094414.GB25229@sobel.cipherstone.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="x+6KMIRAuhnl3hBn" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Subject: Re: [Caml-list] oasis building out-of-src and camlp4 --x+6KMIRAuhnl3hBn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 29, 2015 at 10:59:49PM +0000, Sylvain Le Gall wrote: > Please consider adding more comments to the following bug, which seems > close to what you are discussing: > > https://forge.ocamlcore.org/tracker/index.php?func=3Ddetail&aid=3D1473&gr= oup_id=3D54&atid=3D291 >=20 > I must admit that I totally miss the whole point of the discussion, > probably if you can make a summary of what you precisely need in the > BTS, I will be able to understand the problem better. Unfortunately I don't know enough about `oasis` to understand that bug report :( I'll try to explain how I'd like to use oasis/buildtool by looking how Haskell's Cabal lets me do it: - Configure without generating anything in the current dir: % runhaskell Setup.hs --builddir /tmp/my_build_dir - Build using the just generated configuration, again without putting anything in the current dir: % runhaskell Setup.hs --builddir /tmp/my_build_dir Comparing this to oasis/buildtool (assuming I've a pre-existing `setup.ml` generated with `oasis setup -setup-update dynamic` to minimize the amount of build-related stuff in the project): - Configure % ocaml setup.ml -configure This generates a file, `setup.data` in the current dir. I've found no way to have it generated in a dedicated build dir. - Build % ocaml setup.ml -build -build-dir /tmp/my_build_dir -no-links This builds in the mentioned dir, but it also generates a `setup.log` in the current dir! I thought that `-C` could offer a way to achieve this, but it doesn't: % mkdir /tmp/my_build_dir; cd /tmp/my_build_dir % ocaml /path/to/setup.ml -h Exception: Sys_error "_oasis: No such file or directory". File "/path/to/setup.ml", line 1: Error: Reference to undefined global `OASISDynRun' I'm not convinced `-C` *should* be the way to achieve what I want. Hopefully this makes it clearer what I mean. /M --=20 Magnus Therning OpenPGP: 0xAB4DFBA4=20 email: magnus@therning.org jabber: magnus@therning.org twitter: magthe http://therning.org/magnus Any sufficiently advanced technology is indistinguishable from a rigged demo. -- Andy Finkel --x+6KMIRAuhnl3hBn Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iEYEABECAAYFAlYLzFsACgkQiMWTaatN+6QnwQCgtBT1SIb5jjcSXwlZWQ0V3FsT D6QAn1koUZHg8fZXBy766ukwjWFvLuhz =mxX4 -----END PGP SIGNATURE----- --x+6KMIRAuhnl3hBn--