[PATCH 13/15] kconfig/[mn]conf: make it explicit in the search box that a regexp is possible

2013-06-24 Thread Yann E. MORIN
From: "Yann E. MORIN" Reported-by: Jean Delvare Signed-off-by: "Yann E. MORIN" Cc: Jean Delvare Cc: Michal Marek --- scripts/kconfig/mconf.c | 2 +- scripts/kconfig/nconf.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/kconfig/mconf

[PATCH 15/15] kconfig: fix randomising choice entries in presence of KCONFIG_ALLCONFIG

2013-06-24 Thread Yann E. MORIN
From: "Yann E. MORIN" Currently, randconfig does randomise choice entries, unless KCONFIG_ALLCONFIG is specified. For example, given those two files (Thomas' test-case): ---8<--- Config.test.in config OPTIONA bool "Option A" choice

[PATCH 14/15] kconfig: loop as long as we changed some symbols in randconfig

2013-06-24 Thread Yann E. MORIN
From: "Yann E. MORIN" Because of choice-in-a-choice constructs, it can happen that not all symbols are assigned a value during randconfig, leading in rare cases to this situation: ---8<--- choice-in-choice.in choice bool "A/B/C" config A

[PATCH 10/15] kconfig/conf: accept a base-16 seed for randconfig

2013-06-24 Thread Yann E. MORIN
From: "Yann E. MORIN" Signed-off-by: "Yann E. MORIN" --- scripts/kconfig/conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c index bde5b95..94521c7 100644 --- a/scripts/kconfig/conf.c +++ b/scripts/kcon

Re: [PATCH 12/14] kconfig: sort found symbols by relevance

2013-06-24 Thread Yann E. MORIN
Jean, Michal, All, On 2013-06-24 09:57 +0200, Jean Delvare spake thusly: > Le Wednesday 19 June 2013 à 00:45 +0200, Yann E. MORIN a écrit : > > When searching for symbols, return the symbols sorted by relevance. > > > > Sorting is done as thus: > > - first,

Re: [pull request] Pull request for branch yem-kconfig-for-next

2013-06-19 Thread Yann E. MORIN
Michal, All, On 2013-06-19 22:40 +0200, Michal Marek spake thusly: > Dne 19.6.2013 00:44, Yann E. MORIN napsal(a): > > From: "Yann E. MORIN" > > > > Hello Michal, All! > > > > These are the patches against kconfig that I have accumulated for 3.1

[PATCH 01/14] kconfig: Fix defconfig when one choice menu selects options that another choice menu depends on

2013-06-18 Thread Yann E. MORIN
-8<--- when the expected result would be: .config: ---8<--- CONFIG_MODULES=y CONFIG_CONFIGFS_FS=y CONFIG_USB_LIBCOMPOSITE=y CONFIG_USB_ZERO=y CONFIG_CRC32=y CONFIG_CRC32_SLICEBY8=y ---8<--- Signed-off-by: Arve Hjønnevåg [yann.morin.1...@free.fr: add the resulting .config to commit log,

[PATCH 03/14] kconfig/lxdialog: Use new mininimum resize definitions in conf_choice()

2013-06-18 Thread Yann E. MORIN
From: Sedat Dilek This is a cleanup which uses the proper (new) definitions and does not change current behaviour. Signed-off-by: Sedat Dilek Reviewed-by: "Yann E. MORIN" Tested-by: "Yann E. MORIN" Signed-off-by: "Yann E. MORIN" --- Yann had some more ideas on

[pull request] Pull request for branch yem-kconfig-for-next

2013-06-18 Thread Yann E. MORIN
From: "Yann E. MORIN" Hello Michal, All! These are the patches against kconfig that I have accumulated for 3.11, and for which I plan to later send a proper pull-request. Note-whorthy this time: - fix values of tristates that are selected by boolean choices (Arve) -

[PATCH 05/14] mconf: use function calls instead of ncurses' variables LINES and COLS

2013-06-18 Thread Yann E. MORIN
calls to get window dimensions. init_dialog() could make use of the variables, but for the sake of consistency we do not change it's current use of the macro getmaxyx(). [1] ncurses(3X) Signed-off-by: Dirk Gouders Tested-by: "Yann E. MORIN" Reviewed-by: "Yann E. MORIN&quo

[PATCH 09/14] kconfig/conf: fix randconfig setting multiple symbols in a choice

2013-06-18 Thread Yann E. MORIN
From: "Yann E. MORIN" Currently, randconfig may set more than one symbol in a given choice. Given this config file: config A bool "A" if A choice bool "B/C/D" config B bool "B" config C bool "C

[PATCH 02/14] kconfig/lxdialog: Add definitions for mininimum (re)size values

2013-06-18 Thread Yann E. MORIN
YanQing Tested-by: "Yann E. MORIN" Reviewed-by: "Yann E. MORIN" Signed-off-by: "Yann E. MORIN" --- scripts/kconfig/lxdialog/checklist.c | 4 ++-- scripts/kconfig/lxdialog/dialog.h| 14 ++ scripts/kconfig/lxdialog/inputbox.c | 4 ++-- scripts

[PATCH 11/14] kconfig/conf: print the seed used to initialise the RNG for randconfig

2013-06-18 Thread Yann E. MORIN
From: "Yann E. MORIN" ... so the user has a chance to reproduce a test-case. Signed-off-by: "Yann E. MORIN" --- scripts/kconfig/conf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c index 94521c7..38616c1 100644 --- a/sc

[PATCH 07/14] mconf/nconf: mark empty menus/menuconfigs different from non-empty ones

2013-06-18 Thread Yann E. MORIN
sed to non-empty ones that are marked by "--->". This scheme was suggested by "Yann E. MORIN" . Signed-off-by: Dirk Gouders Tested-by: "Yann E. MORIN" Reviewed-by: "Yann E. MORIN" Signed-off-by: "Yann E. MORIN" --- scrip

[PATCH 10/14] kconfig/conf: accept a base-16 seed for randconfig

2013-06-18 Thread Yann E. MORIN
From: "Yann E. MORIN" Signed-off-by: "Yann E. MORIN" --- scripts/kconfig/conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c index bde5b95..94521c7 100644 --- a/scripts/kconfig/conf.c +++ b/scripts/kcon

[PATCH 08/14] scripts/config: replace hard-coded script name by a dynamic value

2013-06-18 Thread Yann E. MORIN
f the script at runtime. Signed-off-by: Clement Chauplannaz Acked-by: Andi Kleen Signed-off-by: Yann E. MORIN --- scripts/config | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/scripts/config b/scripts/config index bb4d3de..6b3272e 100755 --- a/scripts/confi

[PATCH 13/14] kconfig: loop as long as we changed some symbols in randconfig

2013-06-18 Thread Yann E. MORIN
From: "Yann E. MORIN" Because of choice-in-a-choice constructs, it can happen that not all symbols are assigned a value during randconfig, leading in rare cases to this situation: ---8<--- choice-in-choice.in choice bool "A/B/C" config A

[PATCH 14/14] kconfig: fix randomising choice entries in presence of KCONFIG_ALLCONFIG

2013-06-18 Thread Yann E. MORIN
From: "Yann E. MORIN" Currently, randconfig does randomise choice entries, unless KCONFIG_ALLCONFIG is specified. For example, given those two files (Thomas' test-case): ---8<--- Config.test.in config OPTIONA bool "Option A" choice

[PATCH 12/14] kconfig: sort found symbols by relevance

2013-06-18 Thread Yann E. MORIN
From: "Yann E. MORIN" When searching for symbols, return the symbols sorted by relevance. Sorting is done as thus: - first, symbols with a prompt, [1] - then, smallest offset, [2] - then, shortest match, [3] - then, highest relative match, [4]

[PATCH 04/14] kconfig/lxdialog: handle newline characters in print_autowrap()

2013-06-18 Thread Yann E. MORIN
ed, so let print_autowrap() handle newlines propperly. Also, reword that dialog's second phrase with a real sentence. Signed-off-by: Dirk Gouders Tested-by: "Yann E. MORIN" Reviewed-by: "Yann E. MORIN" [yann.morin.1...@free.fr: very slightly tweak the commit me

[PATCH 06/14] nconf: use function calls instead of ncurses' variables LINES and COLS

2013-06-18 Thread Yann E. MORIN
calls or macros to get window dimensions. The use of the variables in main() was OK, but for the sake of consistency it was modified to use the macro getmaxyx(). [1] ncurses(3X) Signed-off-by: Dirk Gouders Reviewed-by: "Yann E. MORIN" [yann.morin.1...@free.fr: declare 'lines'

Re: [PATCH kbuild-next] kconfig/lxdialog: Add definitions for mininimum (re)size values

2013-06-16 Thread Yann E. MORIN
changelog > * Add a comment above the block of new definitions ] > > Signed-off-by: Sedat Dilek I've taken this in my tree, and will push to Michal for the next merge window: https://www.gitorious.org/linux-kconfig/linux

Re: [RFC][PATCH] kconfig: Fix defconfig when one choice menu selects options that another choice menu depends on

2013-06-16 Thread Yann E. MORIN
ve taken this in my tree, and will push to Michal for the next merge window: https://www.gitorious.org/linux-kconfig/linux-kconfig/ yem-kconfig-for-next Thank you! Regards, Yann E. MORIN. -- .-..------.. | Yann E. MORIN

Re: [RFC][PATCH] kconfig: Fix defconfig when one choice menu selects options that another choice menu depends on

2013-06-09 Thread Yann E. MORIN
fix seems reasonable. I'm just back from a week-end no-internet-access break, so I'll look at it more thoroughly tomorrow. Thank you! Regards, Yann E. MORIN. -- .-..------.----. | Yann E. MORIN | Real-Time Embedded |

[PATCH 3/3] kconfig/menu.c: fix multiple references to expressions in menu_add_prop()

2013-05-29 Thread Yann E. MORIN
visibility expressions before AND-ing them with the prompt's one. Signed-off-by: Dirk Gouders [yann.morin.1...@free.fr: move variable into its block-scope, keep lines <80 chars, typo] Tested-by: "Yann E. MORIN" Reviewed-by: "Yann E. MORIN" Sig

[PATCH 2/3] mconf: handle keys in empty dialogs

2013-05-29 Thread Yann E. MORIN
ot;h" and "/". Signed-off-by: Dirk Gouders [yann.morin.1...@free.fr: keep lines <80 chars, so reorder test] Tested-by: "Yann E. MORIN" Reviewed-by: "Yann E. MORIN" Signed-off-by: "Yann E. MORIN" --- scripts/kconfig/lxdialog/menubox.c | 9 +

[PATCH 1/3] scripts/config: fix assignment of parameters for short version of --*-after options

2013-05-29 Thread Yann E. MORIN
short version of --*-after options (namely -E, -D, -M), the parsing step is not performed which leads to processing unset variables. Add options -E, -D, -M to the test that triggers assignment of parameters for --*-after options. Signed-off-by: Clement Chauplannaz Acked-by: Andi Kleen Signed-off-by: Y

[pull request v2] Pull request for branch yem-kconfig-rc-fixes

2013-05-29 Thread Yann E. MORIN
From: "Yann E. MORIN" Hello Michal, All, Please pull these three rc-fixes: - fix key handling in empty menus in mconf - fix reference to eliminated duplicate expression in kconfig - fix scripts/config wrt short --*-after options Changes v1 -> v2: - add fix for eliminated d

Re: [pull request] Pull request for branch yem-kconfig-rc-fixes

2013-05-29 Thread Yann E. MORIN
Michal, All, On 2013-05-20 17:48 +0200, Yann E. MORIN spake thusly: > Please pull these two rc-fixes: > - fix key handling in empty menus in mconf > - fix scripts/config wrt short --*-after options Please hold-on on this pull-request a bit more: there is another fix by Dirk that I&

[pull request] Pull request for branch yem-kconfig-rc-fixes

2013-05-20 Thread Yann E. MORIN
From: "Yann E. MORIN" Hello Michal, All, Please pull these two rc-fixes: - fix key handling in empty menus in mconf - fix scripts/config wrt short --*-after options Regards, Yann E. MORIN The following changes since commit f722406faae2d073cc1d01063d1123c35425939e: Linux 3.10

[PATCH 2/2] mconf: handle keys in empty dialogs

2013-05-20 Thread Yann E. MORIN
ot;h" and "/". Signed-off-by: Dirk Gouders Tested-by: "Yann E. MORIN" Reviewed-by: "Yann E. MORIN" Signed-off-by: "Yann E. MORIN" --- scripts/kconfig/lxdialog/menubox.c | 8 scripts/kconfig/mconf.c| 11 ++- 2 files changed, 1

[PATCH 1/2] scripts/config: fix assignment of parameters for short version of --*-after options

2013-05-20 Thread Yann E. MORIN
short version of --*-after options (namely -E, -D, -M), the parsing step is not performed which leads to processing unset variables. Add options -E, -D, -M to the test that triggers assignment of parameters for --*-after options. Signed-off-by: Clement Chauplannaz Acked-by: Andi Kleen Signed-off-by: Y

Re: [PATCH v3] kconfig: sort found symbols by relevance

2013-05-10 Thread Yann E. MORIN
Wang, All, On Fri, May 10, 2013 at 08:51:25AM +0800, Wang YanQing wrote: > On Thu, May 09, 2013 at 06:12:17PM +0200, Yann E. MORIN wrote: [--SNIP--] > > For the ten-or-so tests I did, the sorting was rather appropriate, > > though that's only ten-or-so tests and is not exha

Re: [PATCH v3] kconfig: sort found symbols by relevance

2013-05-09 Thread Yann E. MORIN
Wang, All, On Thu, May 09, 2013 at 11:27:31PM +0800, Wang YanQing wrote: > On Mon, May 06, 2013 at 11:15:31PM +0200, Yann E. MORIN wrote: > > From: "Yann E. MORIN" > > > > When searching for symbols, return the symbols sorted by relevance. > > >

Re: [PATCH -next] media/usb: fix kconfig dependencies (aka bool depending on tristate considered harmful)

2013-05-08 Thread Yann E. MORIN
if USB menuconfig MEDIA_USB_SUPPORT bool "Media USB Adapters" depends on MEDIA_SUPPORT if MEDIA_USB_SUPPORT ---8<--- And keeping this hunk as-is: > @@ -52,3 +53,4 @@ source "drivers/media/usb/em28xx/Kconfig > endif > > endif #MEDIA_USB_SUPPORT > +endif #USB

Re: [PATCH] menuconfig: fix NULL pointer dereference when searching a symbol

2013-05-07 Thread Yann E. MORIN
Michal, All, On Tue, May 07, 2013 at 03:47:18PM +0200, Michal Marek wrote: > On 7.5.2013 15:21, Yann E. MORIN wrote: > > Li, All, > > > > On Tue, May 07, 2013 at 10:40:59AM +0800, Li Zefan wrote: > >> Searching PPC_EFIKA results segmentation fault, and it's bec

Re: [PATCH] menuconfig: fix NULL pointer dereference when searching a symbol

2013-05-07 Thread Yann E. MORIN
commit bcdedcc1afd6 ("menuconfig: print more > info for symbol without prompts"). > > Reported-by: Borislav Petkov > Signed-off-by: Li Zefan Reviewed-by: "Yann E. MORIN" Michal, I'll get this in my tree, and will send a pull-

[PATCH v3] kconfig: sort found symbols by relevance

2013-05-06 Thread Yann E. MORIN
From: "Yann E. MORIN" When searching for symbols, return the symbols sorted by relevance. Sorting is done as thus: - first, symbols with a prompt, [1] - then, smallest offset, [2] - then, shortest match, [3] - then, highest relative match, [4]

Re: [PATCH] kconfig: sort found symbols by relevance

2013-05-06 Thread Yann E. MORIN
Jean, All, On Mon, May 06, 2013 at 08:20:47PM +0200, Yann E. MORIN wrote: > When searching for symbols, return the symbols sorted by relevance. Woops... Worng version of the patch. Forget it... Sorry... Regards, Yann E. MO

[PATCH] kconfig: sort found symbols by relevance

2013-05-06 Thread Yann E. MORIN
From: "Yann E. MORIN" When searching for symbols, return the symbols sorted by relevance. Relevance is the ratio of the length of the matched string and the length of the symbol name. Symbols of equal relevance are sorted alphabetically. Reported-by: Jean Delvare Signed-off-by: &quo

Re: [PATCH] kconfig: sort found symbols by relevance

2013-05-06 Thread Yann E. MORIN
Jean, All, On Mon, May 06, 2013 at 05:28:32PM +0200, Jean Delvare wrote: > Le Monday 06 May 2013 à 15:02 +0200, Yann E. MORIN a écrit : > > From: "Yann E. MORIN" > > > > When searching for symbols, return the symbols sorted by relevance. > > > >

[PATCH] kconfig: sort found symbols by relevance

2013-05-06 Thread Yann E. MORIN
From: "Yann E. MORIN" When searching for symbols, return the symbols sorted by relevance. Relevance is the ratio of the length of the matched string and the length of the symbol name. Symbols of equal relevance are sorted alphabetically. Reported-by: Jean Delvare Signed-off-by: &quo

Re: Splitting stk1160-ac97 as a module (Re: linux-next: Tree for May 1 (media/usb/stk1160))

2013-05-04 Thread Yann E. MORIN
st (eg. to build the drivers). Otherwise, I was not able to get the desired behviour with only the A and B symbols. Regards, Yann E. MORIN. -- .-----..--.. | Yann E. MORIN | Real-Time Embedded | /&q

Re: linux-next: Tree for May 1 (media/usb/stk1160)

2013-05-01 Thread Yann E. MORIN
Randy, All, On Wed, May 01, 2013 at 01:23:25PM -0700, Randy Dunlap wrote: > On 05/01/13 12:58, David Rientjes wrote: > > On Wed, 1 May 2013, Yann E. MORIN wrote: > > > >>> When CONFIG_SND=m and CONFIG_SND_AC97_CODEC=m and > >>> CONFIG_VIDEO_STK1

Re: linux-next: Tree for May 1 (media/usb/stk1160)

2013-05-01 Thread Yann E. MORIN
'. Do you mean there is an issue with Kconfig, the parser? -> should Kconfig warn or error out in such a case? Or do you mean the structure above is wrong, and should be ammended? -> change the 'select' to a 'depends on'? -> change the symbol to a tristate?

Re: rcu: Provide compile-time control for no-CBs CPUs

2013-04-30 Thread Yann E. MORIN
ry slightly): Build-forced no-CBs CPUs > 1. No build_forced no-CBs CPUs (RCU_NOCB_CPU_NONE) (NEW) 2. CPU 0 is a build_forced no-CBs CPU (RCU_NOCB_CPU_ZERO) (NEW) 3. All CPUs are build_forced no-CBs CPUs (RCU_NOC

Re: [PATCH 1/1] kconfig: fix lists definition for C++

2013-04-29 Thread Yann E. MORIN
Rob, All, On Mon, Apr 29, 2013 at 04:54:14PM -0500, Rob Landley wrote: > On 04/29/2013 02:28:07 PM, Randy Dunlap wrote: > >On 04/29/13 10:59, Yann E. MORIN wrote: > >> From: "Yann E. MORIN" > >> > >> The C++ compiler is more strict in that it refuse

kconfig-frontends-3.9.0.0 released

2013-04-29 Thread Yann E. MORIN
ronise from the Linux kernel source tree. Any comment, any feedback, any patch is welcome! ;-) Regards, Yann E. MORIN. -- .-..------.. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' co

[PATCH 1/1] kconfig: fix lists definition for C++

2013-04-29 Thread Yann E. MORIN
From: "Yann E. MORIN" The C++ compiler is more strict in that it refuses to assign a void* to a struct list_head*. Fix that by explicitly casting the poisonning constants. (Tested with all 5 frontends, now.) Reported-by: Randy Dunlap Signed-off-by: "Yann E. MORIN"

[pull request] Pull request for branch yem-kconfig-for-next

2013-04-29 Thread Yann E. MORIN
From: "Yann E. MORIN" Michal, Please pull this fix to restore compilation of the qconf frontend. Regards, Yann E. MORIN. The following changes since commit 23a5dfdad22a574d19d7cc19b391f9ce0d3c2f21: Revert "kconfig: fix randomising choice entries in presence of KCONFIG_ALLC

Re: linux-next: Tree for Apr 29 (kconfig)

2013-04-29 Thread Yann E. MORIN
0dac058cab156879d29362788 Author: Benjamin Poirier Date: Tue Apr 16 10:07:23 2013 -0400 menuconfig: Add "breadcrumbs" navigation aid Displays a trail of the menu entries used to get to the current menu. Signed-off-by: Benjamin Poirier Tested-by: "Yann E. MORIN"

Re: [PATCH 6/8] kconfig: fix randomising choice entries in presence of KCONFIG_ALLCONFIG

2013-04-27 Thread Yann E. MORIN
Arnd, All, On Sat, Apr 27, 2013 at 11:01:00PM +0200, Arnd Bergmann wrote: > On Saturday 27 April 2013, Yann E. MORIN wrote: > > > > On Fri, Apr 26, 2013 at 02:05:37PM +0200, Arnd Bergmann wrote: > > > On Thursday 25 April 2013 00:29:53 Yann E. MORIN wrote: >

Re: linux-next: Tree for Apr 26

2013-04-27 Thread Yann E. MORIN
repo :-). > Anyway, thanks for taking care and solving fast to all involved folks! Yep, that kind of command was what I was missing to check for regression on this patch. Now, I have someting to test. Thanks. Regards, Yann E. MORIN. -- .-.----.--.--

Re: linux-next: Tree for Apr 26

2013-04-27 Thread Yann E. MORIN
ions. I.e. > > $ yes "" | make oldconfig; make silentoldconfig > should always pass. Ah, OK, now I got it. Thank you for the explanations. Regards, Yann E. MORIN. -- .-..--.--------. | Yann E. MORIN | Real-Time Embedde

[PATCH 1/1] Revert "kconfig: fix randomising choice entries in presence of KCONFIG_ALLCONFIG"

2013-04-26 Thread Yann E. MORIN
From: "Yann E. MORIN" This reverts commit 422c809f03f043d0950d8362214818e956a9daee. It causes more harm than it solves issues. Reported-by: Sedat Dilek Reported-by: Arnd Bergmann Signed-off-by: "Yann E. MORIN" Tested-by: Sedat Dilek Cc: Sedat Dilek Cc: Arnd Bergmann

[pull request] Pull request for branch yem-kconfig-for-next

2013-04-26 Thread Yann E. MORIN
From: "Yann E. MORIN" Michal, Please pull this to revert: 422c809: fix randomising choice entries in presence of KCONFIG_ALLCONFIG It causes more harm that it fixes issues, and I couldn't find a proper fix for now. To avoid breakage so close to the opening of the merge w

Re: [PATCH 6/8] kconfig: fix randomising choice entries in presence of KCONFIG_ALLCONFIG

2013-04-26 Thread Yann E. MORIN
On Fri, Apr 26, 2013 at 02:05:37PM +0200, Arnd Bergmann wrote: > On Thursday 25 April 2013 00:29:53 Yann E. MORIN wrote: > > From: "Yann E. MORIN" > > > > Currently, randconfig does randomise choice entries, unless > > KCONFIG_ALLCONFIG > > is speci

Re: linux-next: Tree for Apr 26

2013-04-26 Thread Yann E. MORIN
gt; #!/bin/sh > > > > cp config-bad .config > > make silentoldconfig > > > This resulted in > > > > 7ded2624f8988bd22819a60a6000ba6b7091db89 is the first bad commit > > commit 7ded2624f8988bd22819a60a6000ba6b7091db89 > > Author: Yann E. MORIN

Re: [PATCH 6/8] kconfig: fix randomising choice entries in presence of KCONFIG_ALLCONFIG

2013-04-26 Thread Yann E. MORIN
Arnd, All, On Fri, Apr 26, 2013 at 02:05:37PM +0200, Arnd Bergmann wrote: > On Thursday 25 April 2013 00:29:53 Yann E. MORIN wrote: > > From: "Yann E. MORIN" > > > > Currently, randconfig does randomise choice entries, unless > > KCONFIG_ALLCONFIG > >

Re: linux-next: Tree for Apr 26

2013-04-26 Thread Yann E. MORIN
le to reproduce it with Linus' master: $ git checkout master # This is Linus' master [--SNIP--] $ git rev-parse HEAD 697dfd884438058b15032b0169887c742704434a $ git clean -dX; git clean -d [--SNIP--] $ cp ../linux-next.config .config $ make silentoldconfig

[PATCH 4/8] kconfig: fix randconfig tristate detection

2013-04-24 Thread Yann E. MORIN
From: "Yann E. MORIN" Because the modules' symbole (CONFIG_MODULES) may not yet be set when we check a symbol's tristate capabilty, we'll always find that tristate symbols are booleans, even if we randomly decided that to enable modules: sym_get_type(sym) always return b

[PATCH 5/8] kconfig: do not override symbols already set

2013-04-24 Thread Yann E. MORIN
From: "Yann E. MORIN" For randconfig, if a list of required symbols is specified with KCONFIG_ALLCONFIG, such symbols do not "have a value" as per sym_has_value(), but have the "valid" flag set. Signed-off-by: "Yann E. MORIN" --- scripts/kconfig

[PATCH 3/8] kconfig/lxdialog: rationalise the include paths where to find {.n}curses{,w}.h

2013-04-24 Thread Yann E. MORIN
From: "Yann E. MORIN" The current code does this: if [ -f /usr/include/ncursesw/curses.h ]; then echo '-I/usr/include/ncursesw -DCURSES_LOC=""' elif [ -f /usr/include/ncurses/ncurses.h ]; then echo '-I/usr/include/ncurses -DCURSES

[PATCH 2/8] menuconfig: Add "breadcrumbs" navigation aid

2013-04-24 Thread Yann E. MORIN
From: Benjamin Poirier Displays a trail of the menu entries used to get to the current menu. Signed-off-by: Benjamin Poirier Tested-by: "Yann E. MORIN" [yann.morin.1...@free.fr: small, trivial code re-ordering] Signed-off-by: "Yann E. MORIN" --- scripts/kconfig/list

[PATCH 7/8] kconfig: allow specifying the seed for randconfig

2013-04-24 Thread Yann E. MORIN
From: "Yann E. MORIN" For reproducibility, it can be useful to be able to specify the seed to use to seed the RNG. Add a new KCONFIG_SEED environment variable which can be set to the seed to use: $ make KCONFIG_SEED=42 randconfig $ sha1s

[PATCH 6/8] kconfig: fix randomising choice entries in presence of KCONFIG_ALLCONFIG

2013-04-24 Thread Yann E. MORIN
From: "Yann E. MORIN" Currently, randconfig does randomise choice entries, unless KCONFIG_ALLCONFIG is specified. For example, given those two files (Thomas' test-case): ---8<--- Config.test.in config OPTIONA bool "Option A" choice

[PATCH 1/8] menuconfig: Fix memory leak introduced by jump keys feature

2013-04-24 Thread Yann E. MORIN
From: Benjamin Poirier Fixes the memory leak of struct jump_key allocated in get_prompt_str() Signed-off-by: Benjamin Poirier Tested-by: "Yann E. MORIN" Reviewed-by: "Yann E. MORIN" Signed-off-by: "Yann E. MORIN" Cc: sta...@vger.kernel.org ---

[PATCH 8/8] kconfig: implement KCONFIG_PROBABILITY for randconfig

2013-04-24 Thread Yann E. MORIN
From: "Yann E. MORIN" Currently the odds to set each symbol is (rounded): booleans: y: 50% n: 50% tristates: y: 33% m: 33% n: 33% Introduce a KCONFIG_PROBABILITY environment variable to tweak the probabilities (in percentage), as such: KCONFIG_PROBABILITY

[pull request v2] Pull request for branch yem-kconfig-for-next

2013-04-24 Thread Yann E. MORIN
From: "Yann E. MORIN" Michal, Here is the official pull-request for the kconfig-related changes I've gathered from the linux-kbuild list, and those I've locally accumulated, for inclusin in 3.10: - memory leak fixed in mconf - 3 randconfig fixes (randomising choice

[PATCH 2/4] kconfig: allow specifying the seed for randconfig

2013-04-16 Thread Yann E. MORIN
$ make KCONFIG_SEED=42 randconfig $ sha1sum .config 70a128c8dcc61303069e1be352cce64114dfcbca .config It's very usefull for eg. debugging the kconfig parser. Signed-off-by: "Yann E. MORIN" --- Documentation/kbuild/kconfig.txt |9 + scripts/kconfig/conf.c

[PATCH 0/4] Some kconfig improvements and fixes

2013-04-16 Thread Yann E. MORIN
onfig [PATCH 4/4] kconfig: do randomise choice entries in presence of KCONFIG_ALLCONFIG Regards, Yann E. MORIN. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kerne

[PATCH 3/4] kconfig: implement KCONFIG_PROBABILITY for randconfig

2013-04-16 Thread Yann E. MORIN
.1...@free.fr: add to Documentation/] Signed-off-by: "Yann E. MORIN" --- Documentation/kbuild/kconfig.txt | 17 + scripts/kconfig/confdata.c | 22 +++--- 2 files changed, 36 insertions(+), 3 deletions(-) diff --git a/Documentation/kbuild/kco

[PATCH 4/4] kconfig: do randomise choice entries in presence of KCONFIG_ALLCONFIG

2013-04-16 Thread Yann E. MORIN
# CONFIG_OPTION_C is not setCONFIG_OPTION_C=y ---8<------8<--- Ie., the first entry in a choice is always set, plus zero or one of the other options may be set. This patch ensures that only one option may be set for a choice. Reported-by: Thomas Peta

[PATCH 1/4] kconfig/lxdialog: rationalise the include paths where to find {.n}curses{,w}.h

2013-04-16 Thread Yann E. MORIN
directives and the filename-only in #include is more in line with how pkg-config behaves, eg.: $ pkg-config --cflags ncursesw -I/usr/include/ncursesw This paves the way for using pkg-config for CFLAGS, too, now we use it to find the libraries. Signed-off-by: "Yann E. MORIN"

Re: [PATCH v3] menuconfig: Add "breadcrumbs" navigation aid

2013-04-16 Thread Yann E. MORIN
Benjamin, All, On Tue, Apr 16, 2013 at 10:07:23AM -0400, Benjamin Poirier wrote: > Displays a trail of the menu entries used to get to the current menu. > > Signed-off-by: Benjamin Poirier > Tested-by: "Yann E. MORIN" > [yann.morin.1...@free.fr: small, trivial code re-

Re: [PATCH 1/2] menuconfig: Fix memory leak introduced by jump keys feature

2013-04-16 Thread Yann E. MORIN
Michal, All, On Tue, Apr 16, 2013 at 11:12:41AM +0200, Michal Marek wrote: > > On 15.4.2013 23:54, Yann E. MORIN wrote: > >> So, unless Michal really wants to pull this one and push it to Linus > >> before he cuts v3.9 final, I'll merge this later in my -for-next br

Re: [PATCH 1/2] menuconfig: Fix memory leak introduced by jump keys feature

2013-04-15 Thread Yann E. MORIN
the -rc cycle is a bit dangerous (heck, I would not like to be part of the cause of a new flaming, just for this! ;-) ) So, unless Michal really wants to pull this one and push it to Linus before he cuts v3.9 final, I'll merge this later in my -for-next branch. Thank you! Rega

Re: [PATCH 2/2] menuconfig: Add "breadcrumbs" navigation aid

2013-04-15 Thread Yann E. MORIN
ove(stdscr, 1, len+1); + for (i = len + 1; i < COLS - 1; i++) + waddch(stdscr, ACS_HLINE); [--SNIP--] Queued (with that change) into: https://git.gitorious.org/linux-kconfig/linux-kconfig.git yem-kconfig-for-next Regards, Yann E. MORIN. -- .-.-

Re: Final versions of ncurses libs detection patches

2013-03-06 Thread Yann E. MORIN
n using our previous legacy checks. I'm still doing a few more tests on my side before queuing. > Thanks for all suggestions, Thanks for staying around during the iterations. Regards, Yann E. MORIN. -- .-..--.--------. |

Re: [PATCH 2/2] kconfig: optionally use pkg-config to detect ncurses libs

2013-03-06 Thread Yann E. MORIN
es > 2>/dev/null \ > + || echo "-lmenu -lpanel -ncurses" ) Typo: this should be: "-lncurses" and not: "-ncurses" I'll fix it here before queuing, no need to resend. Regards, Yann E. MORIN. -- .-

Re: [PATCH 2/2] kconfig: use config scripts to detect ncurses libs

2013-03-03 Thread Yann E. MORIN
ig scripts, and: - try pkg-config; - fallback to -lncurses. HOSTLOADLIBES_nconf += $(shell \ pkg-config --libs ncurses 2>/dev/null \ || echo -lncurses ) Regards, Yann E. MORIN. -- .-.-

Re: [PATCH 1/2] menuconfig: use config scripts to detect ncurses libs

2013-03-03 Thread Yann E. MORIN
nfig script are unreliable: at least one major distribution (Debian) is broken and, for various reasons, is not gonna fix it, and all its derivatives (eg. Ubuntu) do suffer from the same deficiency. I think we should stick to: - try with pkg-config; - fallback to the legacy heuristic. Does usi

Re: [PATCH 2/2] kconfig: use config scripts to detect ncurses libs

2013-03-03 Thread Yann E. MORIN
o the problem that ncursesw5-config exists > even if the libncursesw5-dev package is not installed, so this patch > makes the build fail in such cases. The same goes for ncurses5-config, which is provided by ncurses-bin, and so is present even if the devel package is not installed, and the build

Re: [PATCH] menuconfig: use config scripts to detect ncurses libs

2013-03-03 Thread Yann E. MORIN
Michal, All, On Friday 01 March 2013 Michal Marek wrote: > On 28.2.2013 19:16, Yann E. MORIN wrote: > > On Thursday 28 February 2013 j...@gentoo.org wrote: > >> This patch replaces the old heuristic for detection of ncurses libs for > >> linking the ncurses menuconf

Re: [PATCH 1/2] Use config scripts to detect ncurses libs for menuconfig

2013-02-28 Thread Yann E. MORIN
Justin, All, On Thursday 28 February 2013 justin wrote: > On 2/28/13 7:08 PM, Yann E. MORIN wrote: > > Well, RHEL4 is still widely used, and it was released in 2005, so will > > not have ncurses-5.6 (updates may have it, but not everybody installs > > updates). > > qu

Re: [PATCH 2/2] kconfig: use config scripts to detect ncurses libs

2013-02-28 Thread Yann E. MORIN
g/linux-kconfig Thank you! :-) Regards, Yann E. MORIN. -- .-..--.--------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | _

