Package: libncursesw5-dev
Version: 5.9+20150516-2
X-Debbugs-Cc: Daiki Ueno <u...@gnu.org>
Control: affects -1 pinentry
Control: tags -1 upstream
Control: forwarded -1 
https://lists.gnu.org/archive/html/bug-ncurses/2015-06/msg00053.html

Over on gnupg-devel, we're trying to sort out some issues with ncursesw
support, starting here:

 https://lists.gnupg.org/pipermail/gnupg-devel/2015-June/030051.html

It looks like libncursesw5-dev's pkg-config file is a bit confused
compared to the pkg-config files shipped by fedora for some reason.
This issue has been reported upstream and the upstream dev is aware of
it -- if it could be fixed in debian when upstream has it fixed, that'd
be nice for the sake of a clean build of pinentry.

Regards,

        --dkg

--- Begin Message ---
Daniel Kahn Gillmor <d...@fifthhorseman.net> writes:

> I ran into this on debian unstable systems.  If we revert it, i'm
> concerned that this will mean restoring the warning again; i agree with
> Gergely that pkg-config *should* do things properly and the additional
> #ifdef shouldn't be needed, but that's not what i saw happening.

I observed a couple of things:

- On Debian, pkg-config ncursesw --cflags returns:

    -D_GNU_SOURCE -I/usr/include/ -I/usr/include/ncursesw

  where the first -I is superfluous and causing the problem, as there is
  /usr/include/curses.h.  This might be a bug in ncurses upstream (I've
  reported it).

- On Fedora, /usr/include/{,ncurses/,ncursesw/}curses.h are identical
  and have the addnwstr declaration.  This is legitimate because the
  header file for the wide-character configuration is upper compatible
  with the non-wide-character version, as noted in ncurses/INSTALL.

> Maybe there's some other way to fix this cleanly?

I guess the cleaner way is either to fix the former issue (though it
might be a bit fragile to rely on the -I order), or to change the
packaging like the latter.

Regards,
-- 
Daiki  Ueno

--- End Message ---

Reply via email to