[Buildroot] environment variables with spaces (request for comments)

Dan Raymond draymond at foxvalley.net
Tue Mar 2 15:43:35 UTC 2021

I encountered a bug in Buildroot that resulted in a failure to run 'make 
linux-menuconfig'.  I tracked down the problem to a bug in 
package/pkg-kconfig.mk that was attempting to remove a set of variables 
from an environment string.  The problem is that a naive technique was 
being used that did not account for quoted variables that contained 
embedded spaces.  To be clear, 'make menuconfig' from the linux kernel 
tree works fine: this bug is in Buildroot only.  The reason I discovered 
this bug (and others may not) is because my PATH environment variable 
contains embedded spaces (which may be uncommon but valid and sometimes 

I implemented/tested/submitted a patch that reliably fixes the bug.

Yann MORIN objected to my patch because he believes some of the packages 
Buildroot supports contain similar bugs.  I responded to his objection 
but he ignored my response and submitted his own patch that undermines 
mine by intentionally causing ALL make targets to fail when the PATH 
environment variable contains embedded spaces.  I don't think that 
starting a "patch war" is productive or contributes to the goals of the 
Buildroot community.  Can we have a discussion instead and come to a 
consensus on this matter?

More information about the buildroot mailing list