* 2.5 vi .config ; make oldconfig not working @ 2002-11-05 16:50 Jens Axboe 2002-11-05 17:08 ` Jeff Garzik 0 siblings, 1 reply; 25+ messages in thread From: Jens Axboe @ 2002-11-05 16:50 UTC (permalink / raw) To: Linux Kernel Hi, Can it really be that one cannot edit a config file and run make oldconfig anymore? I'm used to editing an entry in .config and running oldconfig to fix things up, now it just reenables the option. That's clearly a major regression. -- Jens Axboe ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: 2.5 vi .config ; make oldconfig not working 2002-11-05 16:50 2.5 vi .config ; make oldconfig not working Jens Axboe @ 2002-11-05 17:08 ` Jeff Garzik 2002-11-05 17:13 ` Dave Jones 2002-11-05 17:14 ` Jens Axboe 0 siblings, 2 replies; 25+ messages in thread From: Jeff Garzik @ 2002-11-05 17:08 UTC (permalink / raw) To: Jens Axboe; +Cc: Linux Kernel Jens Axboe wrote: >Hi, > >Can it really be that one cannot edit a config file and run make >oldconfig anymore? I'm used to editing an entry in .config and running >oldconfig to fix things up, now it just reenables the option. That's >clearly a major regression. > > It works fine for me :) I don't think I could survive without the tried and true "vi .config ; make oldconfig" kernel configurator :) ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: 2.5 vi .config ; make oldconfig not working 2002-11-05 17:08 ` Jeff Garzik @ 2002-11-05 17:13 ` Dave Jones 2002-11-05 17:16 ` Jens Axboe 2002-11-05 17:21 ` Jeff Garzik 2002-11-05 17:14 ` Jens Axboe 1 sibling, 2 replies; 25+ messages in thread From: Dave Jones @ 2002-11-05 17:13 UTC (permalink / raw) To: Jeff Garzik; +Cc: Jens Axboe, Linux Kernel On Tue, Nov 05, 2002 at 12:08:33PM -0500, Jeff Garzik wrote: > >Can it really be that one cannot edit a config file and run make > >oldconfig anymore? I'm used to editing an entry in .config and running > >oldconfig to fix things up, now it just reenables the option. That's > >clearly a major regression. > > > It works fine for me :) > I don't think I could survive without the tried and true "vi .config ; > make oldconfig" kernel configurator :) Here it seems to work fine if I delete a line completely, but if I change CONFIG_FOO=y to #CONFIG_FOO=y it regenerates .config without the # This used to work fine. I guess the new parser is a little more strict.. Dave -- | Dave Jones. http://www.codemonkey.org.uk ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: 2.5 vi .config ; make oldconfig not working 2002-11-05 17:13 ` Dave Jones @ 2002-11-05 17:16 ` Jens Axboe 2002-11-05 17:21 ` Jeff Garzik 1 sibling, 0 replies; 25+ messages in thread From: Jens Axboe @ 2002-11-05 17:16 UTC (permalink / raw) To: Dave Jones, Jeff Garzik, Linux Kernel On Tue, Nov 05 2002, Dave Jones wrote: > On Tue, Nov 05, 2002 at 12:08:33PM -0500, Jeff Garzik wrote: > > > >Can it really be that one cannot edit a config file and run make > > >oldconfig anymore? I'm used to editing an entry in .config and running > > >oldconfig to fix things up, now it just reenables the option. That's > > >clearly a major regression. > > > > > It works fine for me :) > > I don't think I could survive without the tried and true "vi .config ; > > make oldconfig" kernel configurator :) > > Here it seems to work fine if I delete a line completely, but > if I change > CONFIG_FOO=y > to > #CONFIG_FOO=y Yeah that works. It will ask me about CONFIG_FOO when I run make oldconfig, though. I still think it's a regression, and a very annoying one too. -- Jens Axboe ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: 2.5 vi .config ; make oldconfig not working 2002-11-05 17:13 ` Dave Jones 2002-11-05 17:16 ` Jens Axboe @ 2002-11-05 17:21 ` Jeff Garzik 1 sibling, 0 replies; 25+ messages in thread From: Jeff Garzik @ 2002-11-05 17:21 UTC (permalink / raw) To: Dave Jones; +Cc: Jens Axboe, Linux Kernel Dave Jones wrote: >On Tue, Nov 05, 2002 at 12:08:33PM -0500, Jeff Garzik wrote: > > > >Can it really be that one cannot edit a config file and run make > > >oldconfig anymore? I'm used to editing an entry in .config and running > > >oldconfig to fix things up, now it just reenables the option. That's > > >clearly a major regression. > > > > > It works fine for me :) > > I don't think I could survive without the tried and true "vi .config ; > > make oldconfig" kernel configurator :) > >Here it seems to work fine if I delete a line completely, but >if I change >CONFIG_FOO=y >to >#CONFIG_FOO=y > >it regenerates .config without the # >This used to work fine. I guess the new parser >is a little more strict.. > > well, consider too that '# blah blah' was never really a completely-free-to-use namespace, it was considered special due to the shell-based parsing that needed to occur. '# CONFIG_FOO is not set' is the classic example of using the '#' space... Jeff ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: 2.5 vi .config ; make oldconfig not working 2002-11-05 17:08 ` Jeff Garzik 2002-11-05 17:13 ` Dave Jones @ 2002-11-05 17:14 ` Jens Axboe 2002-11-05 17:19 ` Jeff Garzik ` (2 more replies) 1 sibling, 3 replies; 25+ messages in thread From: Jens Axboe @ 2002-11-05 17:14 UTC (permalink / raw) To: Jeff Garzik; +Cc: Linux Kernel On Tue, Nov 05 2002, Jeff Garzik wrote: > Jens Axboe wrote: > > >Hi, > > > >Can it really be that one cannot edit a config file and run make > >oldconfig anymore? I'm used to editing an entry in .config and running > >oldconfig to fix things up, now it just reenables the option. That's > >clearly a major regression. > > > > > > > It works fine for me :) > > I don't think I could survive without the tried and true "vi .config ; Well me neither! > make oldconfig" kernel configurator :) Hmmm: axboe@burns:[.]linux-2.5-deadline-rbtree $ grep CONFIG_NFSD_V4 < .config 641:CONFIG_NFSD_V4=y axboe@burns:[.]linux-2.5-deadline-rbtree $ vi .config axboe@burns:[.]linux-2.5-deadline-rbtree $ grep CONFIG_NFSD_V4 < .config 641:CONFIG_NFSD_V4=n axboe@burns:[.]linux-2.5-deadline-rbtree $ make oldconfig axboe@burns:[.]linux-2.5-deadline-rbtree $ grep CONFIG_NFSD_V4 < .config 641:CONFIG_NFSD_V4=y -- Jens Axboe ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: 2.5 vi .config ; make oldconfig not working 2002-11-05 17:14 ` Jens Axboe @ 2002-11-05 17:19 ` Jeff Garzik 2002-11-05 17:21 ` Jens Axboe 2002-11-05 17:23 ` Randy.Dunlap 2002-11-05 17:26 ` Arjan van de Ven 2 siblings, 1 reply; 25+ messages in thread From: Jeff Garzik @ 2002-11-05 17:19 UTC (permalink / raw) To: Jens Axboe; +Cc: Linux Kernel Jens Axboe wrote: > > >Hmmm: > >axboe@burns:[.]linux-2.5-deadline-rbtree $ grep CONFIG_NFSD_V4 < .config >641:CONFIG_NFSD_V4=y >axboe@burns:[.]linux-2.5-deadline-rbtree $ vi .config >axboe@burns:[.]linux-2.5-deadline-rbtree $ grep CONFIG_NFSD_V4 < .config >641:CONFIG_NFSD_V4=n > '=n' is wrong, that should be "# CONFIG_NFSD_V4 is not set" still... or, just delete it. that's what I do :) the configurator will re-prompt for it, and I hit 'n' yeah, nfsd build is still broken here too :) ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: 2.5 vi .config ; make oldconfig not working 2002-11-05 17:19 ` Jeff Garzik @ 2002-11-05 17:21 ` Jens Axboe 2002-11-05 18:14 ` Joel Becker 2002-11-06 14:06 ` Roman Zippel 0 siblings, 2 replies; 25+ messages in thread From: Jens Axboe @ 2002-11-05 17:21 UTC (permalink / raw) To: Jeff Garzik; +Cc: Linux Kernel On Tue, Nov 05 2002, Jeff Garzik wrote: > Jens Axboe wrote: > > > > > > >Hmmm: > > > >axboe@burns:[.]linux-2.5-deadline-rbtree $ grep CONFIG_NFSD_V4 < .config > >641:CONFIG_NFSD_V4=y > >axboe@burns:[.]linux-2.5-deadline-rbtree $ vi .config > >axboe@burns:[.]linux-2.5-deadline-rbtree $ grep CONFIG_NFSD_V4 < .config > >641:CONFIG_NFSD_V4=n > > > > '=n' is wrong, that should be "# CONFIG_NFSD_V4 is not set" still... Why is that wrong? It worked before. > or, just delete it. that's what I do :) the configurator will > re-prompt for it, and I hit 'n' I don't want a prompt for y/n, I just set it to no! > yeah, nfsd build is still broken here too :) :-) -- Jens Axboe ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: 2.5 vi .config ; make oldconfig not working 2002-11-05 17:21 ` Jens Axboe @ 2002-11-05 18:14 ` Joel Becker 2002-11-05 18:15 ` Jens Axboe 2002-11-06 14:06 ` Roman Zippel 1 sibling, 1 reply; 25+ messages in thread From: Joel Becker @ 2002-11-05 18:14 UTC (permalink / raw) To: Jens Axboe; +Cc: Jeff Garzik, Linux Kernel On Tue, Nov 05, 2002 at 06:21:10PM +0100, Jens Axboe wrote: > > '=n' is wrong, that should be "# CONFIG_NFSD_V4 is not set" still... > > Why is that wrong? It worked before. I've run into kernels where '=n' didn't work. The old-skool canonical answer was "# CONFIG_FOO is not set", and that worked reliably in <2.5 Joel -- print STDOUT q Just another Perl hacker, unless $spring - Larry Wall Joel Becker Senior Member of Technical Staff Oracle Corporation E-mail: joel.becker@oracle.com Phone: (650) 506-8127 ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: 2.5 vi .config ; make oldconfig not working 2002-11-05 18:14 ` Joel Becker @ 2002-11-05 18:15 ` Jens Axboe 0 siblings, 0 replies; 25+ messages in thread From: Jens Axboe @ 2002-11-05 18:15 UTC (permalink / raw) To: Joel Becker; +Cc: Jeff Garzik, Linux Kernel On Tue, Nov 05 2002, Joel Becker wrote: > On Tue, Nov 05, 2002 at 06:21:10PM +0100, Jens Axboe wrote: > > > '=n' is wrong, that should be "# CONFIG_NFSD_V4 is not set" still... > > > > Why is that wrong? It worked before. > > I've run into kernels where '=n' didn't work. The old-skool Never ever had a problem with it, and I've compiled pretty much every single kernel in the last handful of kernel cycles. > canonical answer was "# CONFIG_FOO is not set", and that worked reliably > in <2.5 Less handy, though. -- Jens Axboe ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: 2.5 vi .config ; make oldconfig not working 2002-11-05 17:21 ` Jens Axboe 2002-11-05 18:14 ` Joel Becker @ 2002-11-06 14:06 ` Roman Zippel 2002-11-06 14:13 ` Jens Axboe 1 sibling, 1 reply; 25+ messages in thread From: Roman Zippel @ 2002-11-06 14:06 UTC (permalink / raw) To: Jens Axboe; +Cc: Jeff Garzik, Linux Kernel Hi, On Tue, 5 Nov 2002, Jens Axboe wrote: > > >axboe@burns:[.]linux-2.5-deadline-rbtree $ grep CONFIG_NFSD_V4 < .config > > >641:CONFIG_NFSD_V4=y > > >axboe@burns:[.]linux-2.5-deadline-rbtree $ vi .config > > >axboe@burns:[.]linux-2.5-deadline-rbtree $ grep CONFIG_NFSD_V4 < .config > > >641:CONFIG_NFSD_V4=n > > > > > > > '=n' is wrong, that should be "# CONFIG_NFSD_V4 is not set" still... > > Why is that wrong? It worked before. It was not documented and I only implemented that was documented. :) It's of course no problem to change that. bye, Roman ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: 2.5 vi .config ; make oldconfig not working 2002-11-06 14:06 ` Roman Zippel @ 2002-11-06 14:13 ` Jens Axboe 0 siblings, 0 replies; 25+ messages in thread From: Jens Axboe @ 2002-11-06 14:13 UTC (permalink / raw) To: Roman Zippel; +Cc: Jeff Garzik, Linux Kernel On Wed, Nov 06 2002, Roman Zippel wrote: > Hi, > > On Tue, 5 Nov 2002, Jens Axboe wrote: > > > > >axboe@burns:[.]linux-2.5-deadline-rbtree $ grep CONFIG_NFSD_V4 < .config > > > >641:CONFIG_NFSD_V4=y > > > >axboe@burns:[.]linux-2.5-deadline-rbtree $ vi .config > > > >axboe@burns:[.]linux-2.5-deadline-rbtree $ grep CONFIG_NFSD_V4 < .config > > > >641:CONFIG_NFSD_V4=n > > > > > > > > > > '=n' is wrong, that should be "# CONFIG_NFSD_V4 is not set" still... > > > > Why is that wrong? It worked before. > > It was not documented and I only implemented that was documented. :) > It's of course no problem to change that. Thanks, patch from Petr is perfect :-) -- Jens Axboe ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: 2.5 vi .config ; make oldconfig not working 2002-11-05 17:14 ` Jens Axboe 2002-11-05 17:19 ` Jeff Garzik @ 2002-11-05 17:23 ` Randy.Dunlap 2002-11-05 17:26 ` Arjan van de Ven 2 siblings, 0 replies; 25+ messages in thread From: Randy.Dunlap @ 2002-11-05 17:23 UTC (permalink / raw) To: Jens Axboe; +Cc: Jeff Garzik, Linux Kernel On Tue, 5 Nov 2002, Jens Axboe wrote: | > make oldconfig" kernel configurator :) | | Hmmm: | | axboe@burns:[.]linux-2.5-deadline-rbtree $ grep CONFIG_NFSD_V4 < .config | 641:CONFIG_NFSD_V4=y | axboe@burns:[.]linux-2.5-deadline-rbtree $ vi .config | axboe@burns:[.]linux-2.5-deadline-rbtree $ grep CONFIG_NFSD_V4 < .config | 641:CONFIG_NFSD_V4=n | axboe@burns:[.]linux-2.5-deadline-rbtree $ make oldconfig | axboe@burns:[.]linux-2.5-deadline-rbtree $ grep CONFIG_NFSD_V4 < .config | 641:CONFIG_NFSD_V4=y Yes, I saw this behavior last night also (on different options). -- ~Randy ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: 2.5 vi .config ; make oldconfig not working 2002-11-05 17:14 ` Jens Axboe 2002-11-05 17:19 ` Jeff Garzik 2002-11-05 17:23 ` Randy.Dunlap @ 2002-11-05 17:26 ` Arjan van de Ven 2002-11-05 17:26 ` Jens Axboe 2 siblings, 1 reply; 25+ messages in thread From: Arjan van de Ven @ 2002-11-05 17:26 UTC (permalink / raw) To: Jens Axboe; +Cc: Jeff Garzik, Linux Kernel [-- Attachment #1: Type: text/plain, Size: 362 bytes --] On Tue, 2002-11-05 at 18:14, Jens Axboe wrote: > axboe@burns:[.]linux-2.5-deadline-rbtree $ grep CONFIG_NFSD_V4 < .config > 641:CONFIG_NFSD_V4=y > axboe@burns:[.]linux-2.5-deadline-rbtree $ vi .config > axboe@burns:[.]linux-2.5-deadline-rbtree $ grep CONFIG_NFSD_V4 < .config > 641:CONFIG_NFSD_V4=n =n never worked... # CONFIG_NFSD_V4 is not set [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: 2.5 vi .config ; make oldconfig not working 2002-11-05 17:26 ` Arjan van de Ven @ 2002-11-05 17:26 ` Jens Axboe 2002-11-05 17:27 ` Jens Axboe ` (2 more replies) 0 siblings, 3 replies; 25+ messages in thread From: Jens Axboe @ 2002-11-05 17:26 UTC (permalink / raw) To: Arjan van de Ven; +Cc: Jeff Garzik, Linux Kernel On Tue, Nov 05 2002, Arjan van de Ven wrote: > On Tue, 2002-11-05 at 18:14, Jens Axboe wrote: > > > axboe@burns:[.]linux-2.5-deadline-rbtree $ grep CONFIG_NFSD_V4 < .config > > 641:CONFIG_NFSD_V4=y > > axboe@burns:[.]linux-2.5-deadline-rbtree $ vi .config > > axboe@burns:[.]linux-2.5-deadline-rbtree $ grep CONFIG_NFSD_V4 < .config > > 641:CONFIG_NFSD_V4=n > > =n never worked... You're wrong, it's always worked. I've never used anything but that. > # CONFIG_NFSD_V4 is not set Come on, you really expect me to type the whole damn thing? That's silly. -- Jens Axboe ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: 2.5 vi .config ; make oldconfig not working 2002-11-05 17:26 ` Jens Axboe @ 2002-11-05 17:27 ` Jens Axboe 2002-11-05 18:20 ` Alan Cox 2002-11-06 19:39 ` 2.5 vi .config ; make oldconfig not working Rob Landley 2 siblings, 0 replies; 25+ messages in thread From: Jens Axboe @ 2002-11-05 17:27 UTC (permalink / raw) To: Arjan van de Ven; +Cc: Jeff Garzik, Linux Kernel On Tue, Nov 05 2002, Jens Axboe wrote: > On Tue, Nov 05 2002, Arjan van de Ven wrote: > > On Tue, 2002-11-05 at 18:14, Jens Axboe wrote: > > > > > axboe@burns:[.]linux-2.5-deadline-rbtree $ grep CONFIG_NFSD_V4 < .config > > > 641:CONFIG_NFSD_V4=y > > > axboe@burns:[.]linux-2.5-deadline-rbtree $ vi .config > > > axboe@burns:[.]linux-2.5-deadline-rbtree $ grep CONFIG_NFSD_V4 < .config > > > 641:CONFIG_NFSD_V4=n > > > > =n never worked... > > You're wrong, it's always worked. I've never used anything but that. 2.5.44: axboe@burns:[.]/kernel/iosched/linux-2.5 $ grep NFSD_V4 < .config 750:CONFIG_NFSD_V4=y axboe@burns:[.]/kernel/iosched/linux-2.5 $ vi .config axboe@burns:[.]/kernel/iosched/linux-2.5 $ grep NFSD_V4 < .config 750:CONFIG_NFSD_V4=n axboe@burns:[.]/kernel/iosched/linux-2.5 $ grep NFSD_V4 < .config 750:# CONFIG_NFSD_V4 is not set Bingo, perfect. -- Jens Axboe ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: 2.5 vi .config ; make oldconfig not working 2002-11-05 17:26 ` Jens Axboe 2002-11-05 17:27 ` Jens Axboe @ 2002-11-05 18:20 ` Alan Cox 2002-11-05 18:14 ` Jens Axboe 2002-11-05 18:55 ` [PATCH] Allow 'n' as a symbol value in the .config file Petr Baudis 2002-11-06 19:39 ` 2.5 vi .config ; make oldconfig not working Rob Landley 2 siblings, 2 replies; 25+ messages in thread From: Alan Cox @ 2002-11-05 18:20 UTC (permalink / raw) To: Jens Axboe; +Cc: Arjan van de Ven, Jeff Garzik, Linux Kernel Mailing List On Tue, 2002-11-05 at 17:26, Jens Axboe wrote: > You're wrong, it's always worked. I've never used anything but that. > > > # CONFIG_NFSD_V4 is not set > > Come on, you really expect me to type the whole damn thing? That's > silly. So write a sed script to turn n into "is not set" or submit a change to cover it. Its luck =n ever did what you expected though. ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: 2.5 vi .config ; make oldconfig not working 2002-11-05 18:20 ` Alan Cox @ 2002-11-05 18:14 ` Jens Axboe 2002-11-05 19:30 ` Sam Ravnborg 2002-11-05 20:16 ` Peter H. Ruegg 2002-11-05 18:55 ` [PATCH] Allow 'n' as a symbol value in the .config file Petr Baudis 1 sibling, 2 replies; 25+ messages in thread From: Jens Axboe @ 2002-11-05 18:14 UTC (permalink / raw) To: Alan Cox; +Cc: Arjan van de Ven, Jeff Garzik, Linux Kernel Mailing List On Tue, Nov 05 2002, Alan Cox wrote: > On Tue, 2002-11-05 at 17:26, Jens Axboe wrote: > > You're wrong, it's always worked. I've never used anything but that. > > > > > # CONFIG_NFSD_V4 is not set > > > > Come on, you really expect me to type the whole damn thing? That's > > silly. > > So write a sed script to turn n into "is not set" or submit a change to > cover it. Its luck =n ever did what you expected though. 5 years of luck isn't bad, I ought to start gambling. I'll write the script, just a damn shame that this feature is gone now. .config editing is less powerful now. -- Jens Axboe ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: 2.5 vi .config ; make oldconfig not working 2002-11-05 18:14 ` Jens Axboe @ 2002-11-05 19:30 ` Sam Ravnborg 2002-11-05 19:42 ` Petr Baudis 2002-11-05 20:16 ` Peter H. Ruegg 1 sibling, 1 reply; 25+ messages in thread From: Sam Ravnborg @ 2002-11-05 19:30 UTC (permalink / raw) To: Jens Axboe Cc: Alan Cox, Arjan van de Ven, Jeff Garzik, Linux Kernel Mailing List On Tue, Nov 05, 2002 at 07:14:31PM +0100, Jens Axboe wrote: > I'll write the script, just a damn shame that this feature is gone now. > .config editing is less powerful now. The following patch should make most garbage, such as =n, result in # CONFIG_FOO is not set without any user confirmation. Roman - the code uses "//" for comments. Thats not usual kernel style. Sam ===== confdata.c 1.1 vs edited ===== --- 1.1/scripts/kconfig/confdata.c Wed Oct 30 02:16:44 2002 +++ edited/confdata.c Tue Nov 5 20:25:59 2002 @@ -147,14 +147,28 @@ } switch (sym->type) { case S_BOOLEAN: - sym->def = symbol_yes.curr; - sym->flags &= ~SYMBOL_NEW; + if (p[0] == 'y') { + sym->def = symbol_yes.curr; + sym->flags &= ~SYMBOL_NEW; + } + else + { + sym->def = symbol_no.curr; + sym->flags &= ~SYMBOL_NEW; + continue; + } break; case S_TRISTATE: if (p[0] == 'm') sym->def = symbol_mod.curr; - else + else if (p[0] == 'y') sym->def = symbol_yes.curr; + else + { + sym->def = symbol_no.curr; + sym->flags &= ~SYMBOL_NEW; + continue; + } sym->flags &= ~SYMBOL_NEW; break; case S_STRING: ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: 2.5 vi .config ; make oldconfig not working 2002-11-05 19:30 ` Sam Ravnborg @ 2002-11-05 19:42 ` Petr Baudis 2002-11-05 20:51 ` Sam Ravnborg 0 siblings, 1 reply; 25+ messages in thread From: Petr Baudis @ 2002-11-05 19:42 UTC (permalink / raw) To: Jens Axboe, Alan Cox, Arjan van de Ven, Jeff Garzik, Linux Kernel Mailing List Dear diary, on Tue, Nov 05, 2002 at 08:30:04PM CET, I got a letter, where Sam Ravnborg <sam@ravnborg.org> told me, that... > On Tue, Nov 05, 2002 at 07:14:31PM +0100, Jens Axboe wrote: > > I'll write the script, just a damn shame that this feature is gone now. > > .config editing is less powerful now. > The following patch should make most garbage, such as =n, result in > # CONFIG_FOO is not set > without any user confirmation. I don't think this is actually a good idea. We break forward compatibility with this (possibly, in future we will want to add something like "yes" or you don't know what..), and then you will still get "no" for no obvious reason - asking is much saner approach here, IMHO. If we didn't understand it, assuming 'no' is not a safe way, I believe. -- Petr "Pasky" Baudis . This host is a black hole at HTTP wavelengths. GETs go in, and nothing comes out, not even Hawking radiation. -- Graaagh the Mighty on rec.games.roguelike.angband . Public PGP key && geekcode && homepage: http://pasky.ji.cz/~pasky/ ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: 2.5 vi .config ; make oldconfig not working 2002-11-05 19:42 ` Petr Baudis @ 2002-11-05 20:51 ` Sam Ravnborg 0 siblings, 0 replies; 25+ messages in thread From: Sam Ravnborg @ 2002-11-05 20:51 UTC (permalink / raw) To: Jens Axboe, Alan Cox, Arjan van de Ven, Jeff Garzik, Linux Kernel Mailing List On Tue, Nov 05, 2002 at 08:42:29PM +0100, Petr Baudis wrote: > > The following patch should make most garbage, such as =n, result in > > # CONFIG_FOO is not set > > without any user confirmation. > > I don't think this is actually a good idea. We break forward compatibility with > this (possibly, in future we will want to add something like "yes" or you don't > know what..), and then you will still get "no" for no obvious reason - asking > is much saner approach here, IMHO. If we didn't understand it, assuming 'no' is > not a safe way, I believe. What actually happens is that any non-recognized value is assumed to be 'n'. So if 'yes' is recognised, then fine. And with the simple parser used today "CONFIG_FOO=yes" would be recognised as yes, because it checks only the 'y'. I did not look that close on the patch you sent, but I think they have the same functionality. If this wasn't after feature freeze I would have liked to see the hidden .config file to be replaced by for example Kconfigdata or similar. So many times I have seen people being asked to backup there configuration, which is located in a hidden file. If people should keep their fingers away from it - then we should note that in the top of the file. As we do in the rest of the kernel. And then we could have invented a better syntax, that was not dictated by bash or similar. Something to propose in the 2.7 timeframe. Sam ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: 2.5 vi .config ; make oldconfig not working 2002-11-05 18:14 ` Jens Axboe 2002-11-05 19:30 ` Sam Ravnborg @ 2002-11-05 20:16 ` Peter H. Ruegg 1 sibling, 0 replies; 25+ messages in thread From: Peter H. Ruegg @ 2002-11-05 20:16 UTC (permalink / raw) To: Jens Axboe; +Cc: Linux Kernel Mailing List > I'll write the script, just a damn shame that this feature is gone now. > .config editing is less powerful now. Well, the script is easy... cat << DONE >> .vimrc :map - :s/=y$/ is not set/\r:s/^/# / DONE Needs even less work than before now... --8<------------------------------------------------------------------------- main(){char*s="O_>>^PQAHBbPQAHBbPOOH^^PAAHBJPAAHBbPA_H>BB";int i,j,k=1,l,m,n; for(j=0;j<7;j++)for(l=0;m=l-6+j,i=m/6,n=j*6+i,k=1<<m%6,l<41-j;l++) putchar(l<6-j?' ':l==40-j?'\n':k&&s[n]&k?'*':' ');} ^ permalink raw reply [flat|nested] 25+ messages in thread
* [PATCH] Allow 'n' as a symbol value in the .config file. 2002-11-05 18:20 ` Alan Cox 2002-11-05 18:14 ` Jens Axboe @ 2002-11-05 18:55 ` Petr Baudis 2002-11-05 18:59 ` Jens Axboe 1 sibling, 1 reply; 25+ messages in thread From: Petr Baudis @ 2002-11-05 18:55 UTC (permalink / raw) To: Alan Cox Cc: Jens Axboe, Arjan van de Ven, Jeff Garzik, zippel, Linux Kernel Mailing List Hello, this patch (against 2.5.46) enabled recognition of 'n' tristate/boolean symbol value in the .config file. This allows more convenient manual editing of the .config file. Please apply. confdata.c | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) Kind regards, Petr Baudis --- linux/scripts/kconfig/confdata.c Fri Nov 1 22:22:07 2002 +++ linux+pasky/scripts/kconfig/confdata.c Tue Nov 5 19:54:12 2002 @@ -1,6 +1,9 @@ /* * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> * Released under the terms of the GNU GPL v2.0. + * + * Allow 'n' as a symbol value. + * 2002-11-05 Petr Baudis <pasky@ucw.cz> */ #include <ctype.h> @@ -146,13 +149,13 @@ break; } switch (sym->type) { - case S_BOOLEAN: - sym->def = symbol_yes.curr; - sym->flags &= ~SYMBOL_NEW; - break; case S_TRISTATE: if (p[0] == 'm') sym->def = symbol_mod.curr; + else + case S_BOOLEAN: + if (p[0] == 'n') + sym->def = symbol_no.curr; else sym->def = symbol_yes.curr; sym->flags &= ~SYMBOL_NEW; ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [PATCH] Allow 'n' as a symbol value in the .config file. 2002-11-05 18:55 ` [PATCH] Allow 'n' as a symbol value in the .config file Petr Baudis @ 2002-11-05 18:59 ` Jens Axboe 0 siblings, 0 replies; 25+ messages in thread From: Jens Axboe @ 2002-11-05 18:59 UTC (permalink / raw) To: Alan Cox, Arjan van de Ven, Jeff Garzik, zippel, Linux Kernel Mailing List Cc: zippel On Tue, Nov 05 2002, Petr Baudis wrote: > Hello, > > this patch (against 2.5.46) enabled recognition of 'n' tristate/boolean > symbol value in the .config file. This allows more convenient manual > editing of the .config file. Please apply. Indeed, thank you very much! Confirmed to work here. Roman, can you pass on this change? -- Jens Axboe ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: 2.5 vi .config ; make oldconfig not working 2002-11-05 17:26 ` Jens Axboe 2002-11-05 17:27 ` Jens Axboe 2002-11-05 18:20 ` Alan Cox @ 2002-11-06 19:39 ` Rob Landley 2 siblings, 0 replies; 25+ messages in thread From: Rob Landley @ 2002-11-06 19:39 UTC (permalink / raw) To: Jens Axboe, Arjan van de Ven; +Cc: Jeff Garzik, Linux Kernel On Tuesday 05 November 2002 17:26, Jens Axboe wrote: > On Tue, Nov 05 2002, Arjan van de Ven wrote: > > On Tue, 2002-11-05 at 18:14, Jens Axboe wrote: > > > axboe@burns:[.]linux-2.5-deadline-rbtree $ grep CONFIG_NFSD_V4 < > > > .config 641:CONFIG_NFSD_V4=y > > > axboe@burns:[.]linux-2.5-deadline-rbtree $ vi .config > > > axboe@burns:[.]linux-2.5-deadline-rbtree $ grep CONFIG_NFSD_V4 < > > > .config 641:CONFIG_NFSD_V4=n > > > > =n never worked... > > You're wrong, it's always worked. I've never used anything but that. > > > # CONFIG_NFSD_V4 is not set > > Come on, you really expect me to type the whole damn thing? That's > silly. Some of the #ifdef cases simply test whether the config option is defined. (Lots of #ifdef CONFIG_DEBUG_BLAH type stuff.) Setting them to no counts as defining them, so it thinks it's a y. (I remember cml2 hit that way back...) Obviously, CONFIG_NFSD_V4 is not one of them... Rob -- http://penguicon.sf.net - Terry Pratchett, Eric Raymond, Pete Abrams, Illiad, CmdrTaco, liquid nitrogen ice cream, and caffienated jello. Well why not? ^ permalink raw reply [flat|nested] 25+ messages in thread
end of thread, other threads:[~2002-11-07 1:30 UTC | newest] Thread overview: 25+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2002-11-05 16:50 2.5 vi .config ; make oldconfig not working Jens Axboe 2002-11-05 17:08 ` Jeff Garzik 2002-11-05 17:13 ` Dave Jones 2002-11-05 17:16 ` Jens Axboe 2002-11-05 17:21 ` Jeff Garzik 2002-11-05 17:14 ` Jens Axboe 2002-11-05 17:19 ` Jeff Garzik 2002-11-05 17:21 ` Jens Axboe 2002-11-05 18:14 ` Joel Becker 2002-11-05 18:15 ` Jens Axboe 2002-11-06 14:06 ` Roman Zippel 2002-11-06 14:13 ` Jens Axboe 2002-11-05 17:23 ` Randy.Dunlap 2002-11-05 17:26 ` Arjan van de Ven 2002-11-05 17:26 ` Jens Axboe 2002-11-05 17:27 ` Jens Axboe 2002-11-05 18:20 ` Alan Cox 2002-11-05 18:14 ` Jens Axboe 2002-11-05 19:30 ` Sam Ravnborg 2002-11-05 19:42 ` Petr Baudis 2002-11-05 20:51 ` Sam Ravnborg 2002-11-05 20:16 ` Peter H. Ruegg 2002-11-05 18:55 ` [PATCH] Allow 'n' as a symbol value in the .config file Petr Baudis 2002-11-05 18:59 ` Jens Axboe 2002-11-06 19:39 ` 2.5 vi .config ; make oldconfig not working Rob Landley
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.