Re: [oe] [PATCH] ncurses: added 5.7 recipe

2010-08-10 Thread Martin Jansa
On Mon, Aug 9, 2010 at 7:49 PM, Martin Jansa martin.ja...@gmail.com wrote:
 On Fri, Jul 30, 2010 at 2:29 PM, Enrico Scholz
 enrico.sch...@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,

___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel


Re: [oe] [PATCH] ncurses: added 5.7 recipe

2010-08-09 Thread Martin Jansa
On Fri, Jul 30, 2010 at 2:29 PM, Enrico Scholz
enrico.sch...@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!

___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel


[oe] [PATCH] ncurses: added 5.7 recipe

2010-07-30 Thread Enrico Scholz
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.

Signed-off-by: Enrico Scholz enrico.sch...@sigma-chemnitz.de
---
 recipes/ncurses/ncurses-5.7/tic-hang.patch |   25 
 recipes/ncurses/ncurses_5.7.bb |  187 
 2 files changed, 212 insertions(+), 0 deletions(-)
 create mode 100644 recipes/ncurses/ncurses-5.7/tic-hang.patch
 create mode 100644 recipes/ncurses/ncurses_5.7.bb

diff --git a/recipes/ncurses/ncurses-5.7/tic-hang.patch 
b/recipes/ncurses/ncurses-5.7/tic-hang.patch
new file mode 100644
index 000..1678b88
--- /dev/null
+++ b/recipes/ncurses/ncurses-5.7/tic-hang.patch
@@ -0,0 +1,25 @@
+'tic' of some linux distributions (e.g. fedora 11) hang in an infinite
+loop when processing the original file.
+
+Index: ncurses-5.7/misc/terminfo.src
+===
+--- ncurses-5.7.orig/misc/terminfo.src
 ncurses-5.7/misc/terminfo.src
+@@ -3706,12 +3706,11 @@ konsole-xf3x|KDE console window with key
+ # The value for kbs reflects local customization rather than the settings used
+ # for XFree86 xterm.
+ konsole-xf4x|KDE console window with keyboard for XFree86 4.x xterm,
+-  kend=\EOF, khome=\EOH, use=konsole+pcfkeys,
+-  use=konsole-vt100,
+-# Konsole does not implement shifted cursor-keys.
+-konsole+pcfkeys|konsole subset of xterm+pcfkeys,
+-  kLFT@, kRIT@, kcbt=\E[Z, kind@, kri@, kDN@, kUP@, use=xterm+pcc2,
+-  use=xterm+pcf0,
++  kend=\EOF, kf1=\EOP, kf13=\EO2P, kf14=\EO2Q, kf15=\EO2R,
++  kf16=\EO2S, kf17=\E[15;2~, kf18=\E[17;2~, kf19=\E[18;2~,
++  kf2=\EOQ, kf20=\E[19;2~, kf21=\E[20;2~, kf22=\E[21;2~,
++  kf23=\E[23;2~, kf24=\E[24;2~, kf3=\EOR, kf4=\EOS,
++  khome=\EOH, use=konsole-vt100,
+ # KDE's vt100 keyboard has no relationship to any terminal that DEC made, 
but
+ # it is still useful for deriving the other entries.
+ konsole-vt100|KDE console window with vt100 (sic) keyboard,
diff --git a/recipes/ncurses/ncurses_5.7.bb b/recipes/ncurses/ncurses_5.7.bb
new file mode 100644
index 000..8afb1d6
--- /dev/null
+++ b/recipes/ncurses/ncurses_5.7.bb
@@ -0,0 +1,187 @@
+DESCRIPTION = Ncurses library
+HOMEPAGE = http://www.gnu.org/software/ncurses/ncurses.html;
+LICENSE = MIT
+SECTION = libs
+PATCHDATE = 20100501
+PKGV = ${PV}.${PATCHDATE}
+PR = r8
+
+# recipe is experimental for now...
+DEFAULT_PREFERENCE = -1
+
+DEPENDS = ncurses-native
+DEPENDS_virtclass-native = 
+
+inherit autotools_stage binconfig
+
+SRC_URI = ${GNU_MIRROR}/ncurses/ncurses-${PV}.tar.gz;name=tarball \
+
ftp://invisible-island.net/ncurses/5.7/ncurses-5.7-20100424-patch.sh.bz2;apply=yes;name=p20100424sh
 \
+\
+
ftp://invisible-island.net/ncurses/5.7/ncurses-5.7-${PATCHDATE}.patch.gz;name=p20100501
 \
+file://tic-hang.patch \
+
+
+SRC_URI[tarball.md5sum] = cce05daf61a64501ef6cd8da1f727ec6
+SRC_URI[tarball.sha256sum] = 
0a9bdea5c7de8ded5c9327ed642915f2cc380753f12d4ad120ef7da3ea3498f4
+SRC_URI[p20100424sh.md5sum] = 3a5f76613f0f7ec3e0e73b835bc24864
+SRC_URI[p20100424sh.sha256sum] = 
1e9d70d2d1fe1fea471868832c52f1b9cc6065132102e49e2a3755f2f4f5be53
+SRC_URI[p20100501.md5sum] = 6518cfa5d45e9069a1e042468161448b
+SRC_URI[p20100501.sha256sum] = 
a97ccc30e4bd6fbb89564f3058db0fe84bd35cfefee831556c500793b477abde
+
+PARALLEL_MAKE = 
+EXTRA_AUTORECONF = -I m4
+
+# Whether to enable separate widec libraries; must be 'true' or 'false'
+ENABLE_WIDEC = true
+# Build breaks on Ubuntu else :(
+ENABLE_WIDEC_virtclass-native = false
+
+
+# Override the function from the autotools class; ncurses requires a
+# patched autoconf213 to generate the configure script. This autoconf
+# is not available so that the shipped script will be used.
+do_configure() {
+for i in \
+'narrowc --with-ticlib' \
+'widec   --enable-widec --without-progs'; do
+set -- $i
+mkdir -p $1
+cd $1
+shift
+
+oe_runconf \
+--disable-static \
+--without-debug \
+--without-ada \
+--enable-hard-tabs \
+--enable-xmc-glitch \
+--enable-colorfgbg \
+
--with-termpath='${sysconfdir}/termcap:${datadir}/misc/termcap' \
+
--with-terminfo-dirs='${sysconfdir}/terminfo:${datadir}/terminfo' \
+--with-shared \
+--disable-big-core \
+--program-prefix= \
+--with-termlib=tinfo \
+--enable-sigwinch \
+--enable-pc-files \
+