Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 171365 - dev-ruby/cgi_multipart_eof_fix-1.0.0 fails w/ ruby-1.8.6
Summary: dev-ruby/cgi_multipart_eof_fix-1.0.0 fails w/ ruby-1.8.6
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Nguyen Thai Ngoc Duy (RETIRED)
URL:
Whiteboard:
Keywords:
: 176968 182152 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-03-18 17:10 UTC by Pistos
Modified: 2007-06-15 15:37 UTC (History)
8 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 Pistos 2007-03-18 17:10:09 UTC
dev-ruby/cgi_multipart_eof_fix is restricted to Ruby <= 1.8.5.
www-servers/mongrel-1.0.1 depends on dev-ruby/cgi_multipart_eof_fix.
When you upgrade to Ruby 1.8.6, you therefore can no longer emerge mongrel.

Reproducible: Always

Steps to Reproduce:
1. emerge =ruby-1.8.6
2. emerge www-servers/mongrel

Actual Results:  
mongrel fails to emerge

Expected Results:  
mongrel should emerge with ruby 1.8.6 installed.

http://forums.gentoo.org/viewtopic.php?p=3963443
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-03-18 17:13:29 UTC
Really no idea what are you talking about...

# emerge -pv ruby mongrel

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] dev-ruby/daemons-1.0.4  USE="-doc" 29 kB 
[ebuild  N    ] dev-ruby/fastthread-0.6.3  USE="-doc" 20 kB 
[ebuild  N    ] dev-ruby/rake-0.7.2  USE="-doc" 162 kB 
[ebuild  N    ] dev-ruby/cgi_multipart_eof_fix-1.0.0  USE="-doc" 6 kB 
[ebuild   R   ] dev-lang/ruby-1.8.6  USE="-debug -doc -examples ipv6 -socks5 threads -tk" 0 kB 
[ebuild  N    ] dev-ruby/gem_plugin-0.2.2  USE="-doc" 43 kB 
[ebuild  N    ] www-servers/mongrel-1.0.1  USE="-doc" 156 kB 
Comment 2 Neil Cathey 2007-03-18 23:35:17 UTC
With ruby-1.8.6 installed, cgi_multipart_eof_fix (a dependency of mongrel) fails to install:

[snip]
>>> Install cgi_multipart_eof_fix-1.0.0 into /var/tmp/portage/dev-ruby/cgi_multipart_eof_fix-1.0.0/image/ category dev-ruby
ERROR:  Error installing gem /var/tmp/portage/dev-ruby/cgi_multipart_eof_fix-1.0.0/distdir/cgi_multipart_eof_fix-1.0.0[.gem]: cgi_multipart_eof_fix requires Ruby version <= 1.8.5

!!! ERROR: dev-ruby/cgi_multipart_eof_fix-1.0.0 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_install
  ebuild.sh, line 1060:   Called qa_call 'src_install'
  environment, line 3299:   Called src_install
  ebuild.sh, line 1304:   Called gems_src_install
  gems.eclass, line 78:   Called die

