The attached patch applied to libperl (and probably perl) ebuild checks the arch to use using ${CHOST} instead of checking the other variables. This is more reliable and it's crosscompile safe. It's also simpler to maintain probably. HTH, Diego
Created attachment 73807 [details, diff] Ebuild patch
all set