From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id KAA12437; Tue, 14 May 2002 10:55:16 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id KAA12432 for ; Tue, 14 May 2002 10:55:15 +0200 (MET DST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g4E8srn26436; Tue, 14 May 2002 10:54:53 +0200 (MET DST) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id KAA12420; Tue, 14 May 2002 10:54:52 +0200 (MET DST) Date: Tue, 14 May 2002 10:54:52 +0200 From: Xavier Leroy To: Sven Cc: Vitaly Lugovsky , caml-list@inria.fr Subject: Re: [Caml-list] OCaml packaging problems Message-ID: <20020514105452.B11894@pauillac.inria.fr> References: <20020430111657.A18782@pauillac.inria.fr> <20020430200405.A16880@dpt-info.u-strasbg.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <20020430200405.A16880@dpt-info.u-strasbg.fr>; from luther@dpt-info.u-strasbg.fr on Tue, Apr 30, 2002 at 08:04:05PM +0200 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Concerning this ld.conf issue, I disagree both with Sven Luther's solution (a tool that adds/removes lines from this file) and with Vitaly Lugovsky's suggestion (multiple configuration files in a directory). The ld.conf mechanism was modeled after the /etc/ld.so.conf file used by the Unix dynamic loader. It is intended to list a small number of standard directories that contain shared libraries, typically one directory for the "system" libraries (i.e. those provided by the OCaml core distribution), one for local extensions (e.g. /usr/local/lib), and perhaps one or two for especially large packages with many libraries (e.g. /usr/X11R6/lib). When you install a package that provides a C shared library, you don't install it in a package-dependent directory and add a line to /etc/ld.so.conf with this directory; you install in /usr/lib or /usr/local/lib, perhaps via a symbolic link. I urge everyone to use the same scheme for OCaml shared libraries. (And, yes, I haven't followed this recommendation in some of the standard OCaml libraries (labltk) or some of my own extensions, but I've realized my error and intend to fix this in release 3.05.) So, to summarize, I strongly suggest the following approach for RPMs or Debian packages: - The main Caml package can add one or two lines to ld.conf, e.g. /var/lib/ocaml/shlibs (for libraries installed by other packages) and /usr/local/lib/ocaml/shlibs (for local stuff) - Packages for additional Caml libraries install their shared libraries in /var/lib/ocaml/shlibs, either directly or via a symlink. This is simple, consistent with C shared libraries, and supports deinstallation of additional Caml libraries without any hassle. - Xavier Leroy ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners