From: Sam Ravnborg <sam@ravnborg.org>
To: Aristeu Rozanski <aris@redhat.com>
Cc: Michal Marek <mmarek@suse.cz>,
lkml <linux-kernel@vger.kernel.org>,
linux-kbuild <linux-kbuild@vger.kernel.org>,
Stephen Rothwell <sfr@canb.auug.org.au>,
Roman Zippel <zippel@linux-m68k.org>,
Uwe Kleine-Koig <u.kleine-koenig@pengutronix.de>,
Linus Torvalds <torvalds@linux-foundation.org>
Subject: Re: [RFC PATCH] kconfig: use long options in conf
Date: Fri, 30 Jul 2010 01:04:19 +0200 [thread overview]
Message-ID: <20100729230419.GA9357@merkur.ravnborg.org> (raw)
In-Reply-To: <20100729195052.GB20261@redhat.com>
On Thu, Jul 29, 2010 at 03:50:52PM -0400, Aristeu Rozanski wrote:
> On Thu, Jul 29, 2010 at 09:34:55PM +0200, Sam Ravnborg wrote:
> > If you have a simple command that give you a list of new
> > symbols then this is easy to script as Michal also
> > shows with the below example.
> >
> > > > How about
> > > > new=$(make listnewconfig)
> > > > if test -n "$new"; then
> > > > echo "Please set the following options:" >&2
> > > > echo "$new" >&2
> > > > exit 1
> > > > fi
> > > > ? Wouldn't that be the same as nonint_oldconfig before?
> > > what's the other use cases for listnewconfig (other than a incomplete
> > > nonint_oldconfig)?
> >
> > listnewconfig is for everyone that like to see a list of new
> > config options - without touching the current configuration.
> >
> > By limiting listnewconfig to do only one thing you actually
> > create further uses than before.
First off let me correct myself.
nonint_oldconfig does the following:
- print any new options to stderr
- if tere are any new options exit with exit code 2
- it does _not_ touch the current configuration (as I wrongly implied above)
listnewconfig does the following:
- print any new options to stdout
- return with exit code 0 (success)
- it does not touch the current configuration
So the change we discuss is only the exit code.
You indicated you were OK with the name change,
and I assume the change from stderr => stdout is OK too.
> >
> > This is not about how well it applies to the tailored
> > use in redhat's current scripts.
> *sigh* I think we have people able to handle such complex changes.
>
> this is not what it's about. I don't care how it's called or if scripts
> will need to be changed. What I want to know is if either:
> a) we're reducing functionality of something in order to support more *real*
> use cases with the same code, making it more generic;
> or
> b) we're reducing functionality based in theorical use cases.
>
> if it's (a), you get my ACK
I can try to come up with some use cases that I consider real...
a) List the number of new options after I upgraded my kernel.
It can be used to judge the amount of time used to answer
oldconfig manually.
If make tells me that conf had an exit code != success how
do I then know the list is complete?
b) List the number of new options when I bring in an old config.
Same comment as in a) about the exit code.
c) List the options I need to carefully lookup to judge what to do about them.
A variant of a) and b) - the one I expect all distributions uses in some way.
[scripts/diffconfig is one way]
d) We can use listnewconfig in scripts without failing due to
conf exit with an error code when there are new options.
And use of stdout is thus more convinient.
[And I know the counter argument is that with the exit code it is easy
to judge if there is any new options].
I hope this shows enough examples that you consider in the _real_
category that you can give it your ack.
Sam
next prev parent reply other threads:[~2010-07-29 23:04 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-25 21:38 [RFC] kconfig: introduce alldefconfig + savedefconfig Sam Ravnborg
2010-07-25 21:38 ` [PATCH 1/4] kconfig: save location of config symbols Sam Ravnborg
2010-07-25 21:39 ` [PATCH 2/4] kconfig: print more info when we see a recursive dependency Sam Ravnborg
2010-07-25 21:39 ` [PATCH 3/4] kconfig: add alldefconfig Sam Ravnborg
2010-07-25 21:40 ` [PATCH 4/4] kconfig: add savedefconfig Sam Ravnborg
2010-07-27 15:42 ` Michal Marek
2010-07-27 16:50 ` Sam Ravnborg
2010-07-28 20:36 ` [RFC PATCH] kconfig: use long options in conf Sam Ravnborg
2010-07-29 8:13 ` Sam Ravnborg
2010-07-29 8:15 ` [PATCH 1/2] kconfig: rename loose_nonint_oldconfig => oldnoconfig Sam Ravnborg
2010-07-29 8:16 ` [PATCH 2/2] kconfig: change nonint_oldconfig to listnewconfig Sam Ravnborg
2010-07-29 9:23 ` [RFC PATCH] kconfig: use long options in conf Michal Marek
2010-07-29 14:47 ` Aristeu Rozanski
2010-07-29 15:04 ` Michal Marek
2010-07-29 15:16 ` Aristeu Rozanski
2010-07-29 19:34 ` Sam Ravnborg
2010-07-29 19:50 ` Aristeu Rozanski
2010-07-29 23:04 ` Sam Ravnborg [this message]
2010-07-30 14:53 ` Aristeu Rozanski
2010-07-29 9:17 ` Michal Marek
2010-07-29 9:39 ` Sam Ravnborg
2010-07-29 10:08 ` Michal Marek
2010-07-29 14:30 ` Randy Dunlap
2010-07-29 19:29 ` Sam Ravnborg
2010-07-25 22:20 ` [RFC] kconfig: introduce alldefconfig + savedefconfig Sam Ravnborg
2010-07-28 6:47 ` Uwe Kleine-König
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=20100729230419.GA9357@merkur.ravnborg.org \
--to=sam@ravnborg.org \
--cc=aris@redhat.com \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mmarek@suse.cz \
--cc=sfr@canb.auug.org.au \
--cc=torvalds@linux-foundation.org \
--cc=u.kleine-koenig@pengutronix.de \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®