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 4289A7EEFA for ; Thu, 12 Nov 2015 11:39:18 +0100 (CET) IronPort-PHdr: 9a23:afukEx9mkmvRHv9uRHKM819IXTAuvvDOBiVQ1KB92+wcTK2v8tzYMVDF4r011RmSDdids6oMotGVmp6jcFRI2YyGvnEGfc4EfD4+ouJSoTYdBtWYA1bwNv/gYn9yNs1DUFh44yPzahANS47AblHf6ke/8SQVUk2mc1Ele6KtQsb7tIee6aObw9XreQJGhT6wM/tZDS6dikHvjPQQmpZoMa0ryxHE8TNicuVSwn50dxrIx06vru/5xpNo8jxRtvQ97IYAFPyiJ+VrBYBfWRsvOXo06cmjjhLDQBGC/DNIXWwciBtFB07e5xH3RJrrmiT/v+t5niKdOJulY6ozXGGO5qFqRRvforMBJTo4uDXbg8pxgaYdqg+soQ57wqbZepucKPtnY66bdtNMFjkJZdpYSyEUWtD0VIAIFedUeL8A94Q= Authentication-Results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=daniel.buenzli@erratique.ch; spf=None smtp.mailfrom=daniel.buenzli@erratique.ch; spf=None smtp.helo=postmaster@smtp.webfaction.com Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of daniel.buenzli@erratique.ch) identity=pra; client-ip=74.55.86.74; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="daniel.buenzli@erratique.ch"; x-sender="daniel.buenzli@erratique.ch"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of daniel.buenzli@erratique.ch) identity=mailfrom; client-ip=74.55.86.74; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="daniel.buenzli@erratique.ch"; x-sender="daniel.buenzli@erratique.ch"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@smtp.webfaction.com) identity=helo; client-ip=74.55.86.74; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="daniel.buenzli@erratique.ch"; x-sender="postmaster@smtp.webfaction.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0BjAACBa0RWnEpWN0pewR+EDYYQAoF1EAEBAQEBAQEBEAEBAQEBCAsJCSEugi2CCAEBBCNWEAsaAiYCAkcQBhuIJgSzEJBtAQoBAQEfgQGKUYRZgxwvgRUFlkiPAocyEI82g3I4glKBXYYvAQEB X-IPAS-Result: A0BjAACBa0RWnEpWN0pewR+EDYYQAoF1EAEBAQEBAQEBEAEBAQEBCAsJCSEugi2CCAEBBCNWEAsaAiYCAkcQBhuIJgSzEJBtAQoBAQEfgQGKUYRZgxwvgRUFlkiPAocyEI82g3I4glKBXYYvAQEB X-IronPort-AV: E=Sophos;i="5.20,281,1444687200"; d="scan'208";a="187188665" Received: from mail6.webfaction.com (HELO smtp.webfaction.com) ([74.55.86.74]) by mail2-smtp-roc.national.inria.fr with ESMTP; 12 Nov 2015 11:39:17 +0100 Received: from [192.168.0.2] (cpc16-cmbg14-2-0-cust300.5-4.cable.virginm.net [86.6.157.45]) by smtp.webfaction.com (Postfix) with ESMTP id 83214209CAB3; Thu, 12 Nov 2015 10:39:16 +0000 (UTC) Date: Thu, 12 Nov 2015 10:39:15 +0000 From: =?utf-8?Q?Daniel_B=C3=BCnzli?= To: Gabriel Scherer Cc: OCaml List Message-ID: <7B4D36ABD3EA4437828810749824D6B1@erratique.ch> In-Reply-To: References: X-Mailer: sparrow 1.6.4 (build 1178) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: Re: [Caml-list] ocamlfind path to META file ? Le jeudi, 12 novembre 2015 =C3=A0 10:27, Gabriel Scherer a =C3=A9crit : > `ocamlfind install` requires that either the META file is installed in > the package directory (so your command will work), or the -metadir > option is passed and the META file is installed in some META-only > directory that is global to the ocamlfind configuration. You can query > this directory with $(ocamlfind printconf metadir) (which returns an > empty line if no such directory is used). >=20=20 > This means that the following logic should always find your package file: > - if $(ocamlfind printconf metadir) is not empty, look at > $(ocamlfind printconf metadir)/META.$PKG > - otherwise look at > $(ocamlfind query $PKG)/META Thanks. Though it would be nice to have a query flag that implements the lo= gic, rather than each of us reimplementing it.=20=20 Best,=20=20 Daniel