Re: [PATCH] menuconfig: use config scripts to detect ncurses libs

2013-02-28 Thread Yann E. MORIN
ut further delaying use of the *-config scripts. And, sorry, I should have been more explicit in my previous mail that the legacy drop should be in its own patch. I thought that was obvious, following the "one single change per patch" philosophy. Thanks you! :-) Regards, Yann E. MORIN.

Re: [PATCH 1/2] Use config scripts to detect ncurses libs for menuconfig

2013-02-28 Thread Yann E. MORIN
rsion 5.6 released in 2006. So I would guess we can > assume that every system will have it. Well, RHEL4 is still widely used, and it was released in 2005, so will not have ncurses-5.6 (updates may have it, but not everybody installs updates). Regards, Yann E. MORIN. -- .---------.-

Re: [PATCH 2/2] Use config scripts to detect ncurses libs for nconfig

2013-02-28 Thread Yann E. MORIN
ugly. ;-) Regards, Yann E. MORIN. -- .-..--.--------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___

Re: [PATCH 2/2] Use config scripts to detect ncurses libs for nconfig

2013-02-27 Thread Yann E. MORIN
$(shellncursesw5-config --libs 2>/dev/null \ || ncurses5-config --libs 2>/dev/null ) Regards, Yann E. MORIN. -- .-..--.. | Yann E. MORIN | Real-Time Emb

