I'm trying to install the last stable version of kde-meta on new clean system. It's all ok except kdm-4.11.5. (I tried kdm-4.11.7 as well) The install phase fails with message: rm: cannot remove '/var/tmp/portage/kde-base/kdm-4.10.2/image//usr/share/apps/kdm/sessions/kde-plasma.desktop': No such file or directory It stands for the next part of ebuild: # an equivalent file is already installed by kde-base/startkde, bug 377151 rm "${ED}/usr/share/apps/kdm/sessions/kde-plasma.desktop" || die I think the possible solution would be to comment whole line or avoid '|| die' part. However when I tried this the next part of ebuild: sed -e "s|^.*SessionsDirs=.*$|#&\nSessionsDirs=${EPREFIX}/usr/share/apps/kdm/sessions,${EPREFIX}/usr/share/xsessions|" \ -e "/#ServerTimeout=/s/^.*$/ServerTimeout=30/" \ -e "/#TerminateServer=/s/^.*$/TerminateServer=true/" \ -e "s|^.*DataDir=.*$|#&\nDataDir=${EPREFIX}${KDM_HOME}|" \ -e "s|^.*FaceDir=.*$|#&\nFaceDir=${EPREFIX}${KDM_HOME}/faces|" \ -i "${ED}"/usr/share/config/kdm/kdmrc \ || die "Failed to set ServerTimeout and SessionsDirs correctly in kdmrc." also fails. I believe the reason is that the files are not exist, especially path ${ED}/usr/share/ doesn't contain 'apps' directory at all, only 'doc' Could you please advice?
*** This bug has been marked as a duplicate of bug 492732 ***