Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 465466 - file collisions between www-client/firefox / www-client/seamonkey / mail-client/thunderbird
Summary: file collisions between www-client/firefox / www-client/seamonkey / mail-clie...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
: 485942 485998 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-04-11 05:52 UTC by Torsten Kaiser
Modified: 2014-10-25 12:50 UTC (History)
11 users (show)

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


Attachments
compressed build.log from firefox-20 (build.log.gz,583.02 KB, application/gzip)
2013-04-11 05:52 UTC, Torsten Kaiser
Details
Ebuild I used for testing, fails with USE=crypt, but USE=-crypt worked for me (thunderbird-22.0_beta1.ebuild,11.23 KB, text/plain)
2013-06-20 20:16 UTC, Torsten Kaiser
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Torsten Kaiser 2013-04-11 05:52:19 UTC
Created attachment 345172 [details]
compressed build.log from firefox-20

After the upgrade of libpng revdep-rebuild wanted to rebuild both seamonkey and firefox. The rebuild of seamonkey was scheduled first and succeeded, but the rebuild of firefox failed with the following file collisions:

 * Messages for package www-client/firefox-20.0:

 * You are enabling official branding. You may not redistribute this build
 * to any users on your network or the internet. Doing so puts yourself into
 * a legal problem with Mozilla Foundation
 * You can disable it by emerging firefox _with_ the bindist USE-flag
 * This package will overwrite one or more files that may belong to other
 * packages (see list below). You can use a command such as `portageq
 * owners / <filename>` to identify the installed package that owns a
 * file. If portageq reports that only one package owns a file then do
 * NOT file a bug report. A bug report is only useful if it identifies at
 * least two or more packages that are known to install the same file(s).
 * If a collision occurs and you can not explain where the file came from
 * then you should simply ignore the collision since there is not enough
 * information to determine if a real problem exists. Please do NOT file
 * a bug report at http://bugs.gentoo.org unless you report exactly which
 * two packages install the same file(s). Once again, please do NOT file
 * a bug report unless you have completely understood the above message.
 * 
 * Detected file collision(s):
 * 
 *      /usr/lib/debug/.build-id/65/d23717af48d9eda9a8f15e2a1391537d84b5fb
 *      /usr/lib/debug/.build-id/65/d23717af48d9eda9a8f15e2a1391537d84b5fb.debug
 *      /usr/lib/debug/.build-id/bd/f53486ad8d1f5270028826736a1b62cb8f2053
 *      /usr/lib/debug/.build-id/bd/f53486ad8d1f5270028826736a1b62cb8f2053.debug
 *      /usr/lib/debug/.build-id/a0/17a5de4a078905e3c44a193e4790337cf20608
 *      /usr/lib/debug/.build-id/a0/17a5de4a078905e3c44a193e4790337cf20608.debug
 *      /usr/lib/debug/.build-id/21/bc2bd00f213e91302128d59806a29fa79a8746
 *      /usr/lib/debug/.build-id/21/bc2bd00f213e91302128d59806a29fa79a8746.debug
 *      /usr/lib/debug/.build-id/f1/34b690d68d53d71d6900451b58400ad627c8f3
 *      /usr/lib/debug/.build-id/f1/34b690d68d53d71d6900451b58400ad627c8f3.debug
 *      /usr/lib/debug/.build-id/83/ee90ee71594a2f37418f9206746e00ca577c80
 *      /usr/lib/debug/.build-id/83/ee90ee71594a2f37418f9206746e00ca577c80.debug
 * 
 * Searching all installed packages for file collisions...
 * 
 * Press Ctrl-C to Stop
 * 
 * www-client/seamonkey-2.17:0::gentoo
 *      /usr/lib/debug/.build-id/21/bc2bd00f213e91302128d59806a29fa79a8746
 *      /usr/lib/debug/.build-id/21/bc2bd00f213e91302128d59806a29fa79a8746.debug
 *      /usr/lib/debug/.build-id/65/d23717af48d9eda9a8f15e2a1391537d84b5fb
 *      /usr/lib/debug/.build-id/65/d23717af48d9eda9a8f15e2a1391537d84b5fb.debug
 *      /usr/lib/debug/.build-id/83/ee90ee71594a2f37418f9206746e00ca577c80
 *      /usr/lib/debug/.build-id/83/ee90ee71594a2f37418f9206746e00ca577c80.debug
 *      /usr/lib/debug/.build-id/a0/17a5de4a078905e3c44a193e4790337cf20608
 *      /usr/lib/debug/.build-id/a0/17a5de4a078905e3c44a193e4790337cf20608.debug
 *      /usr/lib/debug/.build-id/bd/f53486ad8d1f5270028826736a1b62cb8f2053
 *      /usr/lib/debug/.build-id/bd/f53486ad8d1f5270028826736a1b62cb8f2053.debug
 *      /usr/lib/debug/.build-id/f1/34b690d68d53d71d6900451b58400ad627c8f3
 *      /usr/lib/debug/.build-id/f1/34b690d68d53d71d6900451b58400ad627c8f3.debug
 * 
 * Package 'www-client/firefox-20.0' NOT merged due to file collisions.
 * If necessary, refer to your elog messages for the whole content of the
 * above message.

