popt tries to make a guess to install into /lib or /lib64 based on target cpu. However, this is no guarantee of 64-bit code. Case in point - I'm creating a new profile for FreeBSD on Sparc64 which is pure 64-bit, no multi-lib as we cannot even generate 32-bit code. The host target is sparc64-gentoo-freebsd6.2. So as it's sparc64 popt will always put 64 onto the end of libdir, which is incorrect. Instead, lets just remove that check and let portage decide which libdir it should be installing into.
Created attachment 99415 [details, diff] Remove MARK64 from confgiure.ac and Makefile.am This should be used instead of the current lib64 patch
On my way.
Fixed in cvs. Commit message: lib64 patch updated with the one provided by Roy Marples fixing bug #150984. The patch solves both multilib behaviour and lib6464 previously fixed. The patch doesn't affect already installed popt, so no bump is needed.