From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id q0DDIUHC023172 for ; Fri, 13 Jan 2012 14:18:31 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuYDAAEuEE+K54gDgWdsb2JhbABCrRgiAQEWJiWBcgEBBTIBRQEQCyEWDwkDAgECAUUGDQEHAod+txKDfYggBJUShVGMbw X-IronPort-AV: E=Sophos;i="4.71,504,1320620400"; d="scan'208";a="139146305" Received: from rouge.crans.org ([138.231.136.3]) by mail1-smtp-roc.national.inria.fr with ESMTP/TLS/ADH-AES256-SHA; 13 Jan 2012 14:18:30 +0100 Received: from localhost (localhost.crans.org [127.0.0.1]) by rouge.crans.org (Postfix) with ESMTP id 8449882ED; Fri, 13 Jan 2012 14:18:29 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at crans.org Received: from rouge.crans.org ([10.231.136.3]) by localhost (rouge.crans.org [10.231.136.3]) (amavisd-new, port 10024) with LMTP id y+JvpfRXy8sJ; Fri, 13 Jan 2012 14:18:29 +0100 (CET) Received: from [152.81.3.42] (wencory.loria.fr [152.81.3.42]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by rouge.crans.org (Postfix) with ESMTPSA id 625E782E7; Fri, 13 Jan 2012 14:18:29 +0100 (CET) Message-ID: <4F102F24.9050000@glondu.net> Date: Fri, 13 Jan 2012 14:18:28 +0100 From: =?ISO-8859-1?Q?St=E9phane_Glondu?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111114 Icedove/3.1.16 MIME-Version: 1.0 To: Philippe Veber CC: caml users References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Subject: Re: [Caml-list] Compiling the ocaml distribution under multiarched Debian/Ubuntu Le 13/01/2012 12:59, Philippe Veber a écrit : > Debian and Ubuntu have not so recently switched to multiarch binaries > (including libs, see http://wiki.debian.org/Multiarch/Implementation). > This is an important change for ocaml C bindings since the libraries are > now to be found in /usr/lib/ instead of /usr/lib. I > was just bitten by this, when realizing that the ocaml configure script > couldn't find libX11.so and wouldn't install graphics. A similar problem > was handled by the people in charge of debian ocaml packages > (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=619344). Now my > question is the following: will this evolution be a problem for GODI/odb > packages (and more generally source distribution), and what is the > advised fix for it? My advice would be to rely on pkg-config (a kind of ocamlfind for C libraries), or similar scripts (pcre-config, etc.) provided by the libraries. Otherwise, there is no good, portable (I mean, not Debian-specific) way to guess where a library is, and the packager will give an explicit path in his call to the configure script in debian/rules. By the way, this is what we did for ocaml [1]. [1] http://anonscm.debian.org/gitweb/?p=pkg-ocaml-maint/packages/ocaml.git;a=commitdiff;h=1db9b654b7d8b702cddb44df5aea1982f3120883 Cheers, -- Stéphane