Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 217250 - gnome-extra/yelp-2.22.1 fails to install due to failed symlink creation
Summary: gnome-extra/yelp-2.22.1 fails to install due to failed symlink creation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: http://bugzilla.gnome.org/show_bug.cg...
Whiteboard:
Keywords:
Depends on:
Blocks: gnome2.22-tracker
  Show dependency tree
 
Reported: 2008-04-11 03:17 UTC by virdiq
Modified: 2008-05-05 03:18 UTC (History)
2 users (show)

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


Attachments
build.log of yelp-2.22.1 (build.log,99.65 KB, text/plain)
2008-04-11 03:19 UTC, virdiq
Details
output of emerge --info (emerge.info,3.16 KB, text/plain)
2008-04-11 03:20 UTC, virdiq
Details
Failed emerge install w/ parallel make enabled (gnome-extra:yelp-2.22.1-r1:20080430-062451.log_no_install_parallel_make,103.07 KB, text/plain)
2008-04-30 06:33 UTC, Ashu Tiwary
Details
Successful emerge / install with parallel make disabled (gnome-extra:yelp-2.22.1-r1:20080430-062721.log_install_no_parallel_make,125.07 KB, text/plain)
2008-04-30 06:33 UTC, Ashu Tiwary
Details
"emerge --info" with parallel make enabled (resulting in failed emerge / install) (emerge_info_w_parallel_make,4.62 KB, text/plain)
2008-04-30 06:34 UTC, Ashu Tiwary
Details
"emerge --info" with parallel make disabled (resulting in successful emerge / install) (emerge_info_wo_parallel_make,4.61 KB, text/plain)
2008-04-30 06:34 UTC, Ashu Tiwary
Details
Build log of failed emerge / install (gnome-extra:yelp-2.22.1-r1:20080501-070023.log,103.07 KB, text/plain)
2008-05-01 07:04 UTC, Ashu Tiwary
Details
Build log of successful emerge / install w/ above suggested ebuild modification (gnome-extra:yelp-2.22.1-r1:20080501-070129.log,125.43 KB, text/plain)
2008-05-01 07:05 UTC, Ashu Tiwary
Details
Modified ebuild for gnome-extra/yelp-2.22.1-r1 that allows successful emerge / install with parallel make enabled (yelp-2.22.1-r1.ebuild,1.92 KB, text/plain)
2008-05-01 07:06 UTC, Ashu Tiwary
Details

Note You need to log in before you can comment on or make changes to this bug.
Description virdiq 2008-04-11 03:17:43 UTC
gnome-extra/yelp-2.22.1 fails to install (after compiling successfully) with the following error creating a symlink:

...
rm -f /var/tmp/portage/gnome-extra/yelp-2.22.1/image//usr/bin/gnome-help && \
	ln -s yelp /var/tmp/portage/gnome-extra/yelp-2.22.1/image//usr/bin/gnome-help
make[3]: Nothing to be done for `install-data-am'.
ln: creating symbolic link `/var/tmp/portage/gnome-extra/yelp-2.22.1/image//usr/bin/gnome-help': No such file or directory
make[3]: *** [install-exec-local] Error 1
...

The attempted upgrade was performed from an existing installation of gnome-extra/yelp-2.22.0 on an ~amd64 installation of Gentoo.

Reproducible: Always

Steps to Reproduce:
1. Upgrade from yelp-2.22.0 by using emerge -av1 yelp

Actual Results:  
Compiled OK.
Error during portage installation phase (see attached build.log)

Expected Results:  
Installation should have succeeded.

See attached output of emerge --info.
Comment 1 virdiq 2008-04-11 03:19:17 UTC
Created attachment 149365 [details]
build.log of yelp-2.22.1
Comment 2 virdiq 2008-04-11 03:20:53 UTC
Created attachment 149366 [details]
output of emerge --info
Comment 3 virdiq 2008-04-11 04:06:10 UTC
Can't even replicate this one now... hmmm... closed.
Comment 4 virdiq 2008-04-11 04:19:11 UTC
Well maybe I'm wrong about not being able to reproduce this bug.

I just tried the following procedures (I start with yelp-2.22.1 installed):
1. emerge --unmerge yelp
2. emerge -1 =yelp-2.22.0
3. emerge -1 =yelp-2.22.0
4. emerge -1 yelp
5. emerge -1 yelp
6. emerge --unmerge yelp
7. emerge -1 yelp
8. emerge --unmerge yelp
9. emerge -1 =yelp-2.22.0
10. emerge -uND world

(2) failed to create the symlink but all other commands were OK.

I can't accurately reproduce this problem so will leave it as WORKSFORME unless someone else encounters similar issues (reopen this bug).
Comment 5 Rémi Cardona (RETIRED) gentoo-dev 2008-04-29 15:07:40 UTC
I'm thinking this could be a parallel make issue. Could you try again (running emerge -1 yelp in a loop) with an unset MAKEOPTS?

