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=0.6 required=5.0 tests=AWL,RCVD_IN_SORBS_WEB autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 73F62BC50; Mon, 2 Oct 2006 12:33:18 +0200 (CEST) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.188]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id k92AXHva021858; Mon, 2 Oct 2006 12:33:18 +0200 Received: from [84.58.138.78] (helo=gate.lan.gerd-stolpmann.de) by mrelayeu.kundenserver.de (node=mrelayeu3) with ESMTP (Nemesis), id 0MKxQS-1GUL6n1EZl-0005dQ; Mon, 02 Oct 2006 12:33:13 +0200 Received: from flakew.lan.gerd-stolpmann.de (fw.lan.gerd-stolpmann.de [192.168.1.1]) by gate.lan.gerd-stolpmann.de (Postfix) with ESMTP id 09443C0AD; Mon, 2 Oct 2006 12:33:13 +0200 (CEST) Subject: Re: [Caml-list] findlib help: how to specify dependencies against non-findlib packages ? From: Gerd Stolpmann To: Guillaume Rousse Cc: caml-list@inria.fr In-Reply-To: <4520DABC.8080409@inria.fr> References: <4520DABC.8080409@inria.fr> Content-Type: multipart/mixed; boundary="=-O38KklCgt9U+ZbglYrqz" Date: Mon, 02 Oct 2006 12:33:11 +0200 Message-Id: <1159785192.13405.14.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-Provags-ID: kundenserver.de abuse@kundenserver.de login:a6865a839c0178d9aa0ce41878507ea2 X-Miltered: at discorde with ID 4520EAED.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; findlib:01 dependencies:01 gerd:01 stolpmann:01 guillaume:01 camlimages:01 findlib:01 camlimages:01 lablgtk:01 lablgtk:01 linkopts:01 flags:01 compilation:01 distros:01 unify:01 X-Attachments: name="META" name="META" --=-O38KklCgt9U+ZbglYrqz Content-Type: text/plain Content-Transfer-Encoding: 7bit Am Montag, den 02.10.2006, 11:24 +0200 schrieb Guillaume Rousse: > I'm trying to add findlibsupport for camlimages. > > It has a dependency on graphics, which is easily handled by adding a > require variable in META file, as graphics provides findlib support. > > However, camlimages can also get compiled with either lablgtk or > lablgtk2 support (not both of them, as they have conflicting symbols), > but none of those packages have findlib support. It means I can't > ressort to smart dependency computation. I may eventually use the > linkopts variable to add explicit linking flags (such as -I > place/to/lablgtk2 lablgtk.cma), but this seem to be only possible for > linking, not for compiling, whereas I also need to pass -I > place/to/lablgtk2 option during compilation. > > So, is this just not possible at all ? Of course, it is possible: Just write your own META file for lablgtk/lablgtk2 - this is what distros like GODI and Debian do. The META file need not to be in the same directory as the library if you add a line directory="/path/where/the/library/really/is" to the META file, so you can easily unify lablgtk's installation scheme with the findlib requirements. For your convenience, I attached the (generated) META file GODI uses for lablgtk and lablgtk2. Gerd -- ------------------------------------------------------------ Gerd Stolpmann * Viktoriastr. 45 * 64293 Darmstadt * Germany gerd@gerd-stolpmann.de http://www.gerd-stolpmann.de Phone: +49-6151-153855 Fax: +49-6151-997714 ------------------------------------------------------------ --=-O38KklCgt9U+ZbglYrqz Content-Description: META for lablgtk Content-Disposition: attachment; filename=META Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit description = "Bindings for gtk" requires="" requires(lablGL)="lablGL" version="1.2.6" archive(byte)="lablgtk.cma gtkInit.cmo" archive(native)="lablgtk.cmxa gtkInit.cmx" archive(byte,lablGL)="lablgtk.cma lablgtkgl.cma gtkInit.cmo" archive(native,lablGL)="lablgtk.cmxa lablgtkgl.cmxa gtkInit.cmx" --=-O38KklCgt9U+ZbglYrqz Content-Description: META for lablgtk2 Content-Disposition: attachment; filename=META Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit description = "Bindings for gtk2" requires="" requires(lablGL)="lablGL" version="20051028" archive(byte)="lablgtk.cma lablglade.cma lablrsvg.cma lablgnomecanvas.cma lablgnomeui.cma lablpanel.cma gtkInit.cmo" archive(native)="lablgtk.cmxa lablglade.cmxa lablrsvg.cmxa lablgnomecanvas.cmxa lablgnomeui.cmxa lablpanel.cmxa gtkInit.cmx" archive(byte,lablGL)="lablgtk.cma lablgtkgl.cma lablglade.cma lablrsvg.cma lablgnomecanvas.cma lablgnomeui.cma lablpanel.cma gtkInit.cmo" archive(native,lablGL)="lablgtk.cmxa lablgtkgl.cmxa lablglade.cmxa lablrsvg.cmxa lablgnomecanvas.cmxa lablgnomeui.cmxa lablpanel.cmxa gtkInit.cmx" archive(byte,mt) += "gtkThread.cmo" archive(native,mt) += "gtkThread.cmx" archive(byte,lablGL,mt) += "gtkThread.cmo" archive(native,lablGL,mt) += "gtkThread.cmx" archive(toploop,mt) += "gtkThInit.cmo" --=-O38KklCgt9U+ZbglYrqz--