The sys-libs/db emerge breaks every time it tries to be installed, no matter what version (3.x and 4.x). It configures and compiles fine, but when it is being installed it breaks when cp tries to preserve permissions on the files. Here's the error messages: /bin/cp: preserving permissions for `/var/tmp/portage/db-3.2.9-r1/imag e//usr/docs/foo': Invalid argument make: *** [install_docs] Error 1 !!! ERROR: The ebuild did not complete successfully. !!! Function src_install, Line 4, Exitcode 2 !!! (no error message)
This is a known bug with XFS, and has nothing to do with sys-libs/db. Please use a different filesystem.