Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 27719 - Mozilla builds very oddly if old version isn't first removed
Summary: Mozilla builds very oddly if old version isn't first removed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-01 10:20 UTC by MAL
Modified: 2004-04-25 21:25 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 MAL 2003-09-01 10:20:44 UTC
For a long time now, (~5 months), I have had trouble with Mozilla.  It crashed 
randomly when viewing mails, some settings just wouldn't save (or change at all)
, and it tended to be slower than on another equivalent machine.

I tried removing my current profile, (~/.mozilla), and recreating, but when I 
clicked ok in the 'Create New Profile' dialog, mozilla just vanished.  I just 
could not get it to create a new profile.

So I restored my old profile, and have stayed with that for a long time, 
ignoring the odd crash, assuming a future update of GTK or Moz itself would fix 
it.

4 Mozilla versions and several GTK versions later, it was still doing it.  I 
tried rebuilding Mozilla with less and less USE flags/CFLAGS, but even with 
CFLAGS="" CXXFLAGS="" and USE="-*", it still wouldn't create a profile.

So after a bit of bugreporting on the mozilla bugzilla, I decided that 
completely removing all traces of any old Mozilla before compiling, was what I 
needed to do.

emerge unmerge mozilla, left quite a few files in /usr/lib/mozilla and it's 
subdirectories.  I should have catalogued what, but I was eager to try this.
I removed the /usr/lib/mozilla directory and everything within, emerge'd Moz 
(with all my normal USE flags), and tada... no more problems.  I can save 
settings, mail doesn't crash, and I can create new profiles.

I know the Mozilla ebuild has an ewarn or 2 about removing old versions because 
old include headers can be a prob, but after I unmerged mozilla no headers 
remained, just other files, (I assume ones that were added by me installing 
mozilla addons in the past, skins, etc.).

So I think an additional warning should be added to inform users to completely 
remove all contents of the old /usr/lib/mozilla tree if they experience 
problems.  I know this isn't ideal for everyone, because some people want to 
keep 3rd party extensions, but it can clearly cause problems.  I think users 
should be warned.

Reproducible: Always
Steps to Reproduce:
1. emerge mozilla while some (no idea which) files from an older copy or 3rd 
party extensions exist in /usr/lib/mozilla.
Actual Results:  
Mozilla suffers from very odd quirks.

Expected Results:  
Worked perfectly, ignoring odd files in there.

Portage 2.0.48-r5 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.20-win4lin-r1 i686 AMD Athlon(tm) processor
GENTOO_MIRRORS="http://www.ibiblio.org/gentoo http://www.mirror.ac.uk/sites/www.
ibiblio.org/gentoo/ http://ftp.gentoo.skynet.be/pub/gentoo/"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config 
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config 
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY="/usr/local/portage"
USE="x86 oss 3dnow apm avi crypt cups encode foomaticdb gif jpeg gnome libg++ 
libwww mad mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 
xmms xv zlib gtkhtml alsa gdbm berkdb slang readline arts aalib nas bonobo svga 
ggi tcltk java guile mysql X sdl gpm tcpd pam ssl perl python esd imlib 
oggvorbis gtk qt motif opengl mozilla cdr clamav dga doc dvd ethereal fbcon 
flash gb gd gphoto2 gtk2 imap kerberos lcms libgda maildir mozcalendar moznoirc 
oav odbc pic samba sasl scanner slp snmp socks5 sse tiff usb wmf xface xml -kde 
-ldap"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon -O2 -pipe"
CXXFLAGS="-march=athlon -O2 -pipe"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j3"
AUTOCLEAN="yes"
SYNC="rsync://192.168.0.254/gentoo-portage"
FEATURES="ccache sandbox distcc userpriv usersandbox"
Comment 1 Aron Griffis (RETIRED) gentoo-dev 2004-04-25 21:25:42 UTC
I fixed this by blowing away /usr/lib/mozilla in pkg_preinst in mozilla-1.7_rc1 and mozilla-firefox-0.8-r3