!!! gem install failed (spec file /var/tmp/portage/dev-ruby/cgi_multipart_eof_fix-1.0.0/image///usr/lib64/ruby/gems/1.8/specifications/cgi_multipart_eof_fix-1.0.0.gemspec missing)
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/dev-ruby/cgi_multipart_eof_fix-1.0.0/temp/build.log'.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-03-18 23:57:31 UTC
(In reply to comment #2)
> With ruby-1.8.6 installed, cgi_multipart_eof_fix (a dependency of mongrel)
> fails to install:

So, why haven't you said so directly? :)
Comment 4 Josh Nichols (RETIRED) gentoo-dev 2007-03-20 00:41:50 UTC
I thought I'd try to be clever and do:
mkdir -p /etc/portage/profile
echo "dev-ruby/cgi_multipart_eof_fix-1.0.0" >> /etc/portage/profile/package.provided

That gets you past trying to emerge the fix, but you still end up with:
ERROR:  Error installing gem /var/tmp/portage/www-servers/mongrel-1.0.1/distdir/mongrel-1.0.1[.gem]: mongrel requires cgi_multipart_eof_fix >= 1.0.0 

!!! ERROR: www-servers/mongrel-1.0.1 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_install
  ebuild.sh, line 1060:   Called qa_call 'src_install'
  environment, line 3214:   Called src_install
  ebuild.sh, line 1304:   Called gems_src_install
  gems.eclass, line 78:   Called die

!!! gem install failed (spec file /var/tmp/portage/www-servers/mongrel-1.0.1/image///usr/lib/ruby/gems/1.8/specifications/mongrel-1.0.1.gemspec missing)
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/www-servers/mongrel-1.0.1/temp/build.log'.


Comment 5 Anton Kuzmin 2007-03-24 09:55:24 UTC
I have the same problem.
Patching the Rakefile should sort it out. But unfortunately, I don't know how to do it.

# grep -R cgi_multipart_eof .
./bin/mongrel_rails:require 'cgi_multipart_eof_fix' rescue nil
./Rakefile:  spec.add_dependency('cgi_multipart_eof_fix', '>= 1.0.0')
Comment 6 Paul Sorensen 2007-03-25 14:57:39 UTC
This bug also blocks amarok (which now depends on mongrel) - so it's going to hit a lot of people.  Lucky that they signed up to be testers! (~arch) :)
Comment 7 Nguyen Thai Ngoc Duy (RETIRED) gentoo-dev 2007-03-26 13:32:13 UTC
I wonder what mongrel people have talked about it.
An easy solution now is making mongrel block >=ruby-1.8.6. I could do this right away if you all agree.
I'll try to patch mongrel gem this weekend (to ruby herd: if you can do it before that time, go ahead)
Comment 8 Richard Brown (RETIRED) gentoo-dev 2007-03-26 13:46:35 UTC
I haven't had time to test it yet, but I found https://rubyforge.org/frs/?group_id=2835, which I think will install on ruby-1.8.6
Comment 9 Nguyen Thai Ngoc Duy (RETIRED) gentoo-dev 2007-03-26 13:57:08 UTC
(In reply to comment #8)
> I haven't had time to test it yet, but I found
> https://rubyforge.org/frs/?group_id=2835, which I think will install on
> ruby-1.8.6
> 

Um.. both 2.0.2 and 2.1 no longer block >=ruby-1.8.6 according to their metadata
Comment 10 Nguyen Thai Ngoc Duy (RETIRED) gentoo-dev 2007-03-26 14:24:07 UTC
It took me shorter time than expected to fix this bug. Thanks Richard. cgi_multipart_eof_fix-2.1 is added. cgu_multipart_eof_fix-1.0.0 blocks >=ruby-1.8.6 and should be removed as soon as 2.1 gets stable
Comment 11 DocReedSolomon 2007-03-27 12:44:29 UTC
hmm..

>>> Emerging (1 of 1) dev-ruby/cgi_multipart_eof_fix-2.1 to /
>>> Downloading 'http://distfiles.gentoo.org/distfiles/cgi_multipart_eof_fix-2.1.gem'
--14:39:36--  http://distfiles.gentoo.org/distfiles/cgi_multipart_eof_fix-2.1.gem
           => `/usr/portage/distfiles/cgi_multipart_eof_fix-2.1.gem'
Auflösen des Hostnamen »distfiles.gentoo.org«.... 156.56.247.195, 64.50.238.52, 64.50.236.52, ...
Verbindungsaufbau zu distfiles.gentoo.org|156.56.247.195|:80... verbunden.
HTTP Anforderung gesendet, warte auf Antwort... 404 Not Found
14:39:36 FEHLER 404: Not Found.

>>> Downloading 'ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo/distfiles/cgi_multipart_eof_fix-2.1.gem'
--14:39:37--  ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo/distfiles/cgi_multipart_eof_fix-2.1.gem
           => `/usr/portage/distfiles/cgi_multipart_eof_fix-2.1.gem'
Auflösen des Hostnamen »sunsite.informatik.rwth-aachen.de«.... 137.226.34.227
Verbindungsaufbau zu sunsite.informatik.rwth-aachen.de|137.226.34.227|:21... verbunden.
Anmelden als anonymous ... Angemeldet!
==> SYST ... fertig.    ==> PWD ... fertig.
==> TYPE I ... fertig.  ==> CWD /pub/Linux/gentoo/distfiles ... fertig.
==> PASV ... fertig.    ==> RETR cgi_multipart_eof_fix-2.1.gem ...
Die Datei »cgi_multipart_eof_fix-2.1.gem« gibt es nicht.

>>> Downloading 'http://www.gigaload.org/gentoo.org/distfiles/cgi_multipart_eof_fix-2.1.gem'
--14:39:37--  http://www.gigaload.org/gentoo.org/distfiles/cgi_multipart_eof_fix-2.1.gem
           => `/usr/portage/distfiles/cgi_multipart_eof_fix-2.1.gem'
Auflösen des Hostnamen »www.gigaload.org«.... 212.72.180.153
Verbindungsaufbau zu www.gigaload.org|212.72.180.153|:80... verbunden.
HTTP Anforderung gesendet, warte auf Antwort... 404 Not Found
14:39:37 FEHLER 404: Not Found.

>>> Downloading 'http://mongrel.rubyforge.org/releases/gems/cgi_multipart_eof_fix-2.1.gem'
--14:39:37--  http://mongrel.rubyforge.org/releases/gems/cgi_multipart_eof_fix-2.1.gem
           => `/usr/portage/distfiles/cgi_multipart_eof_fix-2.1.gem'
Auflösen des Hostnamen »mongrel.rubyforge.org«.... 205.234.109.18
Verbindungsaufbau zu mongrel.rubyforge.org|205.234.109.18|:80... verbunden.
HTTP Anforderung gesendet, warte auf Antwort... 404 Not Found
14:39:37 FEHLER 404: Not Found.

!!! Couldn't download 'cgi_multipart_eof_fix-2.1.gem'. Aborting.
Comment 12 Richard Brown (RETIRED) gentoo-dev 2007-03-27 14:07:33 UTC
Yeah, the gem moved between 1.0 and 2.1 which is why we didn't notice the new vesrion. The SRC_URI is fixed in CVS and will be on the rsync mirrrors in a few hours.
Comment 13 DocReedSolomon 2007-03-27 17:05:19 UTC
thx Richard, fixed ;)
Comment 14 Jakub Moc (RETIRED) gentoo-dev 2007-05-04 06:37:54 UTC
*** Bug 176968 has been marked as a duplicate of this bug. ***
Comment 15 Jakub Moc (RETIRED) gentoo-dev 2007-06-15 15:27:33 UTC
*** Bug 182152 has been marked as a duplicate of this bug. ***
Comment 16 Ramin 2007-06-15 15:37:20 UTC
(In reply to comment #15)
> So use dev-ruby/cgi_multipart_eof_fix-2.1

I'll probably do so, but if that problem is known for 3 months how/why does it get into the stable tree? (Why is ruby-1.8.6 marked stable while cgi_multipart_eof_fix-2.1 is still not?)