DEFAULT_DBG incorrectly checks noarch
# add dbg subpackage if its enabled globally
if [ -n "$DEFAULT_DBG" ] && ! subpackage_types_has "dbg" && ! options_has "!dbg" && [ "$arch" != "noarch" ]; then
subpackages="$pkgname-dbg $subpackages"
fi
if DEFAULT_DBG is enabled, and no -dbg subpackage is added, and arch=noarch, everything is ok.
but if you do arch="noarch !armv7"
, then the last check passes, and a -dbg is added, since it's not an exact match. this then fails since no -dbg splits by default, i.e. the subpackage should not be added. the match should be fuzzy on noarch
in the string, not a whole match.