Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 635158 - sys-apps/util-linux-2.31 collides with app-shells/bash-completion - /usr/share/bash-completion/completions/rfkill
Summary: sys-apps/util-linux-2.31 collides with app-shells/bash-completion - /usr/shar...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
: 635198 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-10-23 12:33 UTC by Ben Kohler
Modified: 2017-10-24 10:16 UTC (History)
19 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 Ben Kohler gentoo-dev 2017-10-23 12:33:03 UTC
util-linux-2.31 is now providing rfkill and they provide a bash completion for it as well.  This causes a file collision with all current versions of bash-completion.

It seems that bash-completion upstream has now worked around this but it's not yet in a release:
https://github.com/scop/bash-completion/commit/d962f3a3be2b5c3811e546890c99b19694c2a08e

----------

 * Detected file collision(s):
 * 
 *      /usr/share/bash-completion/completions/rfkill
 * 
 * Searching all installed packages for file collisions...
 * 
 * Press Ctrl-C to Stop
 * 
 * sys-apps/util-linux-2.31:0::gentoo
 *      /usr/share/bash-completion/completions/rfkill
 * 
 * Package 'app-shells/bash-completion-2.4-r1' NOT merged due to file
 * collisions. If necessary, refer to your elog messages for the whole
 * content of the above message.
Comment 1 Perfect Gentleman 2017-10-23 12:58:25 UTC
>>> Installing (1 of 1) sys-apps/util-linux-2.31::gentoo
 * checking 387 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 https://bugs.gentoo.org/ unless you report exactly
 * which two packages install the same file(s). See
 * https://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/share/bash-completion/completions/rfkill
 * 
 * Searching all installed packages for file collisions...
 * 
 * Press Ctrl-C to Stop
 * 
 * app-shells/bash-completion-2.7:0::gentoo
 *      /usr/share/bash-completion/completions/rfkill
 * 
 * Package 'sys-apps/util-linux-2.31' NOT merged due to file collisions.
 * If necessary, refer to your elog messages for the whole content of the
 * above message.

>>> Failed to install sys-apps/util-linux-2.31, Log file:
Comment 2 Juergen Rose 2017-10-23 16:00:59 UTC
I have the same problem. And because net-wireless/rfkill is a dependency of app-laptop/tlp-1.0 I can not delete rfkill.
Comment 3 Ben Kohler gentoo-dev 2017-10-23 16:28:56 UTC
net-wireless/rfkill isn't involved in this particular bug.  You'll have to report a bug to the overlay maintainer to adjust his tlp ebuild to allow util-linux to provide rfkill.

Please open a separate bug for that.
Comment 4 Ivan Iraci 2017-10-23 17:42:40 UTC
Same problem here.
Comment 5 faminebadger 2017-10-23 20:01:18 UTC
A trivial fix you can implement in your local overlay is to update the ebuild file to add rfkill to the list of completions to strip before installing - STRIP_COMPLETIONS
Comment 6 Thomas Scheiblauer 2017-10-23 20:08:11 UTC
You can work around this by emerging app-shells/bash-completion-9999 until there is a release including the fix.
Comment 7 Larry the Git Cow gentoo-dev 2017-10-23 21:31:36 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f8c7401d89d6a01d96c811e7e3ca4e84b7b3309

commit 9f8c7401d89d6a01d96c811e7e3ca4e84b7b3309
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2017-10-23 21:30:55 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2017-10-23 21:31:27 +0000

    app-shells/bash-completion: Strip colliding rfkill executable
    
    Closes: https://bugs.gentoo.org/635158

 .../bash-completion/bash-completion-2.7-r1.ebuild  | 125 +++++++++++++++++++++
 .../bash-completion/bash-completion-9999.ebuild    |   3 +
 2 files changed, 128 insertions(+)
Comment 8 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-10-24 05:42:32 UTC
*** Bug 635198 has been marked as a duplicate of this bug. ***
Comment 10 PrSo 2017-10-24 10:02:21 UTC
*** Bug 635228 has been marked as a duplicate of this bug. ***