Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 706410 - dev-ruby/rack-2.1.1 : file collision with dev-ruby/rack-2.0.8
Summary: dev-ruby/rack-2.1.1 : file collision with dev-ruby/rack-2.0.8
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: 2020-01-26 09:25 UTC by Toralf Förster
Modified: 2020-01-29 07:16 UTC (History)
4 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.74 KB, text/plain)
2020-01-26 09:26 UTC, Toralf Förster
Details
dev-ruby:rack-2.1.1:20200126-092209.log (dev-ruby:rack-2.1.1:20200126-092209.log,2.90 KB, text/plain)
2020-01-26 09:26 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,220.44 KB, text/plain)
2020-01-26 09:26 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,42.01 KB, application/x-bzip)
2020-01-26 09:26 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,651 bytes, application/x-bzip)
2020-01-26 09:26 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 2020-01-26 09:25:58 UTC
 * Detected file collision(s):
 * 
 * 	/usr/bin/rackup
 * 
 * Searching all installed packages for file collisions...
 * 
 * Press Ctrl-C to Stop
 * 
 * dev-ruby/rack-2.0.8:2.0::gentoo
 * 	/usr/bin/rackup
 * 
 * Package 'dev-ruby/rack-2.1.1' NOT merged due to file collisions. If

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_developer-libressl-20200121-072921

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.2.0 *

clang:
clang version 9.0.1 
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/9/bin
llvm:
9.0.1
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.7
  [3]   python3.6
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.40.0 *
java-config:
The following VMs are available for generation-2:
1)	IcedTea JDK 3.15.0 [icedtea-8]
*)	IcedTea JDK 3.14.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-8 
  [2]   icedtea-bin-8  system-vm

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Sun, 26 Jan 2020 08:26:14 +0000

emerge -qpvO dev-ruby/rack
[ebuild  NS   ] dev-ruby/rack-2.1.1 [2.0.8] USE="-doc -test" RUBY_TARGETS="ruby24 ruby25 -ruby26 -ruby27%"
Comment 1 Toralf Förster gentoo-dev 2020-01-26 09:26:00 UTC
Created attachment 604554 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-01-26 09:26:03 UTC
Created attachment 604556 [details]
dev-ruby:rack-2.1.1:20200126-092209.log
Comment 3 Toralf Förster gentoo-dev 2020-01-26 09:26:06 UTC
Created attachment 604558 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-01-26 09:26:09 UTC
Created attachment 604560 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-01-26 09:26:12 UTC
Created attachment 604562 [details]
logs.tbz2
Comment 6 Amel Hodzic 2020-01-26 21:35:56 UTC
For what it's worth, same is true if RUBY_TARGETS="ruby24 ruby25 ruby26".
Comment 7 Amel Hodzic 2020-01-26 21:38:45 UTC
I suppose, since it's meant to be a new slot, the name has to be changed or there has to be another way to dynamically or manually change the specific version of dev-ruby/rack; e.g. eselect-rackup or /usr/bin/rackup-2.1
Comment 8 Amel Hodzic 2020-01-26 21:49:45 UTC
Alternatively, this should be a simple update, unless there are tools that rely on the specific, older version of dev-ruby/rack-2.0.8.
Comment 9 Kobboi 2020-01-28 15:32:11 UTC
(In reply to Amel Hodzic from comment #8)
> Alternatively, this should be a simple update, unless there are tools that
> rely on the specific, older version of dev-ruby/rack-2.0.8.

And there are:

dev-ruby/actionpack-5.2.4.1 (ruby_targets_ruby24 ? >=dev-ruby/rack-2.0.8:2.0[ruby_targets_ruby24(-)])
                            (ruby_targets_ruby25 ? >=dev-ruby/rack-2.0.8:2.0[ruby_targets_ruby25(-)])
                            (ruby_targets_ruby26 ? >=dev-ruby/rack-2.0.8:2.0[ruby_targets_ruby26(-)])
dev-ruby/actionpack-6.0.2.1 (ruby_targets_ruby25 ? dev-ruby/rack:2.0[ruby_targets_ruby25(-)])
                            (ruby_targets_ruby26 ? dev-ruby/rack:2.0[ruby_targets_ruby26(-)])
dev-ruby/activesupport-5.2.4.1 (test ? dev-ruby/rack[ruby_targets_ruby24(-)])

which cause rack-2.0.8 to get installed even though I removed it to avoid the file collision when installing rack-2.1.1
Comment 10 Kobboi 2020-01-28 15:33:13 UTC
Well, what you actually mean of course is if actionpack would not work with 2.1.1. And that I don't know :)
Comment 11 Larry the Git Cow gentoo-dev 2020-01-29 07:16:17 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78ffdf3aadd4a15063fdde99ff25d4301831b332

commit 78ffdf3aadd4a15063fdde99ff25d4301831b332
Author:     Hans de Graaff <graaff@gentoo.org>
AuthorDate: 2020-01-29 07:15:14 +0000
Commit:     Hans de Graaff <graaff@gentoo.org>
CommitDate: 2020-01-29 07:16:00 +0000

    dev-ruby/rack: fix slot file collision
    
    Add 2.0 slot without binaries and make the 2.1 slot block on 2.0
    versions with the binaries.
    
    Closes: https://bugs.gentoo.org/706410
    Package-Manager: Portage-2.3.84, Repoman-2.3.20
    Signed-off-by: Hans de Graaff <graaff@gentoo.org>

 dev-ruby/rack/rack-2.0.8-r1.ebuild | 44 ++++++++++++++++++++++++++++++++++++++
 dev-ruby/rack/rack-2.1.1.ebuild    |  2 +-
 2 files changed, 45 insertions(+), 1 deletion(-)