Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Mar 2011 15:40:01 +0100
From:      Baptiste Daroussin <bapt@freebsd.org>
To:        Wesley Shields <wxs@freebsd.org>
Cc:        ports@freebsd.org, udo.schweigert@siemens.com, Alexander Kojevnikov <alexander@kojevnikov.com>
Subject:   Re: shells/zsh links to devel/ncurses
Message-ID:  <AANLkTikQ8Td4=YUTR4p0AwYtrWxvC8FnSrkGMb-x6u27@mail.gmail.com>
In-Reply-To: <20110303135717.GD48908@atarininja.org>
References:  <AANLkTimVt46gP_8b-Y2pxc_B3d7ZK=6bxmhXj-Gw8Apx@mail.gmail.com> <20110303135717.GD48908@atarininja.org>

next in thread | previous in thread | raw e-mail | index | archive | help
2011/3/3 Wesley Shields <wxs@freebsd.org>:
> 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`
>> =A0 =A0 =A0 =A0 libncursesw.so.6.0 =3D> /usr/local/lib/libncursesw.so.6.=
0 (0x8008f4000)
>> =A0 =A0 =A0 =A0 ...
>>
>> 4. pkg_delete devel/ncurses
>>
>> 5. zsh cannot start:
>> % ldd `which zsh`
>> =A0 =A0 =A0 =A0 libncursesw.so.6.0 =3D> not found (0x0)
>> =A0 =A0 =A0 =A0 ...
>>
>> Re-building shells/zsh fixes it:
>>
>> % ldd `which zsh`
>> =A0 =A0 =A0 =A0 libncursesw.so.8 =3D> /lib/libncursesw.so.8 (0x8008f5000=
)
>> =A0 =A0 =A0 =A0 ...
>>
>> 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
>

For information, about all (almost) the ports that links to ncurses
have this problem.
A global solution should be found.

regards,
Bapt



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTikQ8Td4=YUTR4p0AwYtrWxvC8FnSrkGMb-x6u27>