From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id 0E2767EF18 for ; Wed, 14 Aug 2019 15:20:12 +0200 (CEST) Authentication-Results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=jocelyn.serot@uca.fr; spf=Pass smtp.mailfrom=jocelyn.serot@uca.fr; spf=None smtp.helo=postmaster@mta02.udamail.fr Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of jocelyn.serot@uca.fr) identity=pra; client-ip=193.49.117.21; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="jocelyn.serot@uca.fr"; x-sender="jocelyn.serot@uca.fr"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of jocelyn.serot@uca.fr designates 193.49.117.21 as permitted sender) identity=mailfrom; client-ip=193.49.117.21; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="jocelyn.serot@uca.fr"; x-sender="jocelyn.serot@uca.fr"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@mta02.udamail.fr) identity=helo; client-ip=193.49.117.21; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="jocelyn.serot@uca.fr"; x-sender="postmaster@mta02.udamail.fr"; x-conformance=sidf_compatible IronPort-PHdr: =?us-ascii?q?9a23=3AvJZS5hKyr448GhLnhNmcpTZWNBhigK39O0sv0rFi?= =?us-ascii?q?tYgRLv7xwZ3uMQTl6Ol3ixeRBMOHsqgC0rCG+P2/EUU7or+5+EgYd5JNUxJXwe?= =?us-ascii?q?43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRp?= =?us-ascii?q?OOv1BpTSj8Oq3Oyu5pHfeQpFiCejbb9oMRm6swbcusYWjIZgN6081gbHrnxUdu?= =?us-ascii?q?pM2GhmP0iTnxHy5sex+J5s7SFdsO8/+sBDTKv3Yb02QaRXAzo6PW814tbrtQTY?= =?us-ascii?q?QguU+nQcSGQWnQFWDAXD8Rr3Q43+sir+tup6xSmaIcj7Rq06VDi+86tmTgLjhS?= =?us-ascii?q?EaPDA77W7XkNR9gqJHrxy8pBJxzZDab46SOvdlZKzRYdYaSHBBXspNVSFMBJ63?= =?us-ascii?q?YYsVD+oGOOZVt43zp1wSohSgAQmtBOXvxSdViHjsx6061PghGhzB0QwiGNIBrG?= =?us-ascii?q?rbrNH1NacUS+y117fHzS/Eb/NKwjr99ZTHfQo7rfGCR7J9aMzcwlQsGQPdllic?= =?us-ascii?q?tIjoMj2P2ukCt2WX9fdsWf+thmI9tQ19vyCjy8Qvh4XTm44Yy1/J+T99zYorP9?= =?us-ascii?q?G0Vk52bcKiHZBNrS+VLZF2TdknQ2xwuCY11LkGuZmjcSgP1JQo3QLTZ+Kdf4iV?= =?us-ascii?q?/x3sTuORLi15hHJhYr6/iQyy/VChyu36SMa0zE5HojdBn9TCrHwA2Bje5tKaRv?= =?us-ascii?q?dg/EqtwyiD2x3L5uFBO080lK7bK5A7wr43k5oeqUbDHijql0roiK+XdkMk9vKz?= =?us-ascii?q?6+v5eLXmoYOcOpRpig7iKKsigMK/Af4gPggUQ2eb4fi81KHk/UDhXLpFlPg2kq?= =?us-ascii?q?3AvJDeJMQbvbK5DhRO0ocj7ha/Fy2p3M4ZnXkBNlJFeQiIg5LnO1HUc7jECqKU?= =?us-ascii?q?ilGo2BJixvTHOLLlA47RZizImbLlOLJ88FJ0yQwpzNkZ6YgCWZ8bJ/emeEj6ud?= =?us-ascii?q?jJCCgCshaz366zCtJ224cPXySUD7WeLIvPulbO6Ph5cLrEX5McpDuoc6tt3PXp?= =?us-ascii?q?l3JswQZBL5ns5oMebTWDJtojO1+QMSjxid5HH31Y5lNjHtyvs0WLVHtoX1j3X6?= =?us-ascii?q?844WhrWoe6BN+ZAJ2hibmI3SP9EIcEPjkXWGDJKm/hcsC/Y9lJbSuTJsF7lTlU?= =?us-ascii?q?B6WqQskvz0P3uQ=3D=3D?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0B8GwCFCVRdhxV1McFmHgEGBwaBZwKBF?= =?us-ascii?q?IFvA1AxKoQeiHyGD4V3lT2BZwkBAwEMGxQBAYdOGwcBBDUFDQEEAQEEAQEEAQM?= =?us-ascii?q?HARMBAQEKCwkIKYUuDII6IoMYHQEBOBhEAl8ugwcBgg4Bjn6ae3OBMoJ6AQEFR?= =?us-ascii?q?YIChGoJgTWLaIIWgREnH4cWg0MygiaMLIgZiF6NQW0HAoEzbIZkjWqDHYoxim+?= =?us-ascii?q?iAkqDNoEvOYF4dHYBgkEJNYIEGoUWgmKGNT4BMY9OAQE?= X-IPAS-Result: =?us-ascii?q?A0B8GwCFCVRdhxV1McFmHgEGBwaBZwKBFIFvA1AxKoQeiHy?= =?us-ascii?q?GD4V3lT2BZwkBAwEMGxQBAYdOGwcBBDUFDQEEAQEEAQEEAQMHARMBAQEKCwkIK?= =?us-ascii?q?YUuDII6IoMYHQEBOBhEAl8ugwcBgg4Bjn6ae3OBMoJ6AQEFRYIChGoJgTWLaII?= =?us-ascii?q?WgREnH4cWg0MygiaMLIgZiF6NQW0HAoEzbIZkjWqDHYoxim+iAkqDNoEvOYF4d?= =?us-ascii?q?HYBgkEJNYIEGoUWgmKGNT4BMY9OAQE?= X-IronPort-AV: E=Sophos;i="5.64,385,1559512800"; d="scan'208,217";a="316380485" X-MGA-submission: =?us-ascii?q?MDHrezRH0mtSwJGnE4A/qcrp+slOrXcN9Gs94Q?= =?us-ascii?q?gaPlZkqDynQDGluimObaUQvGzmmOKdsS6TTj+LWIskIYZlFoCxxK6c/I?= =?us-ascii?q?/zKG0Rb+CmAlvfK5Hegi+QJLDyJCf29ihDHIU3KjYDx4uZsW6iwyZnik?= =?us-ascii?q?cDem67SibT9KwoKuqzH9Ky2A=3D=3D?= Received: from mta02.udamail.fr ([193.49.117.21]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Aug 2019 15:20:11 +0200 Received: from mta02.udamail.fr (localhost.localdomain [127.0.0.1]) by mta02.udamail.fr (Postfix) with ESMTPS id 467qvG4fBXzBs1d for ; Wed, 14 Aug 2019 15:20:10 +0200 (CEST) Received: from localhost (localhost.localdomain [127.0.0.1]) by mta02.udamail.fr (Postfix) with ESMTP id 467qvG412SzBs1f for ; Wed, 14 Aug 2019 15:20:10 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.10.3 mta02.udamail.fr 467qvG412SzBs1f DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uca.fr; s=72FD7F0C-5358-11E8-A3B7-17E0B3BFED1B; t=1565788810; bh=xNEqulZyC48J0fX1NnU0fTXm8woQ33+RTg1iDkicPns=; h=From:Message-Id:Date:To:Mime-Version; b=V5TKCjo1G3bcmocblAgUrqgGLEZmMihzlEYhOy2Deu1u8AOs4TjYmx1G8lv1N8VyX k4OARXLLsFK+Ka4AT2Sq731ipt0sJ7n+mfmoFEY+nrYf1+BNOnIzGxC2J1GrCZ9bVU N6G0Ax1P87ukDRzI7cPAHLxNxEJn8RcgBhDO6iJk= X-Virus-Scanned: amavisd-new at mta02.udamail.fr Received: from mta02.udamail.fr ([127.0.0.1]) by localhost (mta02.udamail.fr [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id vjTjUKqVCT2g for ; Wed, 14 Aug 2019 15:20:10 +0200 (CEST) Received: from proxy01.udamail.fr (unknown [193.49.117.26]) by mta02.udamail.fr (Postfix) with ESMTPS id 467qvG3HCFzBs1d for ; Wed, 14 Aug 2019 15:20:10 +0200 (CEST) Received: from localhost (localhost.localdomain [127.0.0.1]) by proxy01.udamail.fr (Postfix) with ESMTP id 467qvG21qYzBnBY for ; Wed, 14 Aug 2019 15:20:10 +0200 (CEST) Received: from proxy01.udamail.fr ([127.0.0.1]) by localhost (proxy01.udamail.fr [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id bC5tSUYsCCdq for ; Wed, 14 Aug 2019 15:20:08 +0200 (CEST) Received: from localhost (localhost.localdomain [127.0.0.1]) by proxy01.udamail.fr (Postfix) with ESMTP id 467qvD619MzBnBw for ; Wed, 14 Aug 2019 15:20:08 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.10.3 proxy01.udamail.fr 467qvD619MzBnBw DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uca.fr; s=72FD7F0C-5358-11E8-A3B7-17E0B3BFED1B; t=1565788808; bh=xNEqulZyC48J0fX1NnU0fTXm8woQ33+RTg1iDkicPns=; h=From:Message-Id:Date:To:Mime-Version; b=BUYDMl7vr2wgJn047bHTXxJgFqz7NACiyLB4vgIgjg0gY+hJmKpLaj3s7Hbplp0IX sKGux/78L1372BNgXymYwoO1klt5E1ynR+/spZfENzNdNY0DNOSdt12IM7Vr/+MHVu YxiOXAto0MP3DzpTe/ux8hJ5/e7Mm6EuXWUNFBaw= X-Virus-Scanned: amavisd-new at proxy01.udamail.fr Received: from proxy01.udamail.fr ([127.0.0.1]) by localhost (proxy01.udamail.fr [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id PyWij1fI191G for ; Wed, 14 Aug 2019 15:20:08 +0200 (CEST) Received: from [192.168.0.42] (lav63-2-88-164-92-250.fbx.proxad.net [88.164.92.250]) by proxy01.udamail.fr (Postfix) with ESMTPSA id 467qvD2YmBzBnBY for ; Wed, 14 Aug 2019 15:20:08 +0200 (CEST) From: =?iso-8859-1?Q?Jocelyn_S=E9rot?= Content-Type: multipart/alternative; boundary="Apple-Mail=_52BFB936-634E-49C5-BECA-A613BF8B1AF3" Message-Id: <8D32A371-FD47-434F-928A-C07D002BB712@uca.fr> Date: Wed, 14 Aug 2019 15:20:11 +0200 To: Caml Mailinglist Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) X-Mailer: Apple Mail (2.1878.6) Subject: [Caml-list] A (silly ?) question about opam and ocamlfind --Apple-Mail=_52BFB936-634E-49C5-BECA-A613BF8B1AF3 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Dear Camlers, I=E2=80=99ve been fighting for one entire day with a problem without succes= s and the more i dig, the more confused i am :( Suppose i define a small opam package - let=E2=80=99s call it =C2=AB dummy = =C2=BB : opam-version: "2.0" name: "dummy" version: "0.0" synopsis: "A dummy OPAM package" maintainer: "JS" authors: "JS" license: "MIT" depends: [ "ocaml" "ocamlfind" ] build: [ [make] ] where [make] simply builds the library files [mylib.cma] and [mylib.cmxa] (= by directly calling ocamlc/opt or using dune - this does not matter here). What is the correct way to make this package available to other programs : [opam pin add .]=20 or=20 [opam install .] ? I=E2=80=99ve tried both solutions but systematically get : ocamlfind ocamlc -package dummy -linkpkg -o main main.ml ocamlfind: Package `dummy' not found when trying to compile [main.ml], where this file contains, for example : = =C2=AB let _ =3D Mylib.dump () =C2=BB (and where [dump] is a function defin= ed in mylib.ml =C2=BB=20 When simply pinning the package, [opam info dummy] gives : <><> dummy: information on all versions <><><><><><><><><><><><><><><><><><= > =F0=9F=90=AB=20 name dummy all-versions 0.0 <><> Version-specific details <><><><><><><><><><><><><><><><><><><><><><><= > =F0=9F=90=AB=20 version 0.0 pin file:///Users/jserot/Dev/ml/opam/simple/build/raw url.src: "file:///Users/jserot/Dev/ml/opam/simple/build/raw" authors: "JS" maintainer: "JS" license: "MIT" depends: "ocaml" "ocamlfind" synopsis A dummy OPAM package which tends does not show any installed version of the package (and hence c= ould explain why ocamlfind does not find it ?) After installing the package ([opam install .]), [opam info dummy] gives : $ opam info dummy <><> dummy: information on all versions <><><><><><><><><><><><><><><><><><= > =F0=9F=90=AB=20 name dummy all-installed-versions 0.0 [4.06.0] all-versions 0.0 <><> Version-specific details <><><><><><><><><><><><><><><><><><><><><><><= > =F0=9F=90=AB=20 version 0.0 pin file:///Users/jserot/Dev/ml/opam/simple/build/raw url.src: "file:///Users/jserot/Dev/ml/opam/simple/build/raw" authors: "JS" maintainer: "JS" license: "MIT" depends: "ocaml" "ocamlfind" synopsis A dummy OPAM package $=20 which now seems to indicates that the package is =C2=AB installed =C2=BB (t= hough i do not fully understand the distinction between the former case..). But i still get the message=20 ocamlfind ocamlc -package dummy -linkpkg -o main main.ml ocamlfind: Package `dummy' not found There must be sth i=E2=80=99m doing wrong (or have not understood in the wa= y opam works).. Any help appreciated. Jocelyn --Apple-Mail=_52BFB936-634E-49C5-BECA-A613BF8B1AF3 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Dear Camlers,

<= div>I=E2=80=99ve been fighting for one entire day with a problem without su= ccess and the more i dig, the more confused i am :(

Suppose i define a small opam package - let=E2=80=99s call it =C2=AB dumm= y =C2=BB :

opam-version: "2.0"
name: "dummy"
version: "0.0"
synopsis: "A dummy OPAM p= ackage"
maintainer: "JS"
authors: "JS"
licens= e: "MIT"
depends: [ "ocaml" "ocamlfind" ]
build: [
  [make]
]

where [make]= simply builds the library files [mylib.cma] and [mylib.cmxa] (by directly = calling ocamlc/opt or using dune - this does not matter here).
What is the correct way to make this package available to othe= r programs :

[opam pin add .] 

or 

[opam install .]

?

I=E2=80=99ve tried both s= olutions but systematically get :

ocamlfind ocamlc -package= dummy -linkpkg -o main main.ml
ocamlfind: Package `dummy' not found

when trying to compile [main.ml], where this = file contains, for example : =C2=AB let _ =3D Mylib.dump () = =C2=BB (and where [dump] is a function defined in mylib.ml =C2=BB = ;

Wh= en simply pinning the package, [opam info dummy] gives :

<&= gt;<> dummy: information on all versio= ns <><><><><><><><>&= lt;><><><><><><><><><= >  =F0=9F=90=AB 
name  = ;       dummy
all-versions 0.0

&l= t;><> Version-specific details <><><><><><><><><>= <><><><><><><><><><= ;><><><><>  = =F0=9F=90=AB 
version     0.0
authors:&nb= sp;   "JS"
maintainer: "JS"
license:    "M= IT"
= depends:    "ocaml" "ocamlf= ind"
synopsis    A dummy OPAM p= ackage

which tends does not show any installed ver= sion of the package (and hence could explain why ocamlfind does not find it= ?)

After installing the package ([opam install .]= ), [opam info dummy] gives :

$ opam info dummy
<><> dummy: information on all versions <><><><>= ;<><><><><><><><><>&l= t;><><><><> = =F0=9F=90=AB 
name             &nbs= p;     dummy
all-installed-versions 0.0all-versions           0.0

<><>= Version-specific details <><= ;><><><><><><><><><&g= t;<><><><><><><><><>&= lt;><><>  =F0=9F=90=AB 
vers= ion     0.0
license:    "MIT"
=

which now seems to indicates that the package is =C2=AB=  installed =C2=BB (though i do not fully understand the distincti= on between the former case..).
But i still get the message <= /div>

ocamlfi= nd ocamlc -package dummy -linkpkg -o main main.ml
ocamlfind: Package `dummy' no= t found

There must be sth i=E2=80=99m doi= ng wrong (or have not understood in the way opam works)..
Any help appreciated.
Jocelyn





= --Apple-Mail=_52BFB936-634E-49C5-BECA-A613BF8B1AF3--