install hooks: add a sanity check for bad multilib usage

We don't want lib64 being used on 32-bit systems like x86 or arm.
If it leaks in, we should abort early on rather than much later like
during test time.  So add a sanity check for these to reject lib64.

BUG=chromium:876634
TEST=precq passes
TEST=modifying an ebuild to install into /usr/lib64 and building on arm fails

Change-Id: I10d22c304080dde90626bff874d44425b3db0e7c
Reviewed-on: https://chromium-review.googlesource.com/1188852
Reviewed-by: Benson Leung <bleung@chromium.org>
Reviewed-by: C Shapiro <shapiroc@google.com>
Reviewed-by: Don Garrett <dgarrett@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
1 file changed