Skip to contentSkip to conversation

2.4.6p6: dep_{bool,tristate} $CONFIG_ARCH_xxx bugs

PATCH Adam J. Richter 3 participants 3 messages Jul 2, 2001

lore
Share & tools
lore
#0 lore raw
Quoted 8 lines
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines

Does anyone know if there is any code that would break if
we put quotation marks around the $CONFIG_xxxx references in the dep_xxx commands in all of the Config.in files?

That has the same problem that AC was worried about. Variables that used to be treated as "undefined, don't care" are now treated as "undefined, assume n and forbid".

Quoted 7 lines
Quoted 1 line

What variables? Please show me a real example.

Not my job. If you want to make a global change to the meaning of undefined config variables, it is your responsibility to show that the change has no unwanted side effects. Assuming there are no side effects is unsatisfactory in a stable kernel, especially with all the config variables in patch sets outside the kernel.

That's not reasonable in the face of what appears to be
completely fabricated myth. You generally can't prove this kind of a negative for anything. Either you or Alan Cox should show an example. Can you even show me the code that such an example would exercise. Can you even write a hypothetical example?

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."

#1 lore raw
Quoted 1 line · Adam J. Richter

Can you even write a hypothetical example?

if [ "$CONFIG_foo" = "n" -a "$CONFIG_bar" = "n" ]; then
define_bool "$CONFIG_ALLOW_foo_bar n
fi
....
dep_tristate CONFIG_baz $CONFIG_ALLOW_foo_bar

#2 lore raw
Quoted 9 lines · Keith Owens
Quoted 1 line · Adam J. Richter

Can you even write a hypothetical example?

if [ "$CONFIG_foo" = "n" -a "$CONFIG_bar" = "n" ]; then
define_bool "$CONFIG_ALLOW_foo_bar n
fi
....
dep_tristate CONFIG_baz $CONFIG_ALLOW_foo_bar

Unfortunately this does not work as you expect (depends on history) if any of CONFIG_foo CONFIG_bar can be changed.

When changing one of them to y, the value of CONFIG_ALLOW_foo_bar in make menuconfig / make xconfig is not undefined...

Andrzej

Signature · 4 lines
=======================================================================
  Andrzej M. Krzysztofowicz               [email protected]
  phone (48)(58) 347 14 61
Faculty of Applied Phys. & Math.,   Technical University of Gdansk