As of 2.6.0test9 you get an incredibly cryptic error message when a .config
has CR-LF line endings. I had to use gdb to figure it out what was 
happening. There are unfortunately mailers that do that and .configs are 
sometimes sent by mail.

This patch makes Kconfig parse the config with cr-lf.

I did not audit the complete code base for similar issues, just fixed
the case I was running into.

-Andi

diff -u linux-test9bk4/scripts/kconfig/confdata.c-o 
linux-test9bk4/scripts/kconfig/confdata.c
--- linux-test9bk4/scripts/kconfig/confdata.c-o 2003-11-01 21:59:18.000000000 +0100
+++ linux-test9bk4/scripts/kconfig/confdata.c   2003-11-01 22:30:18.000000000 +0100
@@ -151,6 +151,9 @@
                        p2 = strchr(p, '\n');
                        if (p2)
                                *p2 = 0;
+                       p2 = strchr(p, '\r'); 
+                       if (p2)
+                               *p2 = 0;
                        sym = sym_find(line + 7);
                        if (!sym) {
                                fprintf(stderr, "%s:%d: trying to assign nonexistent 
symbol %s\n", name, lineno, line + 7);



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
kbuild-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/kbuild-devel

Reply via email to