Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 94848 - file collision: dev-lang/icon tries to overwrite xgamma from x11-base/xorg-x11
Summary: file collision: dev-lang/icon tries to overwrite xgamma from x11-base/xorg-x11
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Maintainers for Miscelleneous Language Packages [OBSOLETE]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-02 11:09 UTC by Wormo (RETIRED)
Modified: 2006-03-27 04:33 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 Wormo (RETIRED) gentoo-dev 2005-06-02 11:09:34 UTC
There is a file collision when the icon package tries to write the file
'/usr/bin/xgamma' which is already installed by the base xorg package. It looks
to me as though the programs colrbook, colrpick, fontpick, palette, wevents,
xgamma are a selection of demo icon programs that get compiled, so perhaps it
would be better to install the corresponding source files in an examples dir
rather than installing the binary versions to /usr/bin.

Reproducible: Always
Steps to Reproduce:
1. emerge icon
2.
3.

Actual Results:  
>>> Completed installing icon-9.4.2 into /var/tmp/portage/icon-9.4.2/image/

* checking 817 files for package collisions
existing file /usr/bin/xgamma is not owned by this package
* spent 0.166523933411 seconds checking for file collisions
* This package is blocked because it wants to overwrite
* files belonging to other packages (see messages above).
* If you have no clue what this is all about report it 
* as a bug for this package on http://bugs.gentoo.org

package dev-lang/icon-9.4.2 NOT merged


Expected Results:  
Finished emerging without trying to overwrite /usr/bin/xgamma from xorg-x11 package

Portage 2.0.51.19 (default-linux/ppc/2004.3, gcc-3.4.1, glibc-2.3.3.20040420-r2,
2.6.10-gentoo-r6 ppc)
=================================================================
System uname: 2.6.10-gentoo-r6 ppc 750FX
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, May  7 2005, 00:43:07)]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.8.5-r3, 1.7.9-r1, 1.4_p6, 1.9.4, 1.6.3
sys-devel/binutils:  2.15.90.0.3-r3
sys-devel/libtool:   1.5.2-r7
virtual/os-headers:  2.4.22
ACCEPT_KEYWORDS="ppc"
AUTOCLEAN="yes"
CFLAGS="-O3 -mcpu=750 -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -mcpu=750 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig candy ccache collision-protect cvs digest
distlocks keepwork maketest sandbox sfperms strict test"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/cvsroot/gentoo-x86"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="ppc X alsa berkdb bitmap-fonts cdr crypt cups dvd emboss esd font-server
fortran gd gdbm gif gimpprint gnome gpm gtk gtk2 imagemagick imlib ipv6 java
jpeg junit libwww motif mp3 mpeg ncurses oggvorbis pam pdflib perl png qt
readline ruby spell ssl tcltk tcpd tetex tiff truetype truetype-fonts
type1-fonts xml2 xprint xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Mariusz Pękala 2006-02-05 18:56:05 UTC
Would it be ok to just rename the offending binary to something like 'xgamma.icon' ?

        cd ${S}/bin
        rm .placeholder libXpm.a rt.h
+       mv xgamma       xgamma.icon
+       einfo "xgamma binary has been renamed to xgamma.icon as it conflicts with"
+       einfo "xorg-x11 xgamma program"
        dobin *
Comment 2 Cheyenne Wills 2006-03-07 08:14:54 UTC
Actually the "real" problem is that way too much is being copied into the "/usr" structure.  There are several sample programs (xgamma being one) that really do not need to be put into the general path.  The only files that really need to be available are: icon, icont, iconx and maybe vib.  Everything else can be tucked away in an icon specific directory structure (the Icon documentation suggests /opt/icon)

See bug# 125258 for a possible solution
Comment 3 George Shapovalov (RETIRED) gentoo-dev 2006-03-27 04:33:28 UTC
Fixed in 9.4.3 version that is now in the tree.

George