Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 508942 - KDM install fails with 'rm: cannot remove '/var/tmp/portage/kde-base/kdm-4.11.5/image//usr/share/apps/kdm/sessions/kde-plasma.desktop': No such file or directory'
Summary: KDM install fails with 'rm: cannot remove '/var/tmp/portage/kde-base/kdm-4.11...
Status: RESOLVED DUPLICATE of bug 492732
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: AMD64 Linux
: Normal major (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-28 09:13 UTC by Constantine
Modified: 2014-04-28 09:37 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Constantine 2014-04-28 09:13:11 UTC
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?
Comment 1 Michael Palimaka (kensington) gentoo-dev 2014-04-28 09:15:37 UTC

*** This bug has been marked as a duplicate of bug 492732 ***