Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 472844 - net-misc/networkmanager-0.9.8.2 with app-shells/bash-completion-2.1 - file collision in /usr/share/bash-completion/nmcli
Summary: net-misc/networkmanager-0.9.8.2 with app-shells/bash-completion-2.1 - file co...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Shell Tools project
URL:
Whiteboard:
Keywords:
: 473546 473646 473874 474344 474526 475358 (view as bug list)
Depends on:
Blocks: 395091
  Show dependency tree
 
Reported: 2013-06-10 11:09 UTC by Evgeny Bobkin
Modified: 2014-06-03 01:46 UTC (History)
9 users (show)

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


Attachments
modified ebuild: added a rm -f completions/nmcli (bash-completion-2.1.ebuild,3.31 KB, patch)
2013-06-10 11:46 UTC, Evgeny Bobkin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Evgeny Bobkin 2013-06-10 11:09:56 UTC
istall of nm fails due to file collision

 net-misc/networkmanager-0.9.8.2
 * checking 214 files for package collisions
 * 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/share/bash-completion/nmcli
 * 
 * Searching all installed packages for file collisions...
 * 
 * Press Ctrl-C to Stop
 * 
 * app-shells/bash-completion-2.1:0::gentoo
 * 	/usr/share/bash-completion/nmcli
 * 
 * Package 'net-misc/networkmanager-0.9.8.2' NOT merged due to file
 * collisions. If necessary, refer to your elog messages for the whole
 * content of the above message.

>>> Failed to install net-misc/networkmanager-0.9.8.2, Log file:


Reproducible: Always
Comment 1 Pacho Ramos gentoo-dev 2013-06-10 11:17:59 UTC
Well, I think networkmanager should handle this completion instead of bash-completion
Comment 2 Evgeny Bobkin 2013-06-10 11:46:20 UTC
Created attachment 350624 [details, diff]
modified ebuild: added a rm -f completions/nmcli

I absolutely agree with you Pacho, thank you for reassigning)

modified ebuild is attached, probably one can improve it by includin the nm version dependent code
Comment 3 Alexandre Rostovtsev (RETIRED) gentoo-dev 2013-06-17 13:18:27 UTC
*** Bug 473546 has been marked as a duplicate of this bug. ***
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2013-06-17 13:37:59 UTC
Fixed without revision bump.
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2013-06-18 04:49:42 UTC
*** Bug 473646 has been marked as a duplicate of this bug. ***
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2013-06-20 02:34:46 UTC
*** Bug 473874 has been marked as a duplicate of this bug. ***
Comment 7 Pacho Ramos gentoo-dev 2013-06-23 08:10:58 UTC
*** Bug 474344 has been marked as a duplicate of this bug. ***
Comment 8 Doug Goldstein (RETIRED) gentoo-dev 2013-06-23 20:37:37 UTC
*** Bug 474526 has been marked as a duplicate of this bug. ***
Comment 9 Neil 2013-06-26 07:23:44 UTC
Still getting the collision here despite syncing every day...

From /var/log/emerge.log 

1372226433: Started emerge on: Jun 26, 2013 07:00:32
1372226433:  *** emerge --keep-going --alphabetical --sync
1372226433:  === sync
1372226433: >>> Starting rsync with rsync://91.186.30.235/gentoo-portage
1372226670: === Sync completed with rsync://91.186.30.235/gentoo-portage
1372226711:  *** terminating.
1372227189: Started emerge on: Jun 26, 2013 07:13:08
1372227189:  *** emerge --ask --update --alphabetical --keep-going --newuse --deep @world
1372227675:  >>> emerge (1 of 8) app-text/ps2pkm-1.5_p20130530 to /
...
1372228363:  >>> emerge (7 of 8) net-misc/networkmanager-0.9.8.2 to /
1372228363:  === (7 of 8) Cleaning (net-misc/networkmanager-0.9.8.2::/usr/portage/net-misc/networkmanager/networkmanager-0.9.8.2.ebuild)
1372228363:  === (7 of 8) Compiling/Merging (net-misc/networkmanager-0.9.8.2::/usr/portage/net-misc/networkmanager/networkmanager-0.9.8.2.ebuild)
1372228499:  === (7 of 8) Merging (net-misc/networkmanager-0.9.8.2::/usr/portage/net-misc/networkmanager/networkmanager-0.9.8.2.ebuild)
1372228601:  *** Finished. Cleaning up...
1372228601:  *** exiting unsuccessfully with status '1'.
1372228603:  *** terminating.


Failing with...

 net-misc/networkmanager-0.9.8.2
 * checking 214 files for package collisions
 * 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/share/bash-completion/nmcli
 * 
 * Searching all installed packages for file collisions...
 * 
 * Press Ctrl-C to Stop
 * 
 * app-shells/bash-completion-2.1:0::gentoo
 * 	/usr/share/bash-completion/nmcli
 * 
 * Package 'net-misc/networkmanager-0.9.8.2' NOT merged due to file
 * collisions. If necessary, refer to your elog messages for the whole
 * content of the above message.


There is no mention of nmcli in the ebuild nor can I find the additional 'rm' line to remove nmcli...

# grep nmcli /usr/portage/net-misc/networkmanager/.networkmanager-0.9.8.2.ebuild
# # grep rm /usr/portage/net-misc/networkmanager/.networkmanager-0.9.8.2.ebuild 
# Distributed under the terms of the GNU General Public License v2
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86"
			ewarn "Was unable to determine your kernel .config"
	rmdir -v "${ED}/var/run/NetworkManager" || die "rmdir failed"
		rm -rv "${ED}/etc/init.d" || die "rm failed"
			rm -f "${old_rules}" || eerror "Failed, please remove ${old_rules} manually"


The ebuild at http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/net-misc/networkmanager/networkmanager-0.9.8.2.ebuild?view=markup doens't appear to remove nmcli either and there is no mention of this bug (472844) in the ChangeLog http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/net-misc/networkmanager/ChangeLog?view=log

How do I use portage to get the patched ebuild if there hasn't been a version bump (and is the fix in the 0.9.8.2 ebuild)?
Comment 10 Dan Goodliffe 2013-06-26 09:16:45 UTC
Yes, you do. This was why I ended up opening Bug 474344.
You need to manually re-emerge bash-completion.
Comment 11 Neil 2013-06-26 12:01:28 UTC
(In reply to Dan Goodliffe from comment #10)
> Yes, you do. This was why I ended up opening Bug 474344.
> You need to manually re-emerge bash-completion.

Thanks thats worked fine.  It wasn't at all clear to me from this bug post that that was the solution, so your pointer is much appreciated.
Comment 12 Jeroen Roovers (RETIRED) gentoo-dev 2013-07-01 15:24:21 UTC
*** Bug 475358 has been marked as a duplicate of this bug. ***
Comment 13 Tom Li 2014-06-03 01:46:57 UTC
Thanks all. I met the same problem while upgrading to net-misc/networkmanager-0.9.8.10, remerge bash-completion just fixed it.