i2 ~ # quickpkg portage < snip > /usr/bin/quickpkg: line 45: 11962 Segmentation fault tbz2tool join ${MYDIR}/bin.tar.bz2 ${MYDIR}/inf.xpak ${MYDIR}/$1.tbz2 narrowing this down it's because tbz2tool.c doesnt include enough header files ... function prototypes are assumed for many functions (which are wrong) and things break the fix is to simply add '#include <stdlib.h>' to the file i2 ~ # tar -jxf /usr/portage/distfiles/portage-2.0.51-r2.tar.bz2 i2 ~ # gcc portage-2.0.51-r2/src/tbz2tool.c -Wall portage-2.0.51-r2/src/tbz2tool.c: In function `main': portage-2.0.51-r2/src/tbz2tool.c:61: warning: implicit declaration of function `malloc' portage-2.0.51-r2/src/tbz2tool.c:61: warning: cast to pointer from integer of different size portage-2.0.51-r2/src/tbz2tool.c:64: warning: cast to pointer from integer of different size portage-2.0.51-r2/src/tbz2tool.c:65: warning: implicit declaration of function `free' portage-2.0.51-r2/src/tbz2tool.c:134: warning: implicit declaration of function `exit'
Same problem on AMD64 with portage-2.0.51-r3. Same solution works.
Removed buildpkg from FEATURES. Portage installs ok now.
2.0.51-r15 fixes this for sure