not yet decided what to do about this. In sid, the curses module is forced to
link with libncursesw.
The python upstream configury seems to be wrong, as it just looks at the library
which libreadline is linked with, and then uses the wrong headers to build the
extension (should add -I/usr/include/ncursesw).
On 05/18/2011 06:45 PM, Sven Joachim wrote:
> On 2011-05-18 12:01 +0200, Matthias Klose wrote:
>
>> Hi,
>>
>> looking at #602720, I'm wondering what to do with readline; one option
>> would be to have a libreadlinew6 package, building and linking against
>> libncursesw, another option to link readline against libncursesw.
>
> The latter is probably not safe, considering that there are quite a few
> programs in Debian that are linked against both libreadline6 and
> libncurses5. Those are prone to crashes when libreadline6 starts linking
> against libncursesw5.
$ grep-aptavail -s Package -F Depends libreadline6 -a -F Depends libncurses5|wc
-l
113
when building with -Wl,--as-needed, these reduce to 70; so the extra 43 packages
just link with it, but don't use it. These would need rebuilds if readline is
linked against libncursesw (possibly renaming the library package). Is it
necessary in this case, that -I/usr/include/ncursesw is passed to the build?
Adding libreadlinew6 and libreadlinew-dev packages would need a rebuild of only
those packages explicitly b-d on libreadlinew-dev; again -I/usr/include/ncursesw
needs passing, and the library name changed (or a compat symlink included in the
libreadlinew-dev package).
> Actually I am a bit surprised that there seem to be no prominent bug
> reports in Debian about such crashes yet. What happens when you import
> both readline and curses in python and then make heavy use of curses
> functions?
I didn't check this; so maybe it's unlikely that both extensions are used
together.
>> Are there any other libraries linking against ncurses/ncursesw, where
>> this decision was made in the past?
>
> Possibly, but I'm not aware of that.
btw, found "interesting" packages:
$ grep-aptavail -s Package -F Depends libncursesw5 -a -F Depends libncurses5
Package: hunspell
Package: procps
Package: libruby1.9.1
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]