]> code.ossystems Code Review - openembedded-core.git/commit
binconfig-disabled: try harder to prevent usage of config scripts
authorPatrick Ohly <patrick.ohly@intel.com>
Fri, 23 Jan 2015 14:48:17 +0000 (06:48 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 28 Jan 2015 21:23:02 +0000 (21:23 +0000)
commitd1ff61a16a3fcfdd7cf882bc89fb1d164cb1603a
tree6b8eefe48317fe5e43f8dd45e6131ac9c773b1d2
parent549c9cb6a7b0e989ffcefed8219eedaa6f13c6c8
binconfig-disabled: try harder to prevent usage of config scripts

Returning a non-zero exit code is not enough to cause errors when configure
scripts call the patched config scripts: for example, swig's configure script
uses PCRE_LIBS=`$PCRE_CONFIG --libs` and does not abort on errors. Using empty
output may then succeed, for example when the required library is available
indirectly.

Returning some nonsense command line arguments covers such cases, because
using them will definitely lead to errors during compilation. The faked
arguments were chosen such that these errors can be linked back to the root
cause.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/binconfig-disabled.bbclass