From owner-freebsd-ports@FreeBSD.ORG Tue Jul 20 12:10:21 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9F42B16A4CE for ; Tue, 20 Jul 2004 12:10:21 +0000 (GMT) Received: from mproxy.gmail.com (mproxy.gmail.com [216.239.56.246]) by mx1.FreeBSD.org (Postfix) with SMTP id 8FB6E43D5A for ; Tue, 20 Jul 2004 12:10:21 +0000 (GMT) (envelope-from david.julien@gmail.com) Received: by mproxy.gmail.com with SMTP id w29so5706644cwb for ; Tue, 20 Jul 2004 05:10:21 -0700 (PDT) Received: by 10.11.99.74 with SMTP id w74mr175668cwb; Tue, 20 Jul 2004 05:10:21 -0700 (PDT) Message-ID: Date: Tue, 20 Jul 2004 14:10:21 +0200 From: David Julien To: Oliver Eikemeier In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: cc: ports@freebsd.org Subject: Re: Are files and directories mandatory in pkg-plist ? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jul 2004 12:10:21 -0000 On Tue, 20 Jul 2004 13:26:37 +0200, Oliver Eikemeier wrote: > David Julien wrote: > > > Hi, > > > > I write a port for an ocaml package (my first one!) but I have a > > problem when I try to deinstall the port. Indeed I use an ocaml > > program which is named "ocamlfind" to install and deinstall the files > > at the right place in the ocaml library directory. But this program > > deletes automatically the directories and the files when the port is > > deinstall, and failed if the directories / files are already deleted. > > You have the problem of two conflicting package managers (ocamlfind and > pkg_install tools). I guess installing from a package (via pkg_add) > doesn't work too? The problem occurs only during the deinstall process. > > I have to run it to deinstall properly the package because, for this > > package, it updates some configuration files (which does not seem the > > case for other ocaml package ports). > > Is there a way to update the configuration files without having > ocamlfind installing/deinstalling files? There is a file named ld.conf in the caml library directory which contains paths to directories where they are native libraries (*.so). A line is added in this file during the installation, but it is not removed at deinstall because ocamlfind failed to remove the files already removed by pkg-deinstall. I can write some lines in pkg-deinstall to remove this line "manually" after the deinstallation but it is not very clean (if ocamlfind maintains other informations somewhere else ... It is not the case but it may be in a future version). Thanks. -- David