From: Russell King <rmk@arm.linux.org.uk>
To: Roman Zippel <zippel@linux-m68k.org>
Cc: Denis Vlasenko <vda@port.imtp.ilyichevsk.odessa.ua>,
Sam Ravnborg <sam@ravnborg.org>,
Kai Germaschewski <kai-germaschewski@uiowa.edu>,
linux-kernel@vger.kernel.org
Subject: Re: 2.5: troubles with piping make output
Date: Sun, 3 Nov 2002 20:24:46 +0000 [thread overview]
Message-ID: <20021103202446.F5589@flint.arm.linux.org.uk> (raw)
In-Reply-To: <Pine.LNX.4.44.0211032106010.6949-100000@serv>; from zippel@linux-m68k.org on Sun, Nov 03, 2002 at 09:10:54PM +0100
On Sun, Nov 03, 2002 at 09:10:54PM +0100, Roman Zippel wrote:
> > Looks like fflush() got forgotten somewhere ;)
>
> What shell are you using?
> This is what should happen:
>
> $ make 2>&1 | tee
> make[1]: `scripts/kconfig/conf' is up to date.
> ./scripts/kconfig/conf -s arch/i386/Kconfig
> #
> # using defaults found in .config
> #
> *
> * Restart config...
> *
> *
> * Processor type and features
> *
> Processor family (386, 486, 586/K5/5x86/6x86/6x86MX, Pentium-Classic, Pentium-MMX, Pentium-Pro/Celeron/Pentium-II, Pentium-III/Celeron(Coppermine), Pentium-4, K6/K6-II/K6-III, Athlon/Duron/K7, Elan, Crusoe, Winchip-C6, Winchip-2, Winchip-2A/Winchip-3, CyrixIII/VIA-C3) [Pentium-Pro/Celeron/Pentium-II] (NEW) aborted!
>
> Console input/output is redirected. Run 'make oldconfig' to update configuration.
>
> make: *** [include/linux/autoconf.h] Error 1
No thanks. That breaks my build scripts. I don't want to go logging into
multiple machines just to run make oldconfig when the old system worked
perfectly well.
"perfectly well" here means that make oldconfig worked over ssh, with the
local end logging the stdout to a file as well as the terminal, with stdin
from the terminal. It is quite reasonable to expect the configuration to
continue as normal.
So, here's a patch that adds the necessary fflush to make this situation
work (for me at least.)
diff -u orig/scripts/kconfig/conf.c linux/scripts/kconfig/conf.c
--- orig/scripts/kconfig/conf.c Sat Nov 2 18:58:34 2002
+++ linux/scripts/kconfig/conf.c Fri Nov 1 17:02:19 2002
@@ -115,6 +115,7 @@
exit(1);
}
case ask_all:
+ fflush(stdout);
fgets(line, 128, stdin);
return;
case set_default:
--
Russell King (rmk@arm.linux.org.uk) The developer of ARM Linux
http://www.arm.linux.org.uk/personal/aboutme.html
next prev parent reply other threads:[~2002-11-03 20:18 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-03 16:14 2.5: troubles with piping make output Denis Vlasenko
2002-11-03 18:28 ` Sam Ravnborg
2002-11-04 0:38 ` Denis Vlasenko
2002-11-03 20:10 ` Roman Zippel
2002-11-03 20:24 ` Russell King [this message]
2002-11-03 20:54 ` Roman Zippel
2002-11-03 21:24 ` Russell King
2002-11-03 21:29 ` Roman Zippel
2002-11-03 21:39 ` Russell King
2002-11-03 21:55 ` Roman Zippel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20021103202446.F5589@flint.arm.linux.org.uk \
--to=rmk@arm.linux.org.uk \
--cc=kai-germaschewski@uiowa.edu \
--cc=linux-kernel@vger.kernel.org \
--cc=sam@ravnborg.org \
--cc=vda@port.imtp.ilyichevsk.odessa.ua \
--cc=zippel@linux-m68k.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.