Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 492732 - [kde overlay] kde-base/kdm-4.11.49.9999: Failed to emerge kdm (install phase)
Summary: [kde overlay] kde-base/kdm-4.11.49.9999: Failed to emerge kdm (install phase)
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords: Bug, EBUILD
: 508942 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-11-27 21:41 UTC by Walter Sutter
Modified: 2014-10-31 14:08 UTC (History)
1 user (show)

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


Attachments
build.log, emerge --info, emerge -pqv (details,59.91 KB, text/plain)
2013-11-27 21:41 UTC, Walter Sutter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Walter Sutter 2013-11-27 21:41:23 UTC
Created attachment 364098 [details]
build.log, emerge --info, emerge -pqv

Hello

I am not able to install kde-base/kdm-4.11.49.9999 since it is impossible to remove the following file:

/var/tmp/portage/kde-base/kdm-4.11.49.9999/image//usr/share/apps/kdm/sessions/kde-plasma.desktop

Obviously, there is an obsolete / in the path.

I'd be glad if someone could fix that path.

Thanks
Walter
Comment 1 Michael Palimaka (kensington) gentoo-dev 2013-11-28 14:18:10 UTC
Can you reproduce this consistently?
Comment 2 Walter Sutter 2013-11-28 18:03:42 UTC
I've just executed "emerge --sync" and tried to emerge kdm twice in a row again. Installing kdm still fails with the same message...

I think the error is on line 74 in kdm-4.11.49.9999.ebuild. There it says:
rm "${ED}/usr/share/apps/kdm/sessions/kde-plasma.desktop" || die

I assume the value of the variable ${ED} ends with a slash, accidentally. Therefore, I believe lines 87 as well as 91 are wrong, too.
Comment 3 Michael Palimaka (kensington) gentoo-dev 2013-11-28 18:11:31 UTC
After it bails out, is the 
/var/tmp/portage/kde-base/kdm-4.11.49.9999/image/usr/share/apps/kdm/sessions/kde-plasma.desktop present at all?

On my system at least, extras slashes make no difference:
$ touch /tmp/foo && rm ////tmp////foo && echo $?
0
Comment 4 Walter Sutter 2013-11-28 18:43:25 UTC
Interesting. I wasn't aware that extra slashes don't make a difference. 

The file is actually not present on my system. In fact, there is no folder "apps" underneath /var/tmp/portage/kde-base/kdm-4.11.49.9999/image/usr/share/.

So, the solution is to avoid the "|| die" instruction, I guess.
Comment 5 Michael Palimaka (kensington) gentoo-dev 2014-04-28 09:15:37 UTC
*** Bug 508942 has been marked as a duplicate of this bug. ***
Comment 6 Constantine 2014-04-28 09:33:44 UTC
Such as my bug was marked as duplicate, I'll make a comment here as well.

I tried to comment line that removes the kde-plasma.desktop file from temporary build dir.
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'

So I believe that the root cause is that that directory (/var/tmp/portage/kde-base/kdm-<version>/temp/usr/share/apps') for some reason was not created during build phase.
Comment 7 Michael Palimaka (kensington) gentoo-dev 2014-04-28 09:35:37 UTC
On the other bug you wrote: /var/tmp/portage/kde-base/kdm-4.10.2/[...] - is that version of 4.10.2 correct?
Comment 8 Constantine 2014-04-28 09:37:35 UTC
It's 4.11.5. That's my fault, I fixed that
Comment 9 Michael Palimaka (kensington) gentoo-dev 2014-04-28 09:44:17 UTC
Do you have have x11-libs/libXau and x11-libs/libXdmcp installed, and if so, which versions?
Comment 10 Constantine 2014-04-28 16:14:16 UTC
Well, I had this packets but I re-emerged them and this solved the issue.
Actually, these were not only the packages I had to reemerge for other sources to 'see' them correctly.
I believe it's some broken dependencies in current stage3.

Anyway, thanks for advice.
I think in current circumstances it is reasonable to do emerge -e system after stage 3 unpacking to avoid such strange and so hard to track issues.
Comment 11 Michael Palimaka (kensington) gentoo-dev 2014-04-28 16:35:32 UTC
Which stage? I don't see any X libraries in latest amd64 stage3 autobuild.
Comment 12 Constantine 2014-04-28 16:51:47 UTC
Well, I have some thoughts about the root cause.
I believe that I occasionally forgot to mount proc dev and sys before chrooting the system and some of packets installed was complaining about missing /dev/shm however some of them actually did install.
So this would be the reason that broke the dependencies because some package was not correctly installed when reported as they was.
Comment 13 Michael Palimaka (kensington) gentoo-dev 2014-10-31 14:08:19 UTC
Closing since this appears to be caused by broken dependencies. Please reopen if problem persists.