Re: [PATCH 1/2] Use config scripts to detect ncurses libs for menuconfig

2013-02-27 Thread Yann E. MORIN
$cc -print-file-name=lib${lib}.${ext} | grep -q > / > + if [ $? -eq 0 ]; then > + echo "-l${lib}" > + exit > + fi > +

Re: [PATCH] Use config scripts to detect ncurses libs for, menuconfig/nconfig dialogs

2013-02-25 Thread Yann E. MORIN
Justin, All, On Monday 25 February 2013 Justin wrote: > On 25.02.2013 19:30, Yann E. MORIN wrote: > > On Sunday 24 February 2013 Justin wrote: > >> when ncurses is build with --with-termlib several symbols are moved to a > >> seperate terminfo library (libtinfo.so).

Re: [PATCH] Use config scripts to detect ncurses libs for, menuconfig/nconfig dialogs

2013-02-25 Thread Yann E. MORIN
^^ This is a bashism, and will not work on purely POSIX shells. Please use: >/dev/null 2>&1 > + ncurses5-config --libs I'd write: if ! ncurses5-config --libs 2>/dev/null; then old-code goes here fi > + exit 0 (nit-

Re: kconfig-frontends-3.8.0.0 release

2013-02-19 Thread Yann E. MORIN
Jan, All, On Wednesday 20 February 2013 Yann E. MORIN wrote: > $ ls -lrt /usr/bin/*{conf,gettext,diff} Obviously, that line above should have been (with the same result): $ ls -lrt /usr/bin/ lrwxrwxrwx 1 root root 26 Feb 19 23:11 fakeroot -> /etc/alternatives/fakeroot lrwxrwxrwx

Re: kconfig-frontends-3.8.0.0 release

2013-02-19 Thread Yann E. MORIN
Jan, All, On Tuesday 19 February 2013 Jan Engelhardt wrote: > On Tuesday 2013-02-19 23:14, Yann E. MORIN wrote: > >I'm pleased to announce the release of kconfig-frontends 3.8.0.0! > >Go download it there: > > > > http://ymorin.is-a-geek.org/download/kco

kconfig-frontends-3.8.0.0 release

2013-02-19 Thread Yann E. MORIN
ects that want an easy path to following the evolution of kconfig, without the burden to manually synchronise from the Linux kernel source tree. Any comment, any feedback, any patch is welcome! ;-) [0] http://marc.info/?l=linux-kbuild&m=132753216310722 [1] https://lwn.net/Articl

Re: [PATCH resend v3 3/3] kconfig: nconf: add vi-style navigation keys

2013-02-09 Thread Yann E. MORIN
Rolland, All, On Saturday 09 February 2013 Roland Eggner wrote: > On 2013-02-09 Saturday at 02:03 +0100 Yann E. MORIN wrote: > > On Friday 01 February 2013 Roland Eggner wrote: > > > Add vi-style navigation keys, based on initial work by Dmitry Voytik. > > > > As

Re: [PATCH resend v3 1/3] kconfig: nconf: rewrite help texts

2013-02-09 Thread Yann E. MORIN
Rolland, All, On Saturday 09 February 2013 Roland Eggner wrote: > On 2013-02-09 Saturday at 01:30 +0100 Yann E. MORIN wrote: [--SNIP--] > > > +"Text Box (Help Window)\n" > > > +"--\n" > > > +"Use movement k

Re: [PATCH resend v3 3/3] kconfig: nconf: add vi-style navigation keys

2013-02-08 Thread Yann E. MORIN
nce is remapped and people already rely on to provide help, not do any other weird thing (like exiting the current submenu). Regards, Yann E. MORIN. -- .-..--.. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON

Re: [PATCH resend v3 1/3] kconfig: nconf: rewrite help texts

2013-02-08 Thread Yann E. MORIN
-\n" > "Symbol: FOO [ = m]\n" > @@ -229,26 +222,26 @@ search_help[] = N_( > "Selects: LIBCRC32\n" > "Selected by: BAR\n" > "-\n" >

<    1   2   3   >