From owner-freebsd-ports@FreeBSD.ORG Mon Mar 8 12:27:06 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 E0A9F1065672 for ; Mon, 8 Mar 2010 12:27:06 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from ch-smtp02.sth.basefarm.net (ch-smtp02.sth.basefarm.net [80.76.149.213]) by mx1.freebsd.org (Postfix) with ESMTP id 709048FC1C for ; Mon, 8 Mar 2010 12:27:06 +0000 (UTC) Received: from c83-255-48-78.bredband.comhem.se ([83.255.48.78]:54278 helo=falcon.midgard.homeip.net) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1Noc32-0004X5-9F for freebsd-ports@FreeBSD.ORG; Mon, 08 Mar 2010 13:27:03 +0100 Received: (qmail 14936 invoked from network); 8 Mar 2010 13:26:57 +0100 Received: from owl.midgard.homeip.net (10.1.5.7) by falcon.midgard.homeip.net with ESMTP; 8 Mar 2010 13:26:57 +0100 Received: (qmail 90274 invoked by uid 1001); 8 Mar 2010 13:26:57 +0100 Date: Mon, 8 Mar 2010 13:26:57 +0100 From: Erik Trulsson To: Oliver Fromme Message-ID: <20100308122657.GA89375@owl.midgard.homeip.net> References: <201003081150.o28Bo5QI078355@lurza.secnetix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201003081150.o28Bo5QI078355@lurza.secnetix.de> User-Agent: Mutt/1.5.20 (2009-06-14) X-Originating-IP: 83.255.48.78 X-Scan-Result: No virus found in message 1Noc32-0004X5-9F. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1Noc32-0004X5-9F 904df681ac0ad3a2ac0122346f5427da 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 12:27:07 -0000 On Mon, Mar 08, 2010 at 12:50:05PM +0100, Oliver Fromme wrote: > Hi, > > 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. > > While building joe, it _does_ display that it depends on > aspell, and it correctly reports it as "found". It also > depends in libiconv, which _is_ correctly recorded in the > package database. > > Am I doing something wrong, or is there a bug somewhere? 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. -- Erik Trulsson ertr1013@student.uu.se