This are changes I made to those files so I could cross compile and get the executables stripped.
Created attachment 10171 [details, diff] the patch I am using
Created attachment 10210 [details, diff] 2nd patch for /usr/lib/portage/bin This patch contains the changes I have made locally to /usr/lib/portage/bin trying to make it cross compiler friendly. I could not get the sed line in prepstrip working after our chat in #gentoo-portage so still using my mods to prestrip. an example of what I am doing is CBUILD is defined in my make.conf as i686-pc-linux-gnu so it is always defined. ARCH=sparc ROOT=/tmp/cross emerge --nodeps /usr/local/portage/arch-blank/linux-headers/linux-headers-2.4.20-r6.ebuild CHOST=sparc-unknown-linux-gnu ROOT=/tmp/cross emerge --nodeps glibc CHOST=sparc-unknown-linux-gnu ROOT=/tmp/cross emerge --nodeps ncurses CHOST=sparc-unknown-linux-gnu ROOT=/tmp/cross emerge --nodeps bash CHOST=sparc-unknown-linux-gnu ROOT=/tmp/cross emerge --nodeps fileutils This gives me something that I can copy to my sparc then chroot into. With this patch to /usr/lib/portage/lib all files are stripped and working. I had also compiled ccache because it uses doexe to install the executables. Without the mod to doexe the resulting ccache binary is useless. With the strip mod it works.
fixed in current cvs