> 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/<arch description> 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