Re: shells/zsh links to devel/ncurses

2011-03-05 Thread Scot Hetzel
On Fri, Mar 4, 2011 at 4:56 AM, Baptiste Daroussin  wrote:
> 2011/3/4 Alexander Kojevnikov :
>> On 3 March 2011 22:40, Baptiste Daroussin  wrote:
>>> For information, about all (almost) the ports that links to ncurses
>>> have this problem.
>>
>> You are right, libchk reports a lot of broken ports on my box. To name
>> just a few: emacs, lynx, gnome-terminal, ghc, erlang, aspell, vte,
>> etc, etc.
>>
>
> Here is a patch loosely based on bsd.openssl.mk that should fix the
> situation (add USE_NCURSES=yes to the corresponding Makefiles)
> http://people.freebsd.org/~bapt/bsd.ncurses.mk.diff
>

Found a error in the bsd.ncurses.mk:

+.if!defined(NCURSES_PORT) && \
+   exists(${DESTDIR}/${LOCALBASE}/lib/libcrypto.so)

Does ncurses depend on libcrypto?  That probably should be changed to
libncurses.so.

Scot
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: shells/zsh links to devel/ncurses

2011-03-05 Thread Michael Scheidell
Forgive top post. my phone.
I just synlinked so.8 to 7 and several things that failed now work.  Not the 
fix. But a workaround.
--
Michael Scheidell
CTO SECNAP Network Security
561-948-2259


-Original message-
From: Alexander Kojevnikov 
To: Baptiste Daroussin 
Cc: "po...@freebsd.org" , "udo.schweig...@siemens.com" 
, Wesley Shields 
Sent: Sun, Mar 6, 2011 03:27:37 GMT+00:00
Subject: Re: shells/zsh links to devel/ncurses

On 4 March 2011 18:56, Baptiste Daroussin  wrote:
> Here is a patch loosely based on bsd.openssl.mk that should fix the
> situation (add USE_NCURSES=yes to the corresponding Makefiles)
> http://people.freebsd.org/~bapt/bsd.ncurses.mk.diff

Thanks Bapt!

I tested it on shells/zsh and www/lynx.

For zsh, USE_NCURSES forced it to use /lib/libncursesw.so.8 but
devel/ncurses we still added as a dependency (pkg_delete would not
delete zsh without the -f option)

For lynx, USE_NCURSES made no difference, it still linked
/usr/local/lib/libncursesw.so.5.7 and /usr/local/lib/libtinfow.so.5.7.
devel/ncurses was also added as a dependency.

I guess in both cases it should link to /lib/libncursesw.so.8 and no
dependency should be added.

Alex
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Re: shells/zsh links to devel/ncurses

2011-03-05 Thread Alexander Kojevnikov
On 4 March 2011 18:56, Baptiste Daroussin  wrote:
> Here is a patch loosely based on bsd.openssl.mk that should fix the
> situation (add USE_NCURSES=yes to the corresponding Makefiles)
> http://people.freebsd.org/~bapt/bsd.ncurses.mk.diff

Thanks Bapt!

I tested it on shells/zsh and www/lynx.

For zsh, USE_NCURSES forced it to use /lib/libncursesw.so.8 but
devel/ncurses we still added as a dependency (pkg_delete would not
delete zsh without the -f option)

For lynx, USE_NCURSES made no difference, it still linked
/usr/local/lib/libncursesw.so.5.7 and /usr/local/lib/libtinfow.so.5.7.
devel/ncurses was also added as a dependency.

I guess in both cases it should link to /lib/libncursesw.so.8 and no
dependency should be added.

Alex
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: shells/zsh links to devel/ncurses

2011-03-04 Thread Baptiste Daroussin
2011/3/4 Alexander Kojevnikov :
> On 3 March 2011 22:40, Baptiste Daroussin  wrote:
>> For information, about all (almost) the ports that links to ncurses
>> have this problem.
>
> You are right, libchk reports a lot of broken ports on my box. To name
> just a few: emacs, lynx, gnome-terminal, ghc, erlang, aspell, vte,
> etc, etc.
>

Here is a patch loosely based on bsd.openssl.mk that should fix the
situation (add USE_NCURSES=yes to the corresponding Makefiles)
http://people.freebsd.org/~bapt/bsd.ncurses.mk.diff

regards,
Bapt
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: shells/zsh links to devel/ncurses

2011-03-03 Thread Alexander Kojevnikov
On 3 March 2011 22:40, Baptiste Daroussin  wrote:
> For information, about all (almost) the ports that links to ncurses
> have this problem.

You are right, libchk reports a lot of broken ports on my box. To name
just a few: emacs, lynx, gnome-terminal, ghc, erlang, aspell, vte,
etc, etc.
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: shells/zsh links to devel/ncurses

2011-03-03 Thread Baptiste Daroussin
2011/3/3 Wesley Shields :
> 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
>

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

regards,
Bapt
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: shells/zsh links to devel/ncurses

2011-03-03 Thread Wesley Shields
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
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


shells/zsh links to devel/ncurses

2011-03-02 Thread Alexander Kojevnikov
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.

Alex
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"