Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 219698 - gnome-extra/gnome-audio-2.22.1 fails to install w/ -j2 because of missing dependencies
Summary: gnome-extra/gnome-audio-2.22.1 fails to install w/ -j2 because of missing dep...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: http://bugzilla.gnome.org/show_bug.cg...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-29 10:07 UTC by Vaclav Slavik
Modified: 2008-05-10 15:13 UTC (History)
0 users

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


Attachments
files/gnome-audio-2.22.1-makefile.patch (gnome-audio-2.22.1-makefile.patch,513 bytes, text/plain)
2008-04-29 10:08 UTC, Vaclav Slavik
Details
gnome-audio-2.22.1.ebuild patch to apply the fix (gnome-audio-2.22.1.ebuild.patch,635 bytes, patch)
2008-04-29 10:08 UTC, Vaclav Slavik
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vaclav Slavik 2008-04-29 10:07:05 UTC
(Reported to upstream at the URL above already, reporting here to avoid duplication of work and to provide ebuild patch too.)

The install-default-links target in sounds/Makefile is missing dependency on
install-files. Because of it, make may execute install-default-links first or
in parallel (as it does with -jN for N>1). "ln -s" command then fails because
the target directory doesn't exist yet:

make -C sounds install
make[1]: Entering directory
`/var/tmp/portage/gnome-extra/gnome-audio-2.22.1/work/gnome-audio-2.22.1/sounds'
for I in *.wav */*.wav ; do \
                mkdir -p
/var/tmp/portage/gnome-extra/gnome-audio-2.22.1/image///usr/share/sounds/`dirname
$I`; \
                install -c -m 444  $I
/var/tmp/portage/gnome-extra/gnome-audio-2.22.1/image///usr/share/sounds/$I; \
        done
ln -sf startup3.wav
/var/tmp/portage/gnome-extra/gnome-audio-2.22.1/image///usr/share/sounds/login.wav
ln: creating symbolic link
`/var/tmp/portage/gnome-extra/gnome-audio-2.22.1/image///usr/share/sounds/login.wav':
No such file or directory
make[1]: *** [install-default-links] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory
`/var/tmp/portage/gnome-extra/gnome-audio-2.22.1/work/gnome-audio-2.22.1/sounds'
make: *** [install] Error 2

Attached patches take care of it.

Reproducible: Always
Comment 1 Vaclav Slavik 2008-04-29 10:08:13 UTC
Created attachment 151314 [details]
files/gnome-audio-2.22.1-makefile.patch
Comment 2 Vaclav Slavik 2008-04-29 10:08:34 UTC
Created attachment 151315 [details, diff]
gnome-audio-2.22.1.ebuild patch to apply the fix
Comment 3 Daniel Gryniewicz (RETIRED) gentoo-dev 2008-04-29 16:07:55 UTC
Hrm.  I cannot reproduce.  It installs fine for me with -j3 on a dualcore (I ran it in a loop for 37 times).
Comment 4 Vaclav Slavik 2008-04-29 17:47:54 UTC
(In reply to comment #3)
> Hrm.  I cannot reproduce.  It installs fine for me with -j3 on a dualcore (I
> ran it in a loop for 37 times).

What can I say? It's the nature of parallel make that a task sometimes finishes sooner or later *nondeterministically*. The bug is obvious if you understand how make's dependencies graph works (together with the fact that you cannot create a file or symlink in nonexistent directory).

FYI, upstream already applied the (no-brainer) patch.
Comment 5 Daniel Gryniewicz (RETIRED) gentoo-dev 2008-04-29 19:49:33 UTC
I didn't say it wasn't broken, just that I couldn't reproduce it.  Hard to test a fix when you can't reproduce it.
Comment 6 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-05-10 15:13:25 UTC
2.22.2 which has the fix is now in tree.