In two locations install_mask is called without quoting its arguments: install_mask "${D}" ${INSTALL_MASK} install_mask "${PORTAGE_BUILDDIR}/image" ${PKG_INSTALL_MASK} The problem is that this will expand globs; since install_mask already expands its arguments it is redundant.
Created attachment 140903 [details, diff] quote-install-mask.patch
Patch is against 2.1.4.
Created attachment 140909 [details, diff] quote-install-mask.patch Do the globs right.
(In reply to comment #3) # we also need to handle globs (*.a, *.h, etc) - find "${root}" -path ${no_inst} -exec rm -fR {} \; >/dev/null + find "${root}" -name "${no_inst}" -exec rm -f {} \; >/dev/null Was it intentional to change the find and rm arguments? I was only expecting a change in quoting.
(In reply to comment #4) > # we also need to handle globs (*.a, *.h, etc) > - find "${root}" -path ${no_inst} -exec rm -fR {} \; >/dev/null > + find "${root}" -name "${no_inst}" -exec rm -f {} \; >/dev/null > > Was it intentional to change the find and rm arguments? I was only expecting a > change in quoting. Ah - I forgot that the -path predicate allows wildcards to match '/'.
Thanks, this has been released in 2.1.4.1.