linux-2.4.6-pre6: numerous dep_{bool,tristate} $CONFIG_ARCH_xxx bugs
Argh! I just accidentally sent and older version of my
patch. Here is the current version. Sorry about that.
Adam J. Richter __ ______________ 4880 Stevens Creek Blvd, Suite 104 [email protected] \ / San Jose, California 95129-1034 +1 408 261-6630 | g g d r a s i l United States of America
fax +1 408 261-6631 "Free Software For The Rest Of Us."
--------------------------CUT HERE----------------------------------
scripts/Configure +16 -0
@@ -48,6 +48,10 @@ # # 24 January 1999, Michael Elizabeth Chastain, <[email protected]> # - Improve the exit message (Jeff Ronne). +# +# 29 June 2001, Adam J. Richter, <[email protected]> +# - Default all non-numeric variables arch/*/config.in to "n" + # # Make sure we're really running bash.
@@ -531,6 +535,18 @@ echo " * Automatically generated C config: don't edit" >> $CONFIG_H echo " */" >> $CONFIG_H echo "#define AUTOCONF_INCLUDED" >> $CONFIG_H + +# Ensure all unselected architecture variables are set to "n" rather than being +# undefined, so that dep_bool and dep_tristate properly detect their absense. +set +f +for var in $(cat arch/*/config.in | + egrep -w -v '^[ ]*int' | + tr ' $"' '\n\n\n' | + egrep '^CONFIG_[A-Z0-9_]*$' | + sort -u) ; do + define_bool "$var" "n" +done +set -f DEFAULT="" if [ "$1" = "-d" ] ; then
Quoted 2 lines
Argh! I just accidentally sent and older version of my
patch. Here is the current version. Sorry about that.
This just breaks stuff
scripts/Configure line 549
Quoted 9 lines
scripts/Configure +8
-0+for var in $(cat arch/*/config.in | + egrep -w -v '^[ ]*int' | + tr ' $"' '\n\n\n' | + egrep '^CONFIG_[A-Z0-9_]*$' | + sort -u) ; do + define_bool "$var" "n" +done +set -f
You've changed the entire semantics of dep_tristate by doing this