Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 190140 - sys-libs/ncurses-5.6 does not install libncursesw.5.dylib
Summary: sys-libs/ncurses-5.6 does not install libncursesw.5.dylib
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: All OS X
: High normal (vote)
Assignee: osx porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-25 06:51 UTC by MATSUI Tetsushi
Modified: 2007-11-11 15:48 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description MATSUI Tetsushi 2007-08-25 06:51:00 UTC
The command clear failed because there is no $EPREFIX/usr/lib/libncursesw.5.dylib.


Reproducible: Always

Steps to Reproduce:
1. emerge ncurses-5.6-r2
2. run command clear on a terminal

Actual Results:  
% clear
dyld: Library not loaded: /Users/tetsushi/Gentoo/usr/lib/libncursesw.5.dylib
  Referenced from: /Users/tetsushi/Gentoo/usr/bin/clear
  Reason: image not found
Trace/BPT trap



Expected Results:  
clear the terminal screen

clear requires $EPREFIX/usr/lib/libncursesw.5.dylib:
tetsushi% otool -L /Users/tetsushi/Gentoo/usr/bin/clear
/Users/tetsushi/Gentoo/usr/bin/clear:
        /Users/tetsushi/Gentoo/usr/lib/libncursesw.5.dylib (compatibility version 5.0.0, current version 5.0.0)
        /Users/tetsushi/Gentoo/usr/lib/gcc/i686-apple-darwin8/4.0.1/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.3.9)

but there is no libncursesw.5.dylib in $EPREFIX/usr/lib:
% ls -l ~/Gentoo/usr/lib/libncurses*
-rw-r--r-- 1 tetsushi tetsushi 510988 Aug 22 11:49 /Users/tetsushi/Gentoo/usr/lib/libncurses++.a
-rw-r--r-- 1 tetsushi tetsushi 513276 Aug 22 11:50 /Users/tetsushi/Gentoo/usr/lib/libncurses++w.a
-rw-r--r-- 1 tetsushi tetsushi 433436 Aug 22 11:49 /Users/tetsushi/Gentoo/usr/lib/libncurses.a
lrwxrwxrwx 1 tetsushi tetsushi     26 Aug 22 11:50 /Users/tetsushi/Gentoo/usr/lib/libncurses.dylib -> ../../lib/libncurses.dylib
-rw-r--r-- 1 tetsushi tetsushi 502372 Aug 22 11:49 /Users/tetsushi/Gentoo/usr/lib/libncursesw.a
lrwxrwxrwx 1 tetsushi tetsushi     27 Aug 22 11:50 /Users/tetsushi/Gentoo/usr/lib/libncursesw.dylib -> ../../lib/libncursesw.dylib

It's in $EPREFIX/lib, on the other hand:
% ls -l ~/Gentoo/lib/libncurses*
-rwxr-xr-x 1 tetsushi tetsushi 279192 Aug 22 11:50 /Users/tetsushi/Gentoo/lib/libncurses.5.dylib
lrwxrwxrwx 1 tetsushi tetsushi     18 Aug 22 11:50 /Users/tetsushi/Gentoo/lib/libncurses.dylib -> libncurses.5.dylib
-rwxr-xr-x 1 tetsushi tetsushi 326420 Aug 22 11:50 /Users/tetsushi/Gentoo/lib/libncursesw.5.dylib
lrwxrwxrwx 1 tetsushi tetsushi     19 Aug 22 11:50 /Users/tetsushi/Gentoo/lib/libncursesw.dylib -> libncursesw.5.dylib
Comment 1 Elias Pipping (RETIRED) gentoo-dev 2007-08-25 08:48:57 UTC
Yes, this is a known issue, ncurses 5.6 *is* broken in that regard. thanks for opening a bug, anyway, because that was only discussed privately and should have been made public, which it now has. ncurses 5.6 has been masked again yesterday (in r8873[1]) for that reason. please sync and downgrade.

