[oe] [PATCH] ncurses: added 5.7 recipe

Martin Jansa martin.jansa at gmail.com
Tue Aug 10 07:55:27 UTC 2010


On Mon, Aug 9, 2010 at 7:49 PM, Martin Jansa <martin.jansa at gmail.com> wrote:
> On Fri, Jul 30, 2010 at 2:29 PM, Enrico Scholz
> <enrico.scholz at sigma-chemnitz.de> wrote:
>> It uses ideas from the old 5.4 recipe but brings a lot of new features
>> like widec libs, pkgconfig files or splitted library packages.
>>
>> As lot of packages depend on ncurses, whole distribution must be
>> probably rebuild when updating to this new version.
>>
>> Due to this and the complex recipe, it has a negative DEFAULT_PREFERENCE
>> for now.
>
> Hi,
>
> Only breakage I noticed sofar is in pidgin when pidgin-2.6.6 checks
> for wide char support:
> configure:16212: checking if
> /OE/tmpdir-dev-shr/sysroots/armv4t-oe-linux-gnueabi/usr/include/ncurses.h
> supports wide characters
> |                                       #ifndef get_wch
> |                                       # error get_wch not found!
> |                                       #endif
>
> and then it decides not to build finch (and later do_package fails).
>
> is it about ENABLE_WIDEC, or something else?
>
> Thanks!

The problem seems to be in ncurses's do_install where you first install
widec if enabled and then always narrowc, which overwrittes curses.h.

With this change I was able to build pidgin with finch without
problem, but no idea if it's right way to fix it.


diff --git a/recipes/ncurses/ncurses_5.7.bb b/recipes/ncurses/ncurses_5.7.bb
index 3562685..725cf7b 100644
--- a/recipes/ncurses/ncurses_5.7.bb
+++ b/recipes/ncurses/ncurses_5.7.bb
@@ -90,12 +90,12 @@ _install_opts = "\
 "

 do_install() {
-        ! ${ENABLE_WIDEC} || \
-            oe_runmake -C widec ${_install_opts}
-
         oe_runmake -C narrowc ${_install_opts} \
                install.data install.progs

+        ! ${ENABLE_WIDEC} || \
+            oe_runmake -C widec ${_install_opts}
+

         cd narrowc

Regards,




More information about the Openembedded-devel mailing list