Make fails on systems with GREP_OPTIONS
In rules/manual-package-config.mk the following use of grep will cause later errors if -n (prepending line numbers) is set in GREP_OPTIONS.
grep -v '^#pragma GCC' $$@.raw | \ sed -e 's/""//g' -e 's/:[ ]*,/: /g' >$$@
It causes parsing issues later, with errors like:
: Warning: Unrecognized field 420 on line 420 : Warning: Unrecognized field 419 on line 419 ... : Warning: Unrecognized field 1 on line 1 : missing id field : invalid package identifier: : invalid package key:
It may be worth adding an
export GREP_OPTIONS= somewhere in the make file as it's reasonably difficult to figure out the actual problem from the error message. I would do this and submit a patch but I'm not sure if it is desired since GREP_OPTIONS is now deprecated.