Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 223155 - mail-mta/courier with sys-apps/ucspi-tcp - file collision in/usr/bin/addcr
Summary: mail-mta/courier with sys-apps/ucspi-tcp - file collision in/usr/bin/addcr
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal with 1 vote (vote)
Assignee: Hanno Böck
URL:
Whiteboard:
Keywords: EBUILD, PATCH
: 350394 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-05-22 02:41 UTC by Steffen Schaumburg
Modified: 2019-02-27 14:51 UTC (History)
8 users (show)

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


Attachments
hacked courier ebuild (courier-0.76.4.ebuild,9.21 KB, text/plain)
2017-02-08 13:30 UTC, andcycle-gentoo.bugs
Details
hacked ucspi-tcp ebuild (ucspi-tcp-0.88-r18.ebuild,2.42 KB, text/plain)
2017-02-08 13:30 UTC, andcycle-gentoo.bugs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steffen Schaumburg 2008-05-22 02:41:09 UTC
Hi,
my portage found a collision, portageq says this:

mail-mta/courier-0.53.2-r1
	/usr/bin/addcr
sys-apps/ucspi-tcp-0.88-r16
	/usr/bin/addcr

I figured the flags of these packages might help:
[ebuild   R   ] mail-mta/courier-0.53.2-r1  USE="crypt fam mysql nls spell -fax -ipv6 -ldap -mailwrapper -norewrite -pam -postgres" 0 kB 
[ebuild   R   ] sys-apps/ucspi-tcp-0.88-r16  USE="-doc (-selinux)" 0 kB 

emerge --info:

Portage 2.1.4.4 (hardened/amd64/multilib, gcc-3.4.6, glibc-2.6.1-r0, 2.6.23-hardened-r12 x86_64)
=================================================================
System uname: 2.6.23-hardened-r12 x86_64 AMD Athlon(tm) 64 Processor 3200+
Timestamp of tree: Wed, 21 May 2008 09:45:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r9, 2.5.2-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -fforce-addr -march=athlon64"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/bind /var/lib/hsqldb /var/lib/postgresql/data"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -fforce-addr -march=athlon64"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.virginmedia.com/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/"
LANG="en_GB.UTF-8"
LC_ALL="en_GB.UTF-8"
LINGUAS="en_GB"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://sycamoretest.info/gentoo-portage"
USE="3dnow 3dnowext 7zip X aac acpi alsa amd64 arts artswrappersuid berkdb branding bzip2 cddb cjk cracklib crypt cups dbus device-mapper divx dvd dvdr dvdread fam ftp fuse gif gpm hal hardened jpeg justify loop-aes midi mng mp3 multilib mysql nls nptl nptlonly nsplugin offensive opengl pam pic png postgres postgresql python quicktime quotas rar readline realmedia reiserfs spell sse sse2 ssl svg symlink tiff truetype unicode urandom utempter vhosts vorbis wma wmp xinerama xorg xscreensaver xv xvid zlib" ALSA_CARDS="hda-intel intel8x0 intel8x0m" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LINGUAS="en_GB" USERLAND="GNU" VIDEO_CARDS="nv vesa vga"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

I installed courier as MTA, that was when the collision was reported. Not sure what the other package is, dependency of sth. I should note that I had courier-imap and postfix before, but unmerged them before merging courier.
depclean gives a bunch of results but neither of the colliders

Anything else I can do/get let me know

Thanks, Steffen
Comment 1 Michael Jinks 2009-07-24 23:26:52 UTC
Issue still present with mail-mta/courier-0.59.0, currently preventing install of ucspi-tcp.
Comment 2 Rodrigo Severo 2010-03-23 13:22:01 UTC
Problem still present with sys-apps/ucspi-tcp-0.88-r16 and mail-mta/courier-0.62.2
Comment 3 MAL 2010-11-23 10:48:54 UTC
Problem still present 8 months on.

Can we have a suggested workaround?  Does one particular version of addcr work for both packages?
Comment 4 Jeroen Roovers gentoo-dev 2011-06-15 01:04:32 UTC
*** Bug 350394 has been marked as a duplicate of this bug. ***
Comment 5 Rodrigo Severo 2011-06-15 12:45:23 UTC
(In reply to comment #3)
> Problem still present 8 months on.
> 
> Can we have a suggested workaround?  Does one particular version of addcr work
> for both packages?

I don't think so. I believe the solution is to rename addcr of one package.
Comment 6 andcycle-gentoo.bugs 2017-02-08 11:06:56 UTC
there do have people talk about this on SF last year
https://sourceforge.net/p/courier/mailman/message/35365637/

debian did an approach to solve this by divert addcr from ucspi-tcp
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=476489
Comment 7 andcycle-gentoo.bugs 2017-02-08 13:30:06 UTC
Created attachment 462860 [details]
hacked courier ebuild
Comment 8 andcycle-gentoo.bugs 2017-02-08 13:30:33 UTC
Created attachment 462862 [details]
hacked ucspi-tcp ebuild
Comment 9 andcycle-gentoo.bugs 2017-02-08 13:36:13 UTC
just provide simple hacked ebuild to solve the issue if anyone need a quick solution,

courier-0.76.4.ebuild added an extra USE flag called [collide-ucspi-tcp]
ucspi-tcp-0.88-r18.ebuild also added an extra USE flag called [collide-courier]

when courier doesn't have [collide-ucspi-tcp] flag, it block ucspi-tcp,
if [collide-ucspi-tcp] set for courier, it require ucspi-tcp[collide-courier],

when ucspi-tcp[collide-courier] is set,
it will install uscpi-tcp ver "addcr" as "addcr.uscpi-tcp" to avoid collision with courier.