Hi,

my name is Joachim and I'm new to this list.  I have been using 0.9.27,
from an old Snapgear/uClinux-dist, for a couple of years now, but have
just started an upgrade and refactor of that tree to better suit my
purposes.

During that campaign I upgraded to 0.9.29 only to discover that I had
been bitten by issue #2834.  So I decided to start testing the daily
snapshots for a way to be able to run my pthreaded applications again
without having to downgrade to 0.9.28.3.

When starting this endeavour I found a minor issue with the
check-lxdialog.sh script.  See the below attachment for a proposed patch
to make it more "POSIXly correct".

Regards
 /Jocke

--
Joachim Nilsson :: <joachim AT vmlinux DOT org>
+46(0)21-123348 :: <http://vmlinux.org/joachim>



Support POSIX shells by using HERE scripts instead of features from /bin/echo.

Some GNU/Linux distributions, most notably Debian and Ubuntu dash/ash as their
/bin/sh, see http://en.wikipedia.org/wiki/Debian_Almquist_shell for details.

Signed-off-by: Joachim Nilsson <[EMAIL PROTECTED]>

diff -ru -x .svn -x .o uClibc.svn/extra/config/lxdialog/check-lxdialog.sh 
uClibc/extra/config/lxdialog/check-lxdialog.sh
--- uClibc.svn/extra/config/lxdialog/check-lxdialog.sh  2008-08-23 
09:43:14.000000000 +0200
+++ uClibc/extra/config/lxdialog/check-lxdialog.sh      2008-08-23 
07:47:36.000000000 +0200
@@ -36,8 +36,10 @@
 
 # Check if we can link to ncurses
 check() {
-       echo -e " #include CURSES_LOC \n main() {}" |
-           $cc -xc - -o $tmp 2> /dev/null
+       $cc -xc - -o $tmp 2> /dev/null <<HERE
+#include CURSES_LOC
+main() {}
+HERE
        if [ $? != 0 ]; then
            echo " *** Unable to find the ncurses libraries or the"       1>&2
            echo " *** required header files."                            1>&2



begin:vcard
fn:Joachim Nilsson
n:Nilsson;Joachim
email;internet:[EMAIL PROTECTED]
x-mozilla-html:TRUE
url:http://vmlinux.org/joachim/
version:2.1
end:vcard

_______________________________________________
uClibc mailing list
uClibc@uclibc.org
http://busybox.net/cgi-bin/mailman/listinfo/uclibc

Reply via email to