Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 418301 - dev-ruby/bcat app-accessibility/speech-tools - file collision in /usr/bin/bcat
Summary: dev-ruby/bcat app-accessibility/speech-tools - file collision in /usr/bin/bcat
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-30 20:02 UTC by Jeroen Roovers (RETIRED)
Modified: 2015-01-25 09:26 UTC (History)
4 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 Jeroen Roovers (RETIRED) gentoo-dev 2012-05-30 20:02:14 UTC
* Messages for package dev-ruby/bcat-0.6.2:

 * 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/bin/bcat
 * 
 * Searching all installed packages for file collisions...
 * 
 * Press Ctrl-C to Stop
 * 
 * app-accessibility/speech-tools-2.1-r1
 *      /usr/bin/bcat
 * 
 * Package 'dev-ruby/bcat-0.6.2' NOT merged due to file collisions. ...
Comment 1 Hans de Graaff gentoo-dev Security 2012-07-22 13:41:17 UTC
I've now made this explicit in the dev-ruby/bcat ebuild by adding a blocker. Leaving the bug open until we have a more permanent solution.
Comment 2 James Cloos 2012-12-11 21:36:54 UTC
The /usr/bin/bcat in app-accessibility/speech-tools doesn’t do anything much:

:; bcat --help
Usage: bcat -o [ofile] [files...]
Summary; concatenate files in binary mode
-o <ofile>       Ouptut file of binary data

bcat_main.cc says:

 /* A simple file concatenator which does everything in binary            */
 /* mode. For use in the tests on Windows etc.                            */

It shouldn’t be installed.

The speech-tools ebuild should elide /usr/bin/bcat (and /usr/lib64/speech-tools/bcat?) and the dev-ruby/bcat can then remove the blocker.
Comment 3 Hans de Graaff gentoo-dev Security 2015-01-17 10:16:40 UTC
Re-assigning to the speech-tools maintainers since the initial action is there. Please assign back to ruby once this is fixed in speech-tools.
Comment 4 Chris Brannon (RETIRED) gentoo-dev 2015-01-17 18:10:05 UTC
Here's what the bcat source from speech_tools has to say about the
program:

/**
bcat is a trivial file concatenation program. It exists to allow testing
of various file splitting operations under the cygwin environment on Windows
where the distinction between binary and text data is important.
 */

So basically, it's a cat program that can concatenate binary files under
Cygwin.  And it's only used for testing purposes?  I wonder why it is
even installed on Linux.  Maybe we can just remove the binary in
src_install?
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2015-01-17 18:16:28 UTC
(In reply to Chris Brannon from comment #4)
> So basically, it's a cat program that can concatenate binary files under
> Cygwin.

Do note that cat from GNU coreutils is perfectly capable of concatenating binary files. Even POSIX cat doesn't offer any opinion on the contents of the files you concatenate.

> And it's only used for testing purposes?  I wonder why it is
> even installed on Linux.  Maybe we can just remove the binary in
> src_install?

Yes we can.
Comment 6 Chris Brannon (RETIRED) gentoo-dev 2015-01-20 02:02:32 UTC
bcat has been removed from 2.1-r3.
Reassigning to ruby, so they can remove their blocker.
Comment 7 Hans de Graaff gentoo-dev Security 2015-01-25 09:26:16 UTC
I have updated the blockers in dev-ruby/bcat to only block on the old speech-tools versions that are not fixed.