Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 607 - Mozilla unmerge prev. version wrecks new install
Summary: Mozilla unmerge prev. version wrecks new install
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-02-08 08:25 UTC by Arcady Genkin
Modified: 2003-02-04 19:42 UTC (History)
2 users (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 Arcady Genkin 2002-02-08 08:25:15 UTC
This same bug happened to me when going from mozilla-0.9.8.ebuild to 
mozilla-0.9.8-r1.ebuild, and now when going from -r1 to -r2.  The sequence:

  #build new version
  emerge mozilla
  #unmerge previous version
  emerge --unmerge /var/db/pkg/net-www/mozilla-<N.N.N-(r-1)>.ebuild

Renders the new installation unusable.  When launched, I get the following 
error message:

tea:~$ mozilla
*** Failed to load overlay 
chrome://messenger/content/mailNavigatorOverlay.xul
*** Failed to load overlay chrome://messenger/content/mailTasksOverlay.xul
Warning add child failed!!
Warning add child failed!!

When I then do a clean install:

  emerge --unmerge mozilla
  emerge mozilla

the same ebuild produces a workable version.

I'm guessing that unmerging the prev. version operation erroneously removes 
some files from the new one.
Comment 1 Arcady Genkin 2002-02-09 11:20:50 UTC
Update:

Turns out that the install of the -r2 just plain doesn't work for me, 
regardless of the sequence of merge/unmerge operations, with the error 
message, reported in my previous comment.  So, it looks like it has nothing 
to do with the unmerge broken; sorry about the misleading information, but 
I just can't reproduce the merge-unmerge behaviour reported by me.

I tried removing my ~/.mozilla, and it didn't help, so it doesn't seem like 
my preferences are causing the bug.
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2002-02-11 10:15:30 UTC
Yep, mozilla is sticky.  It basically creates link maps or something, and if
there is old stale libs or chrome files, they get included (like libtimer_gtk.so).

The ideal will be to 'rm -rf /usr/lib/mozilla/{components,chrome}' in
pkg_preinst() to make sure we dont have anything that can be left over from the
old version, that is not in the new.

I am happy to do so if nobody will have problems with it.
Comment 3 Daniel Robbins (RETIRED) gentoo-dev 2002-02-11 11:43:01 UTC
Yes, just use ${ROOT} to prefix that.  Go for it.
Comment 4 Arcady Genkin 2002-02-12 02:31:02 UTC
Just to confirm, the "rm -rf ..." solution indeed worked for me.  I'm typing
this from Mozilla window. ;^)
Comment 5 Martin Schlemmer (RETIRED) gentoo-dev 2002-02-24 11:30:36 UTC
Should be solved now.