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 RAA28718; Tue, 30 Apr 2002 17:08:06 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id RAA28714 for ; Tue, 30 Apr 2002 17:08:05 +0200 (MET DST) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from mel-rto3.wanadoo.fr (smtp-out-3.wanadoo.fr [193.252.19.233]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g3UF85H22775 for ; Tue, 30 Apr 2002 17:08:05 +0200 (MET DST) Received: from mel-rta8.wanadoo.fr (193.252.19.79) by mel-rto3.wanadoo.fr (6.5.007) id 3CCEA0DD0000B6FC for caml-list@inria.fr; Tue, 30 Apr 2002 17:08:04 +0200 Received: from debian (80.8.80.141) by mel-rta8.wanadoo.fr (6.5.007) id 3CBAE3C2007266E4 for caml-list@inria.fr; Tue, 30 Apr 2002 17:08:04 +0200 Received: from moi by debian with local (Exim 3.35 #1 (Debian)) id 172ZEj-00010V-00 for ; Tue, 30 Apr 2002 17:08:13 +0200 To: caml-list@inria.fr Subject: Re: [Caml-list] OCaml packaging problems References: From: Remi VANICAT Date: 30 Apr 2002 17:08:13 +0200 In-Reply-To: Message-ID: <87wuup2pia.dlv@wanadoo.fr> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Vitaly Lugovsky writes: > Hi! > > I'm having a big troubles packaging OCaml and 3rd party > libraries (like lablGL, lablgtk) in RPM. All the evil is in > the ld.conf file - foreign libraries should add lines in > it at the installation. The debian ocaml package use the following method : - the ocaml package contain an executable (ocaml-ldconf) which is in charge of the generation of the ld.conf - it use a file (/var/lib/ocaml/ld.conf) that contain line which look like /usr/lib/ocaml/lablgtk add liblablgtk-ocaml that mean : the liblablgtk-ocaml package have add the /usr/lib/ocaml/lablgtk directory to the /usr/lib/ocaml/ld.conf file (it also use the /etc/ocaml/ld.conf file for addition of new directory by the administrator) so when a new package is installed, it run in its postinst script things like ocaml-ldconf -pliblablgtk-ocaml -a /usr/lib/ocaml/lablgtk and when it is remove it run in its prerm script : ocaml-ldconf -pliblablgtk-ocaml -r /usr/lib/ocaml/lablgtk and the ocaml-ldconf take care of every thing else... > > The much better approach to the multi-package configurations > is introduced, e.g. in xinetd, new crontabs, and so on - all > external packages writes their configuration files or even > just a symlinks to the special directory. So, it'll be better to > have a special directory like ld.conf.dir/ with symlinks to > the actual dynamic library paths, which will be updated safely > when new packages are installed/removed. But, we've no directory > access functions in the Pervasives library, and Unix library is > not accessible from the runtime - we can't rewrite dll.ml to > use this approach. May be, it'll be nice to provide some basic > directory access functionality from Pervasives? You may also add a dll/ directory with link to each dll... -- Rémi Vanicat vanicat@labri.u-bordeaux.fr http://dept-info.labri.u-bordeaux.fr/~vanicat ------------------- 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