Thanks
Comment 6 Ashu Tiwary 2008-04-29 17:44:52 UTC
I've confirmed gnome-extra/yelp-2.22.1-r1 emerges / installs fine after removing parallel make option ("-j3"), whereas before I had the identical errors above.
Comment 7 virdiq 2008-04-30 06:20:25 UTC
I've tried "emerge -1 yelp" in a loop with both MAKEOPTS=-j3 and with MAKEOPTS undefined. After about 20 tries I haven't been able to reproduce this bug.

Ashu, have you worked out a way to reproduce this potential bug more consistently?
Comment 8 Ashu Tiwary 2008-04-30 06:31:37 UTC
(In reply to comment #7)
> 
> Ashu, have you worked out a way to reproduce this potential bug more
> consistently?
> 

Ya - I've just reproduced both the installation failure and the successful emerge / install - only change is to enable / disable parallel make, respectively.

I'm attaching the two build logs + the emerge --info for both
Comment 9 Ashu Tiwary 2008-04-30 06:33:11 UTC
Created attachment 151398 [details]
Failed emerge install w/ parallel make enabled
Comment 10 Ashu Tiwary 2008-04-30 06:33:47 UTC
Created attachment 151399 [details]
Successful emerge / install with parallel make disabled
Comment 11 Ashu Tiwary 2008-04-30 06:34:25 UTC
Created attachment 151400 [details]
"emerge --info" with parallel make enabled (resulting in failed emerge / install)
Comment 12 Ashu Tiwary 2008-04-30 06:34:55 UTC
Created attachment 151401 [details]
"emerge --info" with parallel make disabled (resulting in successful emerge / install)
Comment 13 Ashu Tiwary 2008-04-30 06:35:48 UTC
BTW - my USE options:

ashu@liberte ~ $ grep yelp /etc/portage/package.use
gnome-extra/yelp firefox beagle xulrunner lzma
Comment 14 Rémi Cardona (RETIRED) gentoo-dev 2008-04-30 08:06:13 UTC
Could you try putting something like this in the ebuild's src_unpack()

sed -e "s/install-exec-local:/install-exec-hook:/" -i src/Makefile.am
eautomake

Thanks
Comment 15 Ashu Tiwary 2008-05-01 07:02:33 UTC
(In reply to comment #14)
> Could you try putting something like this in the ebuild's src_unpack()
> 
> sed -e "s/install-exec-local:/install-exec-hook:/" -i src/Makefile.am
> eautomake
> 
> Thanks
> 

Yep - that works well: with parallel make enabled, adding the above line to the ebuild enables a successful emerge / install.

I'll attach the two build logs + the updated ebuild
Comment 16 Ashu Tiwary 2008-05-01 07:04:36 UTC
Created attachment 151488 [details]
Build log of failed emerge / install
Comment 17 Ashu Tiwary 2008-05-01 07:05:23 UTC
Created attachment 151490 [details]
Build log of successful emerge / install w/ above suggested ebuild modification
Comment 18 Ashu Tiwary 2008-05-01 07:06:31 UTC
Created attachment 151491 [details]
Modified ebuild for gnome-extra/yelp-2.22.1-r1 that allows successful emerge / install with parallel make enabled
Comment 19 Marcello Magaldi 2008-05-01 18:56:55 UTC
(In reply to comment #18)
> Created an attachment (id=151491) [edit]
> Modified ebuild for gnome-extra/yelp-2.22.1-r1 that allows successful emerge /
> install with parallel make enabled
> 

is this patch going to be accepted by gnome herd ?
Comment 20 Rémi Cardona (RETIRED) gentoo-dev 2008-05-02 07:12:20 UTC
(In reply to comment #19)
> is this patch going to be accepted by gnome herd ?

1) I wrote that patch
2) I'm part of the Gnome Herd

Therefore, I would say that there's a high probability that the Gnome Herd will accept that patch...

Sarcasm aside, we work on Gentoo on our free time, so please understand that we don't necessarily fix all bugs the very minute they come in.

Thanks

PS, bug reported upstream too
Comment 21 Marcello Magaldi 2008-05-02 07:29:36 UTC
(In reply to comment #20)
> (In reply to comment #19)
> > is this patch going to be accepted by gnome herd ?
> 
> 1) I wrote that patch
> 2) I'm part of the Gnome Herd
> 

I didn't know that . You should agree with me that there are a lot of devs in gentoo and I could not know them all and I should not know about what devs belongs to what herd.

>[...]
> Sarcasm aside, we work on Gentoo on our free time, so please understand that we
> don't necessarily fix all bugs the very minute they come in.
> 

I didn't mean that , sorry for posting too soon 

> Thanks
> 
> PS, bug reported upstream too
> 

Comment 22 Rémi Cardona (RETIRED) gentoo-dev 2008-05-02 08:02:10 UTC
(In reply to comment #21)
> I didn't mean that , sorry for posting too soon 

No harm done ;)

Fixed in portage without a revbump. Thanks everyone.

@Gilles, I quietly removed the AT_M4DIR="${AT_M4DIR} m4" env before calling eautoreconf because the autotools eclass picks it up automatically from Makefile.in.
Comment 23 Ryan Hill (RETIRED) gentoo-dev 2008-05-05 03:18:13 UTC
this affects current stable (2.20.0) too.  can you backport this fix?