From owner-freebsd-ports@FreeBSD.ORG Mon Mar 8 13:02:00 2010 Return-Path: Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EEBE61065677 for ; Mon, 8 Mar 2010 13:02:00 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id 747B68FC21 for ; Mon, 8 Mar 2010 13:02:00 +0000 (UTC) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id o28D1iro081956; Mon, 8 Mar 2010 14:01:59 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id o28D1hBc081954; Mon, 8 Mar 2010 14:01:43 +0100 (CET) (envelope-from olli) From: Oliver Fromme Message-Id: <201003081301.o28D1hBc081954@lurza.secnetix.de> To: ertr1013@student.uu.se (Erik Trulsson) Date: Mon, 8 Mar 2010 14:01:43 +0100 (CET) In-Reply-To: <20100308122657.GA89375@owl.midgard.homeip.net> X-Mailer: ELM [version 2.5 PL8] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Mon, 08 Mar 2010 14:01:59 +0100 (CET) Cc: freebsd-ports@FreeBSD.ORG Subject: Re: editors/joe + textproc/aspell: dependency problem? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Mar 2010 13:02:01 -0000 Erik Trulsson wrote: > On Mon, Mar 08, 2010 at 12:50:05PM +0100, Oliver Fromme wrote: > > I just csupped fresh ports on a new stable/8 box, installed > > textproc/aspell-without-dicten (i.e. with WITHOUT_DICTEN=YES) > > and then proceeded to install editors/joe. Both installed > > successfully, as far as I can tell. There were no error > > messages, and joe seems to work fine. But ... > > > > joe has a dependency on aspell (both build dependency _and_ > > run dependency), so I expected it to be recorded in the > > package database. But it isn't. pkg_info -r joe\* and > > pkg_info -R aspell\* don't report this dependency. > > If there is a bug it is in the ports system in general when a given > dependency can be fulfilled by more than one port. > > If a port declares that it depends on file/library/whatever "foo" from > the port "bar", but you have "foo" installed from the port "baz" then > the dependency check will be fine (since it finds "foo") but when the > dependency should be registered in the package database it will try to > register a dependency on the package "bar", which is not installed, and > then no dependency is registered. > (In your case "foo" = "/usr/local/bin/aspell", "bar" = "textproc/aspell", > and "baz" = "textproc/aspell-without-dicten".) > > It might be better if a dependency was registered on the package that > the depended-on file actually was installed from, but this is currently > not done. Thanks for the insights. That explains what I'm seeing. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd