Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 607806 - dev-ruby/power_assert-1.0.1 : file collision with app-admin/conserver-8.1.18-r1
Summary: dev-ruby/power_assert-1.0.1 : file collision with app-admin/conserver-8.1.18-r1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-31 14:04 UTC by Toralf Förster
Modified: 2017-02-01 06:48 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,6.26 KB, text/plain)
2017-01-31 14:04 UTC, Toralf Förster
Details
dev-ruby:power_assert-1.0.1:20170131-112815.log (dev-ruby:power_assert-1.0.1:20170131-112815.log,2.98 KB, text/plain)
2017-01-31 14:04 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,453.73 KB, text/plain)
2017-01-31 14:04 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,25.41 KB, application/x-bzip)
2017-01-31 14:04 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2017-01-31 14:04:17 UTC
 * Detected file collision(s):
 * 
 * 	/usr/bin/console
 * 
 * Searching all installed packages for file collisions...
 * 
 * Press Ctrl-C to Stop
 * 
 * app-admin/conserver-8.1.18-r1:0::gentoo
 * 	/usr/bin/console
 * 
 * Package 'dev-ruby/power_assert-1.0.1' NOT merged due to file

  -----------------------------------------------------------------

  This is an unstable amd64 chroot image (named desktop-unstable_20170121-000413) at a hardened host acting as a tinderbox.

  -----------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-5.4.0 *
llvm-config --version:
3.9.1
Available Java Virtual Machines:
  [1]   icedtea-7  system-vm
  [2]   icedtea-bin-7 
  [3]   icedtea-bin-8 
Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python2.7 (fallback)
  [3]   pypy (fallback)
  [4]   jython2.7 (fallback)
Available Ruby profiles:
  [1]   ruby21 (with Rubygems) *
java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 7.2.6.8 [icedtea-7]
2)	IcedTea JDK 7.2.6.8 [icedtea-bin-7]
3)	IcedTea JDK 3.2.0 [icedtea-bin-8]
  -----------------------------------------------------------------
Comment 1 Toralf Förster gentoo-dev 2017-01-31 14:04:20 UTC
Created attachment 461982 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-01-31 14:04:23 UTC
Created attachment 461984 [details]
dev-ruby:power_assert-1.0.1:20170131-112815.log
Comment 3 Toralf Förster gentoo-dev 2017-01-31 14:04:26 UTC
Created attachment 461986 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2017-01-31 14:04:29 UTC
Created attachment 461988 [details]
etc.portage.tbz2
Comment 5 Daniel M. Weeks 2017-01-31 16:12:47 UTC
I believe we've seen this problem a couple times before with ruby packages (#571186, #593068).
Comment 6 Toralf Förster gentoo-dev 2017-01-31 16:25:21 UTC
(In reply to Daniel M. Weeks from comment #5)
yes, is conserver guilty ?
Comment 7 Daniel M. Weeks 2017-01-31 17:14:16 UTC
(In reply to Toralf Förster from comment #6)
> (In reply to Daniel M. Weeks from comment #5)
> yes, is conserver guilty ?

No. In every case it's an experimental stub for the ruby package that's incorrectly installed and the ruby package in question needs the fix.

The root cause appears to be that many ruby packages use Bundler to generate a template project or use it's skeleton as a standard specification. Bundler includes an interactive demo script named "console" in it's skeleton. When the ruby ebuild are made care isn't taken to remove these useless scripts before installation.

With the pervasiveness of the problem (and since ruby packages could collide with each other for the same reason) it almost seems like one of the ruby eclasses should remove the file(s) by default and only include them when an ebuild has made an explicit exception.
Comment 8 Hans de Graaff gentoo-dev Security 2017-02-01 06:47:52 UTC
Fixed with power_assert-1.0.1-r1
Comment 9 Hans de Graaff gentoo-dev Security 2017-02-01 06:48:37 UTC
(In reply to Daniel M. Weeks from comment #7)

> With the pervasiveness of the problem (and since ruby packages could collide
> with each other for the same reason) it almost seems like one of the ruby
> eclasses should remove the file(s) by default and only include them when an
> ebuild has made an explicit exception.

Yes, a more structural solution would probably be a good idea, I'll have a look at this.