According to genlop the build of both browsers worked fine with the versions from Apr/3 and Apr/6:
     Wed Apr  3 19:55:08 2013 >>> www-client/seamonkey-2.17
     Sat Apr  6 10:05:07 2013 >>> www-client/firefox-20.0
     Wed Apr 10 22:24:37 2013 >>> www-client/seamonkey-2.17

I would suspect the debug build changes from bug 464794.

emerge --info from seamonkey and firefox follows, I will also attach the compressed build.log from the failed firefox.


Portage 2.1.11.60 (default/linux/amd64/13.0, gcc-4.7.2, glibc-2.17, 3.9.0-rc6 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.9.0-rc6-x86_64-AMD_Phenom-tm-_II_X6_1090T_Processor-with-gentoo-2.2
KiB Mem:    12282880 total,   2611956 free
KiB Swap:   25165756 total,  25104668 free
Timestamp of tree: Wed, 10 Apr 2013 16:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0::java-overlay
dev-lang/python:          2.7.3-r3, 3.2.3-r2, 3.3.0-r1
dev-util/cmake:           2.8.10.2-r1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.12.6, 1.13.1
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.3, 4.7.2-r1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.8 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo nx x11 sunrise java-overlay local
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -march=amdfam10 -O3 -fomit-frame-pointer -fweb -frename-registers -ftracer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-pipe -march=amdfam10 -O3 -fomit-frame-pointer -fweb -frename-registers -ftracer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --jobs=6 --load-average=7 --keep-going"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j6"
PKGDIR="/var/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage-local/layman/nx /usr/portage-local/layman/x11 /usr/portage-local/layman/sunrise /usr/portage-local/layman/java-overlay /root/ebuilds"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 7zip S3TC X a52 aac aalib ace acl acpi ads aften aio alisp alsa altenburgcards amarok amd64 amr amrnb amrr amrwb animgif ao apache2 apng aqua_theme archive async audacious audiofile autoipd avahi bcel bcp bdf beagle berkdb bigpatch binfilter bittorrent bl blas blender-game bluetooth bonusscripts boost bzip2 c++ cairo calendar caps carbone_theme cblas-external cdda cdio cdparanoia cdr cgi chm chroot cifsupcall cisco cli clucene cmdctrl cmdsubmenu compress connectionstatus consolekit contactnotes corefonts cpio cpufreq cracklib crypt cscope css ctype cups curl cutterlimit cutterqueue cuttime cvs cvsgraph cxx dar64 dbase dbm dbus dbx dc1394 declarative demo device-mapper divx djvu dlz dmi dmx dnotify doc domainkeys dot double-precision dpmod dri dts dv dvb dvbplayer dvd dvdarchive dvdchapjump dvdr dvdread dvi ecc editor egl elf emoticon encode enscript equalizer excel exif exiv2 expat extensions extra extra-algorithms extra-cardsets extraengine extras fam fat fbcon festival ffmpeg fftw file file-icons flac fluidsynth fmod font-server fontconfig fortran fping fpx ftp fts3 fuse g3dvl gcj gd gdbm gecko geoip gflags gif gimp git gkrellm gles1 gles2 glib glibc-omitfp glitz glsa glut gmedia gmp gnutls gopher gpac gpg gpgme gphoto2 gpm graphics graphite graphviz gs gstreamer gtk gtk3 gudev gutenprint gzip hddtemp hdri highlight history html htmlhandbook http httpd hvm hwdb ical iceweasel iconv icq icu id3 id3tag ide idea ieee1394 image imagemagick imap infowidget inherit-graph inkjar innodb inotify ipfilter ipsec iptc ipv6 irc irrlicht ithreads jabber jack jad jadetex java java-external java6 jce jingle jit jni john jpeg jpeg2k juju jumpplay kde kdecards kdepim kexi kipi kmid kpathsea ktts kvm latex lcms ldap libcaca libkms libmpeg2 libmysqlclient libnotify libsamplerate libsexy libssh2 libvisual libwww liemikuutio lights lirc lircsettings livebuffer llvm lm_sensors logrotate logviewer loop-playback lua lucene lyx lzma lzo mad magic mail mailwrapper mainmenuhooks maps masquerade math matroska maya-shaderlibrary mbox mbrola md5sum mdev mdnsresponder-compat meanwhile menu-plugin menubar menuorg metric mhash midi mikmod mime mimencode minizip mixer mjpeg mmap mmx mmxext mng mod modplug modules motif mounts-check mozdevelop mozdom mozilla mp2 mp3 mp4 mp4live mpd mpeg mpeg2 mpg123 mplayer mppe-mppc mpu401 mschap msn mtp mudflap multilib multiprocess musepack music mysql mysqli mythtv nagios-dns nagios-ntp nagios-ping nagios-ssh nat ncurses net netjack netmeeting network network-cron networkmanager nfs nfsidmap nfsv4 nfsv41 nls nntp normalize nova nptl nsplugin nspr nss ntfs ntfsprogs nuv offensive ogg ogg123 ole opcache openexr opengl openmp openssh openssl openvg openvpn opus osmesa pam pango pascal pcap pcre pda pdf pdfimport perl php physfs pixmaps pkcs11 plasma player pmu png policykit posix postfix postscript povray pptp pth pulseaudio python qemu qt3support qt4 query-browser quicktime radio rar raw rc5 rdesktop readline realmedia remix replaygain restrict-javascript rle rss rtc rtmp rtsp samba sasl sbig scanner screen script sdk sdl sdl-image sdl-sound sdlaudio seamonkey search secure-delete semantic-desktop sensord server session shared-dricore shorten shout sid signatures simplexml skins smime smp smtp sndfile sockets socks5 solver songs sortrecords sound soundex sounds sox speech speedo speex spell spice sql sqlite sqlite3 sse sse2 sse3 sse4a ssl stars stats stemmer stlport stream submenu subtitles subversion suhosin svg svgz swat sylpheed sysfs syslog system-jpeg system-libvncserver system-sqlite systray sysvipc szip t1lib taglib tagwriting tb4 tcpd teletext tetex tex texteffect textures tftp tga themes theora thesaurus threads threadsafe tidy tiff timercmd timerinfo tk tls toolbar tools transcode trayicon truetype tta ttxtsubs twolame ui unicode unlock-notify usb usbredir userfiles utils uudeview uuencode v4l v4l2 vaapi valgrind vamp vcd vcdx vdpau vdr video videos vim-syntax visualization vlm vnc vncviewer voice volctrl vorbis vorbis-psy vpx wav wavpack web webdav webinterface webkit webm webp wifi winpopup wireshark wma wmf wmp wxwidgets x264 xa xanim xcb xcf xcomposite xext xface xforms xfs xft xhtml xine xinerama xml xorg xosd xplanet xpm xrandr xrender xscreensaver xsl xspice xv xvfb xvid xvmc xvnc yahoo yv12 zip zlib zrtp zvbi" ABI_X86="32 64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="nss" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2 python3_3" QEMU_SOFTMMU_TARGETS="x86_64 alpha arm cris i386 m68k ppc ppc64 ppcemb s390x sh4 sh4eb sparc sparc64" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="dummy fbdev v4l vesa radeon r600" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

www-client/seamonkey-2.17 was built with the following:
USE="alsa chatzilla crypt dbus gstreamer ipc jit libnotify (multilib) roaming system-jpeg system-sqlite wifi -custom-cflags -custom-optimization -debug -startup-notification" ABI_X86="64" ELIBC="glibc" KERNEL="linux" LINGUAS="de -be -ca -cs -en_GB -es_AR -es_ES -fi -fr -gl -hu -it -ja -lt -nb_NO -nl -pl -pt_PT -ru -sk -sv_SE -tr -uk -zh_CN -zh_TW" USERLAND="GNU"
CFLAGS="-pipe -march=amdfam10 -mno-avx"
CXXFLAGS="-pipe -march=amdfam10 -mno-avx"

www-client/firefox-20.0 was built with the following:
USE="alsa dbus gstreamer jit libnotify minimal (multilib) system-jpeg system-sqlite wifi -bindist -custom-cflags -custom-optimization -debug (-pgo) (-selinux) -startup-notification" ABI_X86="64" ELIBC="glibc" KERNEL="linux" LINGUAS="de -af -ak -ar -as -ast -be -bg -bn_BD -bn_IN -br -bs -ca -cs -csb -cy -da -el -en_GB -en_ZA -eo -es_AR -es_CL -es_ES -es_MX -et -eu -fa -fi -fr -fy_NL -ga_IE -gd -gl -gu_IN -he -hi_IN -hr -hu -hy_AM -id -is -it -ja -kk -km -kn -ko -ku -lg -lt -lv -mai -mk -ml -mr -nb_NO -nl -nn_NO -nso -or -pa_IN -pl -pt_BR -pt_PT -rm -ro -ru -si -sk -sl -son -sq -sr -sv_SE -ta -ta_LK -te -th -tr -uk -vi -zh_CN -zh_TW -zu" USERLAND="GNU"
CFLAGS="-pipe -march=amdfam10 -mno-avx"
CXXFLAGS="-pipe -march=amdfam10 -mno-avx"
Comment 1 Torsten Kaiser 2013-04-11 19:33:46 UTC
It seems the changes from bug 464794 did not cause these files to pop up. I found them also on an different system that build firefox and seamonkey on Apr/6.

But these changes seem to have caused, that both builds of seamonkey and firefox now produce indentical libdbusservice.so, libmozalloc.so, mozilla-xremote-client, plugin-container, libxpcom.so and libmozgnome.so. Probably because they no longer contain some random seamonkey or firefox pathnames.

thoregon ~ # md5sum /usr/lib64/seamonkey/libxpcom.so /var/tmp/portage/www-client/firefox-20.0/image/usr/lib64/firefox/libxpcom.so 
e77cd44fd4c4d9b21ad521e413f5b31a  /usr/lib64/seamonkey/libxpcom.so
e77cd44fd4c4d9b21ad521e413f5b31a  /var/tmp/portage/www-client/firefox-20.0/image/usr/lib64/firefox/libxpcom.so

So the hashing of both files now results in the same build-id and as both packages want to install this hash-symlink in the same place under /usr/lib/debug/.build-id these collisions turn up.

So I suspect the correct fix for this issue is just removing these files before packaging, because Gentoo has its own system for where to place debug-infos.
Comment 2 Torsten Kaiser 2013-04-12 17:40:31 UTC
With firefox-20.0.1 the collisions are reduced to:
 * Detected file collision(s):
 * 
 *      /usr/lib/debug/.build-id/65/d23717af48d9eda9a8f15e2a1391537d84b5fb
 *      /usr/lib/debug/.build-id/65/d23717af48d9eda9a8f15e2a1391537d84b5fb.debug
 *      /usr/lib/debug/.build-id/f1/34b690d68d53d71d6900451b58400ad627c8f3
 *      /usr/lib/debug/.build-id/f1/34b690d68d53d71d6900451b58400ad627c8f3.debug
 *      /usr/lib/debug/.build-id/83/ee90ee71594a2f37418f9206746e00ca577c80
 *      /usr/lib/debug/.build-id/83/ee90ee71594a2f37418f9206746e00ca577c80.debug
 *      /usr/lib/debug/.build-id/21/bc2bd00f213e91302128d59806a29fa79a8746
 *      /usr/lib/debug/.build-id/21/bc2bd00f213e91302128d59806a29fa79a8746.debug

It seems that libdbusservice.so, libmozalloc.so, mozilla-xremote-client and libmozgnome.so are unchanged betwen 20.0 and 20.0.1, but libxpcom.so and plugin-container differ and so no longer collide with the seamonkey that is still based on the firefox-20.0 sources.
Comment 3 Torsten Kaiser 2013-06-01 10:20:42 UTC
My current work around: COLLISION_IGNORE="*.py[co] /usr/lib/debug/.build-id/*"

Still happening between firefox-21.0 and seamonkey-2.18_beta4:

firefox-21.0/CONTENTS:sym /usr/lib/debug/.build-id/47/34e6061151c9366de91f8df697e514f3bfa452.debug -> ../../usr/lib64/firefox/mozilla-xremote-client.debug 1369678735
firefox-21.0/CONTENTS:sym /usr/lib/debug/.build-id/47/34e6061151c9366de91f8df697e514f3bfa452 -> /usr/lib64/firefox/mozilla-xremote-client 1369678735
seamonkey-2.18_beta4/CONTENTS:sym /usr/lib/debug/.build-id/47/34e6061151c9366de91f8df697e514f3bfa452.debug -> ../../usr/lib64/seamonkey/mozilla-xremote-client.debug 1370080335
seamonkey-2.18_beta4/CONTENTS:sym /usr/lib/debug/.build-id/47/34e6061151c9366de91f8df697e514f3bfa452 -> /usr/lib64/seamonkey/mozilla-xremote-client 1370080336

firefox-21.0/CONTENTS:sym /usr/lib/debug/.build-id/5d/78feb45ffbfc5dcb0b0d95bfe5787159ca2bf4.debug -> ../../usr/lib64/firefox/plugin-container.debug 1369678735
firefox-21.0/CONTENTS:sym /usr/lib/debug/.build-id/5d/78feb45ffbfc5dcb0b0d95bfe5787159ca2bf4 -> /usr/lib64/firefox/plugin-container 1369678735
seamonkey-2.18_beta4/CONTENTS:sym /usr/lib/debug/.build-id/5d/78feb45ffbfc5dcb0b0d95bfe5787159ca2bf4.debug -> ../../usr/lib64/seamonkey/plugin-container.debug 1370080336
seamonkey-2.18_beta4/CONTENTS:sym /usr/lib/debug/.build-id/5d/78feb45ffbfc5dcb0b0d95bfe5787159ca2bf4 -> /usr/lib64/seamonkey/plugin-container 1370080336

firefox-21.0/CONTENTS:sym /usr/lib/debug/.build-id/03/f2bd49c45d7dd35f83094a4fd6f96b92a360ab.debug -> ../../usr/lib64/firefox/libmozalloc.so.debug 1369678735
firefox-21.0/CONTENTS:sym /usr/lib/debug/.build-id/03/f2bd49c45d7dd35f83094a4fd6f96b92a360ab -> /usr/lib64/firefox/libmozalloc.so 1369678735
seamonkey-2.18_beta4/CONTENTS:sym /usr/lib/debug/.build-id/03/f2bd49c45d7dd35f83094a4fd6f96b92a360ab.debug -> ../../usr/lib64/seamonkey-devel/sdk/lib/libmozalloc.so.debug 1370080335
seamonkey-2.18_beta4/CONTENTS:sym /usr/lib/debug/.build-id/03/f2bd49c45d7dd35f83094a4fd6f96b92a360ab -> /usr/lib64/seamonkey-devel/sdk/lib/libmozalloc.so 1370080335

firefox-21.0/CONTENTS:sym /usr/lib/debug/.build-id/f4/d76844f9ec2bf9d43fd01cd931ed50d5314e99.debug -> ../../usr/lib64/firefox/components/libmozgnome.so.debug 1369678735
firefox-21.0/CONTENTS:sym /usr/lib/debug/.build-id/f4/d76844f9ec2bf9d43fd01cd931ed50d5314e99 -> /usr/lib64/firefox/components/libmozgnome.so 1369678735
seamonkey-2.18_beta4/CONTENTS:sym /usr/lib/debug/.build-id/f4/d76844f9ec2bf9d43fd01cd931ed50d5314e99.debug -> ../../usr/lib64/seamonkey/components/libmozgnome.so.debug 1370080335
seamonkey-2.18_beta4/CONTENTS:sym /usr/lib/debug/.build-id/f4/d76844f9ec2bf9d43fd01cd931ed50d5314e99 -> /usr/lib64/seamonkey/components/libmozgnome.so 1370080335

firefox-21.0/CONTENTS:sym /usr/lib/debug/.build-id/95/6ff4d9145ecb4ee0e34130ed356c7a64fff6f5.debug -> ../../usr/lib64/firefox/components/libdbusservice.so.debug 1369678735
firefox-21.0/CONTENTS:sym /usr/lib/debug/.build-id/95/6ff4d9145ecb4ee0e34130ed356c7a64fff6f5 -> /usr/lib64/firefox/components/libdbusservice.so 1369678735
seamonkey-2.18_beta4/CONTENTS:sym /usr/lib/debug/.build-id/95/6ff4d9145ecb4ee0e34130ed356c7a64fff6f5.debug -> ../../usr/lib64/seamonkey/components/libdbusservice.so.debug 1370080335
seamonkey-2.18_beta4/CONTENTS:sym /usr/lib/debug/.build-id/95/6ff4d9145ecb4ee0e34130ed356c7a64fff6f5 -> /usr/lib64/seamonkey/components/libdbusservice.so 1370080335
Comment 4 Jory A. Pratt gentoo-dev 2013-06-02 00:14:46 UTC
(In reply to Torsten Kaiser from comment #3)
> My current work around: COLLISION_IGNORE="*.py[co]
> /usr/lib/debug/.build-id/*"
> 
> Still happening between firefox-21.0 and seamonkey-2.18_beta4:
> 
> firefox-21.0/CONTENTS:sym
> /usr/lib/debug/.build-id/47/34e6061151c9366de91f8df697e514f3bfa452.debug ->
> ../../usr/lib64/firefox/mozilla-xremote-client.debug 1369678735
> firefox-21.0/CONTENTS:sym
> /usr/lib/debug/.build-id/47/34e6061151c9366de91f8df697e514f3bfa452 ->
> /usr/lib64/firefox/mozilla-xremote-client 1369678735
> seamonkey-2.18_beta4/CONTENTS:sym
> /usr/lib/debug/.build-id/47/34e6061151c9366de91f8df697e514f3bfa452.debug ->
> ../../usr/lib64/seamonkey/mozilla-xremote-client.debug 1370080335
> seamonkey-2.18_beta4/CONTENTS:sym
> /usr/lib/debug/.build-id/47/34e6061151c9366de91f8df697e514f3bfa452 ->
> /usr/lib64/seamonkey/mozilla-xremote-client 1370080336
> 
> firefox-21.0/CONTENTS:sym
> /usr/lib/debug/.build-id/5d/78feb45ffbfc5dcb0b0d95bfe5787159ca2bf4.debug ->
> ../../usr/lib64/firefox/plugin-container.debug 1369678735
> firefox-21.0/CONTENTS:sym
> /usr/lib/debug/.build-id/5d/78feb45ffbfc5dcb0b0d95bfe5787159ca2bf4 ->
> /usr/lib64/firefox/plugin-container 1369678735
> seamonkey-2.18_beta4/CONTENTS:sym
> /usr/lib/debug/.build-id/5d/78feb45ffbfc5dcb0b0d95bfe5787159ca2bf4.debug ->
> ../../usr/lib64/seamonkey/plugin-container.debug 1370080336
> seamonkey-2.18_beta4/CONTENTS:sym
> /usr/lib/debug/.build-id/5d/78feb45ffbfc5dcb0b0d95bfe5787159ca2bf4 ->
> /usr/lib64/seamonkey/plugin-container 1370080336
> 
> firefox-21.0/CONTENTS:sym
> /usr/lib/debug/.build-id/03/f2bd49c45d7dd35f83094a4fd6f96b92a360ab.debug ->
> ../../usr/lib64/firefox/libmozalloc.so.debug 1369678735
> firefox-21.0/CONTENTS:sym
> /usr/lib/debug/.build-id/03/f2bd49c45d7dd35f83094a4fd6f96b92a360ab ->
> /usr/lib64/firefox/libmozalloc.so 1369678735
> seamonkey-2.18_beta4/CONTENTS:sym
> /usr/lib/debug/.build-id/03/f2bd49c45d7dd35f83094a4fd6f96b92a360ab.debug ->
> ../../usr/lib64/seamonkey-devel/sdk/lib/libmozalloc.so.debug 1370080335
> seamonkey-2.18_beta4/CONTENTS:sym
> /usr/lib/debug/.build-id/03/f2bd49c45d7dd35f83094a4fd6f96b92a360ab ->
> /usr/lib64/seamonkey-devel/sdk/lib/libmozalloc.so 1370080335
> 
> firefox-21.0/CONTENTS:sym
> /usr/lib/debug/.build-id/f4/d76844f9ec2bf9d43fd01cd931ed50d5314e99.debug ->
> ../../usr/lib64/firefox/components/libmozgnome.so.debug 1369678735
> firefox-21.0/CONTENTS:sym
> /usr/lib/debug/.build-id/f4/d76844f9ec2bf9d43fd01cd931ed50d5314e99 ->
> /usr/lib64/firefox/components/libmozgnome.so 1369678735
> seamonkey-2.18_beta4/CONTENTS:sym
> /usr/lib/debug/.build-id/f4/d76844f9ec2bf9d43fd01cd931ed50d5314e99.debug ->
> ../../usr/lib64/seamonkey/components/libmozgnome.so.debug 1370080335
> seamonkey-2.18_beta4/CONTENTS:sym
> /usr/lib/debug/.build-id/f4/d76844f9ec2bf9d43fd01cd931ed50d5314e99 ->
> /usr/lib64/seamonkey/components/libmozgnome.so 1370080335
> 
> firefox-21.0/CONTENTS:sym
> /usr/lib/debug/.build-id/95/6ff4d9145ecb4ee0e34130ed356c7a64fff6f5.debug ->
> ../../usr/lib64/firefox/components/libdbusservice.so.debug 1369678735
> firefox-21.0/CONTENTS:sym
> /usr/lib/debug/.build-id/95/6ff4d9145ecb4ee0e34130ed356c7a64fff6f5 ->
> /usr/lib64/firefox/components/libdbusservice.so 1369678735
> seamonkey-2.18_beta4/CONTENTS:sym
> /usr/lib/debug/.build-id/95/6ff4d9145ecb4ee0e34130ed356c7a64fff6f5.debug ->
> ../../usr/lib64/seamonkey/components/libdbusservice.so.debug 1370080335
> seamonkey-2.18_beta4/CONTENTS:sym
> /usr/lib/debug/.build-id/95/6ff4d9145ecb4ee0e34130ed356c7a64fff6f5 ->
> /usr/lib64/seamonkey/components/libdbusservice.so 1370080335

There is no proper fix, seamonkey shares way to much of firefox/thunderbird code. We would end up doing a complete rewrite in order to address the issue, This is a rather minor issue seeing 99.9% of users are not going to install both firefox and seamonkey together.
Comment 5 Torsten Kaiser 2013-06-02 08:05:11 UTC
Why not do "rm -r ${ED}/usr/lib/.build-id/" at the end of src_install()?

It's not the real .so's that are colliding, only the .build-id-debug-symlinks.

And I suspect (but not know for sure, thats why I did not suggest the rm-fix when I reported this bug) that these symlinks are completely unused in Gentoo.

https://fedoraproject.org/wiki/Releases/FeatureBuildId

Considering that not two Gentoo installations are exactly the same that id can't work beyond a single system. And because of that Gentoo is installing the corresponding debug infos as part of the package, if requested via FEATURES=splitdebug. An these splitdebug files do not collide.

Please consider reopening this bug.
Comment 6 Torsten Kaiser 2013-06-20 20:14:26 UTC
I'm reopening this bug, because its not an firefox vs seamonkey problem, but affects all mozilla programs after firefox-20.

https://bugzilla.mozilla.org/show_bug.cgi?id=818903 landed for firefox-20 and thats why firefox-20 and seamonkey-2.17 that is based on it will collide.

It is not yet happening with thunderbird because that is still at 17esr an so does not install any files into /usr/lib/debug/.build-id. But when thunderbird 24 will be released you will no longer be able to install it in parallel with firefox-24.

I made a copy of thunderbird-17.0.6-r1 as thunderbird-22.0_beta1.ebuild and with a few changes got it to compile.

It resulted in collisions against the current firefox-22.0_beta6:
* Detected file collision(s):
 * 
 *      /usr/lib/debug/.build-id/34/65be5872cd506821eaf7e715dda36506756952
 *      /usr/lib/debug/.build-id/34/65be5872cd506821eaf7e715dda36506756952.debug
 *      /usr/lib/debug/.build-id/a1/da2dd4bf6de2b41854a1f5d1e4353de2d565ab
 *      /usr/lib/debug/.build-id/a1/da2dd4bf6de2b41854a1f5d1e4353de2d565ab.debug
 *      /usr/lib/debug/.build-id/27/b62d8387a1b926b82932ec66d9e38db23ac39f
 *      /usr/lib/debug/.build-id/27/b62d8387a1b926b82932ec66d9e38db23ac39f.debug
 * 
 * Searching all installed packages for file collisions...
 * 
 * Press Ctrl-C to Stop
 * 
 * www-client/firefox-22.0_beta6:0::mozilla
 *      /usr/lib/debug/.build-id/27/b62d8387a1b926b82932ec66d9e38db23ac39f
 *      /usr/lib/debug/.build-id/27/b62d8387a1b926b82932ec66d9e38db23ac39f.debug
 *      /usr/lib/debug/.build-id/34/65be5872cd506821eaf7e715dda36506756952
 *      /usr/lib/debug/.build-id/34/65be5872cd506821eaf7e715dda36506756952.debug
 *      /usr/lib/debug/.build-id/a1/da2dd4bf6de2b41854a1f5d1e4353de2d565ab
 *      /usr/lib/debug/.build-id/a1/da2dd4bf6de2b41854a1f5d1e4353de2d565ab.debug
 * 
 * Package 'mail-client/thunderbird-22.0_beta1' NOT merged due to file
 * collisions. If necessary, refer to your elog messages for the whole
 * content of the above message.

These are the debug links for /usr/lib64/firefox/libmozalloc.so, /usr/lib64/firefox/components/libdbusservice.so and /usr/lib64/firefox/components/libmozgnome.so, the other files probably changed between beta1 and 6, but as I think its sufficied to prove the problem.

Please reconsider just removing /usr/lib/debug/.build-id/* before packaging/merging.
Comment 7 Torsten Kaiser 2013-06-20 20:16:49 UTC
Created attachment 351492 [details]
Ebuild I used for testing, fails with USE=crypt, but USE=-crypt worked for me
Comment 8 Torsten Kaiser 2013-08-18 11:49:23 UTC
There now is a beta for the next ESR release for thunderbird-24. Together with the firefox-24-beta from the mozilla overlay this give me the following collisions:

 * Detected file collision(s):
 * 
 *      /usr/lib/debug/.build-id/47/3682b0c00fc637061f2176bebf21bac7ca5db7
 *      /usr/lib/debug/.build-id/47/3682b0c00fc637061f2176bebf21bac7ca5db7.debug
 *      /usr/lib/debug/.build-id/8c/72350f0d463ec9452ab19f260c9fea852dc37c
 *      /usr/lib/debug/.build-id/8c/72350f0d463ec9452ab19f260c9fea852dc37c.debug
 *      /usr/lib/debug/.build-id/27/b62d8387a1b926b82932ec66d9e38db23ac39f
 *      /usr/lib/debug/.build-id/27/b62d8387a1b926b82932ec66d9e38db23ac39f.debug
 * 
 * Searching all installed packages for file collisions...
 * 
 * Press Ctrl-C to Stop
 * 
 * www-client/firefox-24.0_beta1:0::mozilla
 *      /usr/lib/debug/.build-id/27/b62d8387a1b926b82932ec66d9e38db23ac39f
 *      /usr/lib/debug/.build-id/27/b62d8387a1b926b82932ec66d9e38db23ac39f.debug
 *      /usr/lib/debug/.build-id/47/3682b0c00fc637061f2176bebf21bac7ca5db7
 *      /usr/lib/debug/.build-id/47/3682b0c00fc637061f2176bebf21bac7ca5db7.debug
 *      /usr/lib/debug/.build-id/8c/72350f0d463ec9452ab19f260c9fea852dc37c
 *      /usr/lib/debug/.build-id/8c/72350f0d463ec9452ab19f260c9fea852dc37c.debug
 * 
 * www-client/seamonkey-2.20:0::mozilla
 *      /usr/lib/debug/.build-id/27/b62d8387a1b926b82932ec66d9e38db23ac39f
 *      /usr/lib/debug/.build-id/27/b62d8387a1b926b82932ec66d9e38db23ac39f.debug
 * 
 * Package 'mail-client/thunderbird-24.0_beta1' NOT merged due to file
 * collisions. If necessary, refer to your elog messages for the whole
 * content of the above message.
 * 
 * The following package has failed to build or install:
 * 
 *  (mail-client/thunderbird-24.0_beta1::local, ebuild scheduled for merge), Log file:
 *   '/var/tmp/portage/mail-client/thunderbird-24.0_beta1/temp/build.log'
 * 

The dublicate collision against 27/b62d8387a1b926b82932ec66d9e38db23ac39f was possible, because I installed the firefox-beta with COLLISION_IGNORE="*.py[co] /usr/lib/debug/.build-id/*" in my make.conf
Comment 9 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2013-09-19 16:21:42 UTC
This rather is an infuriating bug, because the last thing you want to have happen is have a lengthy compile bail out at the end due to a file collision.

Collision occurred today w/ seamonkey-2.21 and ff-24.0_beta9 

I have both installed, as its much easier to run firefox and seamonkey side by side if you need 2 independent browsers, much easier than to try convince firefox to spawn 2 instances without there being some funky IPC going on between the two.

Sure, its probably rare. 

Is there somewhere I can read on the purpose of these debug files, to understand why they exist where they do?
Comment 10 christoph 2013-09-24 22:43:33 UTC
This excatly happened to me today. 
I've firefox 23.0 installed onto my system. Today I tried to update for thunderbird to version 24.0 and the build ended up in a file collision. 
Please fix soon.

>>>  '/var/log/portage/mail-client:thunderbird-24.0:20130924-200846.log'

 * Messages for package mail-client/thunderbird-24.0:

 * You are enabling official branding. You may not redistribute this build
 * to any users on your network or the internet. Doing so puts yourself into
 * a legal problem with Mozilla Foundation
 * You can disable it by emerging thunderbird _with_ the bindist USE-flag
 *
 * This package will overwrite one or more files that may belong to other
 * packages (see list below). You can use a command such as `portageq
 * owners / <filename>` to identify the installed package that owns a
 * file. If portageq reports that only one package owns a file then do
 * NOT file a bug report. A bug report is only useful if it identifies at
 * least two or more packages that are known to install the same file(s).
 * If a collision occurs and you can not explain where the file came from
 * then you should simply ignore the collision since there is not enough
 * information to determine if a real problem exists. Please do NOT file
 * a bug report at http://bugs.gentoo.org unless you report exactly which
 * two packages install the same file(s). See
 * http://wiki.gentoo.org/wiki/Knowledge_Base:Blockers for tips on how to
 * solve the problem. And once again, please do NOT file a bug report
 * unless you have completely understood the above message.
 *
 * Detected file collision(s):
 *
 *      /usr/lib/debug/.build-id/98/d0153289996f3479b32e029ad6c2b58df6d1d3
 *      /usr/lib/debug/.build-id/98/d0153289996f3479b32e029ad6c2b58df6d1d3.debu
 *
 * Searching all installed packages for file collisions...
 *
 * Press Ctrl-C to Stop
 *
 * www-client/firefox-23.0:0::gentoo
 *      /usr/lib/debug/.build-id/98/d0153289996f3479b32e029ad6c2b58df6d1d3
 *      /usr/lib/debug/.build-id/98/d0153289996f3479b32e029ad6c2b58df6d1d3.debu
 *
 * Package 'mail-client/thunderbird-24.0' NOT merged due to file
 * collisions. If necessary, refer to your elog messages for the whole
 * content of the above message.
Comment 11 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2013-09-25 07:21:16 UTC
*** Bug 485942 has been marked as a duplicate of this bug. ***
Comment 12 Torsten Kaiser 2013-09-25 19:00:24 UTC
There now is another dup at bug #485998

Please reconsider the proposed fix from comment 5. As described there I think these symlinks are not usefull on Gentoo, so just rm should be the best fix.

( http://hg.mozilla.org/mozilla-central/rev/4e83d0987a31 does not seem to provide an ./configure flag, so removing these links after the build/install seems to be the only way)
Comment 13 Ian Stakenvicius (RETIRED) gentoo-dev 2013-09-25 19:51:59 UTC
(In reply to Torsten Kaiser from comment #12)
> There now is another dup at bug #485998
> 
> Please reconsider the proposed fix from comment 5. As described there I
> think these symlinks are not usefull on Gentoo, so just rm should be the
> best fix.
> 
> ( http://hg.mozilla.org/mozilla-central/rev/4e83d0987a31 does not seem to
> provide an ./configure flag, so removing these links after the build/install
> seems to be the only way)


I'm looking into comment #5 solution; before I can commit it though I want to make sure that there isn't any valid case where these symlinks are needed.  I may not finish the research today, but will within the next day or two for sure.
Comment 14 Ian Stakenvicius (RETIRED) gentoo-dev 2013-09-26 17:16:58 UTC
*** Bug 485998 has been marked as a duplicate of this bug. ***
Comment 15 Ian Stakenvicius (RETIRED) gentoo-dev 2013-09-26 17:17:43 UTC
Went with a build system patch instead.

+  26 Sep 2013; Ian Stakenvicius <axs@gentoo.org>
+  +files/moz24-drop-Wl-build-id.patch, seamonkey-2.21.ebuild:
+  drop -Wl,--build-id from LDFLAGS, bug #465466
Comment 16 Erik 2013-12-14 17:50:53 UTC
As far as I understand, this bug is back since the patches were removed 2013-11-04 by anarchy and polynomial-c. At least on my system, emerge firefox 24.2 failed with thunderbird 24.2 installed.
Comment 17 Jory A. Pratt gentoo-dev 2013-12-14 21:23:36 UTC
(In reply to Erik from comment #16)
> As far as I understand, this bug is back since the patches were removed
> 2013-11-04 by anarchy and polynomial-c. At least on my system, emerge
> firefox 24.2 failed with thunderbird 24.2 installed.

This is actually caused by myself alone. I rolled the patchset back a release and forgot the patch was not in the old patchset. I am getting it readded as I type and will push to mirrors shortly.
Comment 18 Jory A. Pratt gentoo-dev 2013-12-15 21:10:39 UTC
Thanks for reporting again. I have add the patch back into the patchset, will be avaliable on mirrors shortly.