--- /usr/portage/eclass/vim-doc.eclass 2011-12-27 17:55:12.000000000 +0000 +++ /usr/portage/eclass/vim-doc.eclass 2012-08-10 11:59:33.992213549 +0100 @@ -56,6 +56,9 @@ # Re-create / install new links if [[ -d $vimfiles/doc ]]; then + # Strip ROOT from the beginning of $vimfiles to support cross + # compilation. Note that this is *not* EROOT. + vimfiles=/${vimfiles##$ROOT} ln -s $vimfiles/doc/*.txt $d/doc 2>/dev/null fi