From owner-freebsd-ports@FreeBSD.ORG Thu Mar 3 13:56:30 2011 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 09E08106566C; Thu, 3 Mar 2011 13:56:30 +0000 (UTC) (envelope-from wxs@atarininja.org) Received: from syn.atarininja.org (syn.csh.rit.edu [129.21.49.45]) by mx1.freebsd.org (Postfix) with ESMTP id 9EF288FC12; Thu, 3 Mar 2011 13:56:29 +0000 (UTC) Received: by syn.atarininja.org (Postfix, from userid 1001) id 2EE075C3A; Thu, 3 Mar 2011 08:57:17 -0500 (EST) Date: Thu, 3 Mar 2011 08:57:17 -0500 From: Wesley Shields To: Alexander Kojevnikov Message-ID: <20110303135717.GD48908@atarininja.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: ports@freebsd.org, udo.schweigert@siemens.com, bapt@freebsd.org Subject: Re: shells/zsh links to devel/ncurses 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: Thu, 03 Mar 2011 13:56:30 -0000 On Thu, Mar 03, 2011 at 03:21:17PM +0800, Alexander Kojevnikov wrote: > If devel/ncurses is installed, shells/zsh links to libncursesw from > that port but doesn't add it as a dependency. > > To reproduce: > > 1. Install devel/ncurses > > 2. (Re)install shells/zsh > > 3. Run: > % ldd `shich zsh` > libncursesw.so.6.0 => /usr/local/lib/libncursesw.so.6.0 (0x8008f4000) > ... > > 4. pkg_delete devel/ncurses > > 5. zsh cannot start: > % ldd `which zsh` > libncursesw.so.6.0 => not found (0x0) > ... > > Re-building shells/zsh fixes it: > > % ldd `which zsh` > libncursesw.so.8 => /lib/libncursesw.so.8 (0x8008f5000) > ... > > To sum it up, shells/zsh should either not link to devel/ncurses or > list it as a dependency if it does. Thanks for bringing this up. I noticed it a while ago but forgot to mail the maintainer. While we are on the subject of silent dependencies, mail/mutt-devel links with ncurses silently too. I've attached the maintainer of mutt-devel to this mail so he can hopefully work up a patch. -- WXS