Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 265678 - app-shells/bash-completion-1.0-r1 and games-misc/cowsay: file collision /usr/share/bash-completion/cowsay
Summary: app-shells/bash-completion-1.0-r1 and games-misc/cowsay: file collision /usr/...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Shell Tools project
URL:
Whiteboard:
Keywords:
: 266112 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-04-10 17:47 UTC by Ivan D Vasin
Modified: 2009-04-14 15:43 UTC (History)
3 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 Ivan D Vasin 2009-04-10 17:47:14 UTC
app-shells/bash-completion-1.0-r1 and games-misc/cowsay-3.03-r1 both install to /usr/share/bash-completion/cowsay. the bash-completion 1.0 changelog lists "Added cowsay/cowthink completion" by Guillaume Rousse.

workaround:
rename or delete /usr/share/bash-completion/cowsay, then reinstall bash-completion

Reproducible: Always

Steps to Reproduce:
1. emerge games-misc/cowsay
2. emerge app-shells/bash-completion
Actual Results:  
 * Detected file collision(s):
 *
 *      /usr/share/bash-completion/cowsay
 *
 * Searching all installed packages for file collisions...
 *
 * Press Ctrl-C to Stop
 *
 * games-misc/cowsay-3.03-r1
 *      /usr/share/bash-completion/cowsay

Expected Results:  
only one of  games-misc/cowsay and app-shells/bash-completion should install a bash-completion script for cowsay

