Package: ncurses-bin Version: 5.7+20090110-1 Severity: normal Tags: patch Hi,
I just had a build fail because "ncursesw-config --cflags" wouldn't spit out anything but an error message when /bin/sh links to dash. The attached patch should fix that. Thank you -- System Information: Debian Release: 5.0 APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.28-toi+git (SMP w/1 CPU core; PREEMPT) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages ncurses-bin depends on: ii libc6 2.7-18 GNU C Library: Shared libraries ii libncurses5 5.7+20090110-1 shared libraries for terminal hand ncurses-bin recommends no packages. ncurses-bin suggests no packages. -- no debconf information
diff -Naur ncurses-5.7+20090110/misc/ncurses-config.in ncurses-5.7+20090110-patched/misc/ncurses-config.in --- ncurses-5.7+20090110/misc/ncurses-config.in 2009-01-10 19:12:12.000000000 +0100 +++ ncurses-5.7+20090110-patched/misc/ncurses-config.in 2009-01-18 03:04:52.000000000 +0100 @@ -74,7 +74,7 @@ if test "${includedir}" != /usr/include ; then INCS="-I${includedir}" fi - if test "x...@with_overwrite@" == xno ; then + if test "x...@with_overwrite@" = xno ; then INCS="$INCS -I${includedir}/${THIS}" fi sed -e 's,^[ ]*,,' -e 's, [ ]*, ,g' -e 's,[ ]*$,,' <<-ENDECHO