[1] http://overlays.gentoo.org/proj/alt/changeset/8873
Comment 2 Elias Pipping (RETIRED) gentoo-dev 2007-10-08 18:46:33 UTC
the bug doesn't need to be open because ncurses 5.6 is masked.
Comment 3 Fabian Groffen gentoo-dev 2007-10-08 18:49:00 UTC
we should still fix it, because everyone has 5.6 but us.
Comment 4 Elias Pipping (RETIRED) gentoo-dev 2007-11-11 12:34:47 UTC
Actual files that are installed:

lib/libncursesw.5.dylib
lib/libncurses.5.dylib

so libncursesw.5.dylib *is* installed, rendering the summary of this bug incorrect. maybe it should go somewhere else, e.g. to /usr/lib, but it's certainly installed!

there's also two links for each:

usr/lib/libncurses.dylib
lib/libncurses.dylib
usr/lib/libncursesw.dylib
lib/libncursesw.dylib

none of the links is broken. what's important to note is that there's no libcurses or libcursesw - neither versioned nor unversioned.

the output of otool on the two files is correct as well. (tested on darwin9).

so what's the problem here? (I'm installing ncurses 5.6, I'll then re-emerge everything and see if something broke)
Comment 5 Elias Pipping (RETIRED) gentoo-dev 2007-11-11 12:49:52 UTC
actually, what's installed is this:

/lib/libcurses.dylib -> libncurses.5.dylib
/lib/libncurses.5.dylib
/lib/libncurses.dylib -> libncurses.5.dylib
/lib/libncursesw.5.dylib
/lib/libncursesw.dylib -> libncursesw.5.dylib
/usr/lib/libcurses.a -> libncurses.a
/usr/lib/libcurses.dylib -> ../../lib/libcurses.dylib
/usr/lib/libcursesw.dylib -> ../../lib/libcursesw.dylib
/usr/lib/libform.5.dylib
/usr/lib/libform.a
/usr/lib/libform.dylib -> libform.5.dylib
/usr/lib/libformw.5.dylib
/usr/lib/libformw.a
/usr/lib/libformw.dylib -> libformw.5.dylib
/usr/lib/libmenu.5.dylib
/usr/lib/libmenu.a
/usr/lib/libmenu.dylib -> libmenu.5.dylib
/usr/lib/libmenuw.5.dylib
/usr/lib/libmenuw.a
/usr/lib/libmenuw.dylib -> libmenuw.5.dylib
/usr/lib/libncurses++.a
/usr/lib/libncurses++w.a
/usr/lib/libncurses.a
/usr/lib/libncurses.dylib -> ../../lib/libncurses.dylib
/usr/lib/libncursesw.a
/usr/lib/libncursesw.dylib -> ../../lib/libncursesw.dylib
/usr/lib/libpanel.5.dylib
/usr/lib/libpanel.a
/usr/lib/libpanel.dylib -> libpanel.5.dylib
/usr/lib/libpanelw.5.dylib
/usr/lib/libpanelw.a
/usr/lib/libpanelw.dylib -> libpanelw.5.dylib

( i only had a look at libncurses* before, my bad)

of the above, *one* is a dead link:

/usr/lib/libcursesw.dylib -> ../../lib/libcursesw.dylib

that link is present in ncurses 5.5 as well though (and is dead there as well)
Comment 6 MATSUI Tetsushi 2007-11-11 15:13:25 UTC
(In reply to comment #4)
> so what's the problem here? (I'm installing ncurses 5.6, I'll then re-emerge
> everything and see if something broke)

The problem is that you forget what the problem is, which you had surely known before(comment #2).
Though, I'm happy even if the problem suddenly disappears by a trick of leprechaun.
Comment 7 Elias Pipping (RETIRED) gentoo-dev 2007-11-11 15:28:42 UTC
I remember that ncurses 5.6 was broken. The newly added install_name_tool changes to portage appear to solve/work around the issue though, apparently. Can you produce a dyld error with ncurses 5.6? That'd certainly persuade me that something is broken here (I'm not trying to make a problem into no problem -- I'm just no longer seeing one)
Comment 8 MATSUI Tetsushi 2007-11-11 15:48:36 UTC
Now, I've just installed ncurses-5.6-r2 and see no problem.
clear is linked to lib/libncursesw.5.dylib correctly.

From my point of view as a user, it is just FIXED.
I have no more infos.

Thank you, anyway.