The ebuild tries to remove the file from $"{D}"/usr/... instead of "${D}"/"${EPREFIX}"/usr/... rm: cannot remove '/scratch/mmokrejs/gentoo_rap/var/tmp/portage/app-crypt/heimdal-1.5.3-r2/image//usr/share/man/man5/qop.5': No such file or directory * ERROR: app-crypt/heimdal-1.5.3-r2::gentoo failed (install phase): * (no error message) * * Call stack: * ebuild.sh, line 115: Called src_install * environment, line 4772: Called multilib-minimal_src_install * environment, line 3154: Called multilib_src_install_all * environment, line 3622: Called die * The specific snippet of code: * rm "${D}"/usr/share/man/man5/qop.5 || die; * * If you need support, post the output of `emerge --info '=app-crypt/heimdal-1.5.3-r2::gentoo'`, * the complete build log and the output of `emerge -pqv '=app-crypt/heimdal-1.5.3-r2::gentoo'`. * The complete build log is located at '/scratch/mmokrejs/gentoo_rap/var/tmp/portage/app-crypt/heimdal-1.5.3-r2/temp/build.log'. * The ebuild environment file is located at '/scratch/mmokrejs/gentoo_rap/var/tmp/portage/app-crypt/heimdal-1.5.3-r2/temp/environment'. * Working directory: '/scratch/mmokrejs/gentoo_rap/var/tmp/portage/app-crypt/heimdal-1.5.3-r2/work/heimdal-1.5.3' * S: '/scratch/mmokrejs/gentoo_rap/var/tmp/portage/app-crypt/heimdal-1.5.3-r2/work/heimdal-1.5.3' $ ls -latr /scratch/mmokrejs/gentoo_rap/var/tmp/portage/app-crypt/heimdal-1.5.3-r2/image/scratch/mmokrejs/gentoo_rap/usr/share/man/man5/ total 40 -rw-r--r-- 1 mmokrejs mmokrejs 18747 Jun 29 09:58 krb5.conf.5 -rw-r--r-- 1 mmokrejs mmokrejs 3269 Jun 29 09:59 mech.5 lrwxrwxrwx 1 mmokrejs mmokrejs 11 Jun 29 09:59 qop.5 -> mech/mech.5 drwxr-xr-x 6 mmokrejs mmokrejs 4096 Jun 29 09:59 .. -rw-r--r-- 1 mmokrejs mmokrejs 731 Jun 29 09:59 ftpusers.5 -rw-r--r-- 1 mmokrejs mmokrejs 1582 Jun 29 09:59 login.access.5 drwxr-xr-x 2 mmokrejs mmokrejs 4096 Jun 29 09:59 .