bug fix...

ledoian
Allan McRae 14 years ago
parent 3381433191
commit e9479c62db

@ -3,25 +3,30 @@
pkgname=ncurses pkgname=ncurses
pkgver=5.7 pkgver=5.7
pkgrel=3 pkgrel=4
pkgdesc="System V Release 4.0 curses emulation library" pkgdesc="System V Release 4.0 curses emulation library"
arch=('i686' 'x86_64') arch=('i686' 'x86_64')
url="http://www.gnu.org/software/ncurses/" url="http://www.gnu.org/software/ncurses/"
license=('MIT') license=('MIT')
depends=('glibc') depends=('glibc')
source=(ftp://ftp.gnu.org/pub/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz) source=(ftp://ftp.gnu.org/pub/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz
md5sums=('cce05daf61a64501ef6cd8da1f727ec6') set_field_buffer.patch)
md5sums=('cce05daf61a64501ef6cd8da1f727ec6'
'04c8d6d95140a29d72c0eb685a2eeffd')
build() { build() {
cd ${srcdir}/ cd ${srcdir}/
mkdir ncurses{,w}-build mkdir ncurses{,w}-build
# http://permalink.gmane.org/gmane.comp.lib.ncurses.bugs/3559
patch -Np1 -i ${srcdir}/set_field_buffer.patch
cd ${srcdir}/ncursesw-build cd ${srcdir}/ncursesw-build
../${pkgname}-${pkgver}/configure --prefix=/usr --mandir=/usr/share/man \ ../${pkgname}-${pkgver}/configure --prefix=/usr --mandir=/usr/share/man \
--with-shared --with-normal --without-debug --without-ada \ --with-shared --with-normal --without-debug --without-ada \
--with-install-prefix=${pkgdir} --enable-widec --with-install-prefix=${pkgdir} --enable-widec
# add --enable-ext-colors with next soname bump # add --enable-ext-colors with next soname bump
make || return 1 make
# libncurses.so.5 for external binary support # libncurses.so.5 for external binary support
cd ${srcdir}/ncurses-build cd ${srcdir}/ncurses-build
@ -29,7 +34,7 @@ build() {
../${pkgname}-${pkgver}/configure --prefix=/usr \ ../${pkgname}-${pkgver}/configure --prefix=/usr \
--with-shared --with-normal --without-debug --without-ada \ --with-shared --with-normal --without-debug --without-ada \
--with-install-prefix=${pkgdir} $CONFIGFLAG --with-install-prefix=${pkgdir} $CONFIGFLAG
make || return 1 make
} }
package() { package() {
@ -42,10 +47,10 @@ package() {
ln -sf ../../lib/libncursesw.so.5 ${pkgdir}/usr/lib/libncursesw.so ln -sf ../../lib/libncursesw.so.5 ${pkgdir}/usr/lib/libncursesw.so
# Fool packages looking to link to non-wide-character ncurses libraries # Fool packages looking to link to non-wide-character ncurses libraries
for lib in curses ncurses form panel menu ; do \ for lib in curses ncurses form panel menu; do
rm -f ${pkgdir}/usr/lib/lib${lib}.so ; \ rm -f ${pkgdir}/usr/lib/lib${lib}.so
echo "INPUT(-l${lib}w)" >${pkgdir}/usr/lib/lib${lib}.so ; \ echo "INPUT(-l${lib}w)" >${pkgdir}/usr/lib/lib${lib}.so
ln -sf lib${lib}w.a ${pkgdir}/usr/lib/lib${lib}.a ; \ ln -sf lib${lib}w.a ${pkgdir}/usr/lib/lib${lib}.a
done done
ln -sf libncurses++w.a ${pkgdir}/usr/lib/libncurses++.a ln -sf libncurses++w.a ${pkgdir}/usr/lib/libncurses++.a

@ -0,0 +1,9 @@
--- src/ncurses-5.7/form/frm_driver.c 2008/10/18 16:25:00 1.88
+++ src/ncurses-5.7/form/frm_driver.c 2008/12/06 23:08:12
@@ -4366,6 +4366,7 @@
delwin(field->working);
field->working = newpad(field->drows, field->dcols);
}
+ len = Buffer_Length(field);
wclear(field->working);
mvwaddstr(field->working, 0, 0, value);
Loading…
Cancel
Save