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.

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

Change-Id: I10d22c304080dde90626bff874d44425b3db0e7c
Reviewed-by: Benson Leung <>
Reviewed-by: C Shapiro <>
Reviewed-by: Don Garrett <>
Tested-by: Mike Frysinger <>
1 file changed