Portage 2.2_rc28 (default/linux/x86/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.29-gentoo i686)                                                              
=================================================================               
System uname: Linux-2.6.29-gentoo-i686-Intel-R-_Pentium-R-_M_processor_1.86GHz-with-gentoo-2.0.0                                                                
Timestamp of tree: Fri, 10 Apr 2009 13:15:01 +0000                              
ccache version 2.4 [enabled]                                                    
app-shells/bash:     4.0_p17                                                    
dev-java/java-config: 2.1.7                                                     
dev-lang/python:     2.5.4-r2, 2.6.1-r1                                         
dev-util/ccache:     2.4-r8                                                     
dev-util/cmake:      2.6.3-r1                                                   
sys-apps/baselayout: 2.0.0                                                      
sys-apps/openrc:     0.4.3-r1                                                   
sys-apps/sandbox:    1.9                                                        
sys-devel/autoconf:  2.13, 2.63-r1                                              
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2                  
sys-devel/binutils:  2.19.1-r1                                                  
sys-devel/gcc-config: 1.4.1                                                     
sys-devel/libtool:   2.2.6a                                                     
virtual/os-headers:  2.6.28-r1                                                  
ACCEPT_KEYWORDS="x86 ~x86"                                                      
CBUILD="i686-pc-linux-gnu"                                                      
CFLAGS="-march=pentium4m -O2 -pipe -fomit-frame-pointer"                        
CHOST="i686-pc-linux-gnu"                                                       
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.2/env /usr/kde/4.2/share/config /usr/kde/4.2/shutdown /usr/share/config"                                                                       
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"          
CXXFLAGS="-march=pentium4m -O2 -pipe -fomit-frame-pointer -fvisibility-inlines-hidden"                                                                          
DISTDIR="/usr/portage/distfiles"                                                
FEATURES="ccache distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"        
GENTOO_MIRRORS="http://gentoo.osuosl.org/ ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://cudlug.cudenver.edu/gentoo/ http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"                                    
LDFLAGS="-Wl,-O1"                                                               
LINGUAS="en en_US"                                                              
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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"
PORTDIR_OVERLAY="/usr/local/portage/layman/kde-testing /usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac aalib acl acpi adns aim akonadi alsa amarok amazon animgifao apache2 apm archive ares aspell audiofile avahi bash-completion bcmath berkdb big-tables bittorrent bl blas bluetooth bonjour boost branding bzip2 cairo caps cdaudio cdda cddax cddb cdinstall cdio cdparanoia cdr chm cisco clamav cleartype cli clisp clucene colordiff consolekit corefonts cpufreq cracklib crypt cscope css ctype cups curl curlwrappers cvs cxx cyrillic daap dbus devil dhcpcd dia dirac disk-partition divx djvu dmi docbook dri dts dv dvd dvdnav dvdr dvdread ebook emovix enca encode enscript exif exiv2 expat extraengine fam fame fastbuild fat fax fbcon fbcondecor fbsplash ffmpeg fftw firefox fits flac fluidsynth fontconfig foomaticdb fortran ftp fuse g15 gcj gcrypt gd gdbm geoip gif gimp ginac gitglade glib glibc-omitfp glitz glut gmedia gmp gnuplot gnutls google-gadgets gpmgraphviz grub gs gsl gsm gstreamer gtk hal hddtemp hdri hfs history howl-compathpn html htmlhandbook iconv icu id3tag idea idn ieee1394 imagemagick imap inkjar innodb inotify ipod ipv6 isdnlog ithreads jabber java java5 java6 javascript jbig jingle joystick jpeg jpeg2k kde kdeprefix kerberos kipi kpathsea kqemu lame lapack laptop latex lcms ldap libass libcaca libffi libgcrypt libnotify libsamplerate libssh2 libv4l2 libvisual libwww live lm_sensors logrotate lzma lzo mad mbrola md5sum mdnsresponder-compat mhash midi mikmod mime mjpeg mktemp mmap mmx mng modplug mono moonlight motif mp2 mp3 mp4 mpeg mpi mplayer mtp mudflap musepackmusic musicbrainz mysql mysqli ncurses nemesi nepomuk net network networkmanager nis nls nptl nptlonly nsplugin nss ntfs ntp nvidia nxclient offensive ogg ogm openal openexr opengl openmp openvpn osc oscar otr pam pango pcap pch pcmcia pcntl pcre pcsc-lite pdf perl perlsuid phonon php pixmaps plasma plotutils png policykit portaudio posix postproc povray ppds pppd pptp prediction pulseaudio python qca qt-static qt3support qt4 quicktime rar raw rdesktop readline realmedia reflection reiserfs remix resolvconf rss rtc rtf rtsp samba sasl scanner scenarios sdl semantic-desktop server session shorten shout simplexml skins slang slp smi sms sndfile soap sockets socks5 sounds speex spell spl sqlite sqlite3 srp srt sse sse2 ssl startup-notification statistics stats stream subtitles subversion suid svg svga svm svnserve swat sysfs syslog sysvipc szip taglib tcpd templates tex4ht theora threads threadsafe thumbnail tidy tiff timezone timidity toolbar tordns tremor truetype tunepimp twolame unicode upnp urlpicpreview usb userlocales v4l v4l2 vcd vcdinfo vcdx vdpau vhook vhosts videos vim-syntax vim-with-x vlm vncvorbis wavpack webdav webkit wifi win32codecs wireshark wmf wmp wxwindows x264 x86 xattr xcomposite xface xfce xforms xfs xft xine xinerama xinetd xml xmlrpc xmp xorg xosd xpm xrender xscreensaver xsl xslt xulrunner xvid xvmc zeroconf zip zlib" ALSA_CARDS="hda-intel" 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="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="evdev keyboard mouse synaptics joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncursestext" LINGUAS="en en_US" USERLAND="GNU" VIDEO_CARDS="nvidia nv"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Ivan D Vasin 2009-04-10 17:50:28 UTC
# emerge cowsay bash-completion -vp

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] games-misc/cowsay-3.03-r1  USE="bash-completion" 0 kB
[ebuild   R   ] app-shells/bash-completion-1.0-r1  0 kB
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-04-10 23:19:58 UTC
thx for report. I'll review soon. In the meantime can you determine which file is more correct (or identical) ?
Comment 3 Ivan D Vasin 2009-04-11 01:34:14 UTC
they are different. the old file was added by Aaron Walker on 06 Feb 2005. the new one was committed for bash-completion 1.0 by Guillaume Rousse on 04 Feb 2009. Guillaume is also a cowsay package maintainer for Mandriva. i don't know much about bash-completion scripts but i'd guess that the new one is best for bash-completion 1.0.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2009-04-11 17:06:55 UTC
(Adding games@ for games-misc/cowsay.)
Comment 5 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-04-12 04:21:08 UTC
Games team: I would recommend that we create a revision bump for games-misc/cowsay to not include the bash completion module. Both implementations look similar and to the same level of correctness. But, it is just easier if upstream bash-completion maintains a module instead of our local copy in FILESDIR.

I can do this if you want.
Comment 6 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-04-12 04:51:39 UTC
(In reply to comment #5)
> Games team: I would recommend that we create a revision bump for
> games-misc/cowsay to not include the bash completion module. Both
> implementations look similar and to the same level of correctness. But, it is
> just easier if upstream bash-completion maintains a module instead of our local
> copy in FILESDIR.
> 
> I can do this if you want.
> 

23:32 <@Mr_Bones_> darkside_: please go ahead on cowsay

Done. Stable bash-completion does not collide with stable cowsay. ~arch bash-completion does not collide with ~arch cowsay. I will handle the stablereq for cowsay when I do bash-completion.

Thanks for the input, Ivan.
Comment 7 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-04-14 15:43:14 UTC
*** Bug 266112 has been marked as a duplicate of this bug. ***