Bug 708793 - Rails tasks fail to run with error about missing mail gem.
Summary: Rails tasks fail to run with error about missing mail gem.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: rubygem-rails
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Mo Morsi
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 706934
TreeView+ depends on / blocked
 
Reported: 2011-05-29 15:52 UTC by Darryl L. Pierce
Modified: 2015-06-22 00:07 UTC (History)
8 users (show)

Fixed In Version: rubygem-actionmailer-3.0.5-2.fc15
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-06-21 17:07:29 UTC
Type: ---


Attachments (Terms of Use)

Description Darryl L. Pierce 2011-05-29 15:52:15 UTC
Description of problem:

When trying to start a Rails app, I see the error:
Could not find gem 'mail (~> 2.2.15)', required by 'rails (= 3.0.5)', in any of the sources

However, rubygem-mail is installed and is version 2.3.0, which is what is available in Fedora 15.


Version-Release number of selected component (if applicable):

[root@mcpierce-laptop ~]# rpm -q rubygem-rails
rubygem-rails-3.0.5-2.fc15.noarch


How reproducible:

100%

Steps to Reproduce:
1. Attempt to perform any task in a rails app, such as "rake test".
2.
3.
  
Actual results:

The error message is shown.


Expected results:

The task to start running.

Additional info:

Comment 1 Vít Ondruch 2011-05-30 06:10:57 UTC
It seems that this error is cause by not very careful update of rubygem-mail. Do you know, by a chance, if rubygem-actionmailer is compatible with rubygem-mail 2.3 (i.e. if you manually correct the actionmailer-3.0.5.gemspec to depend on mail 2.3).

Comment 2 Mo Morsi 2011-06-02 23:03:29 UTC
OK I've verified that the actionmailer test suite works against 3.0.5 and have an updated actionmailer SRPM ready to be pushed into rawhide and F15.

http://mo.morsi.org/files/rpms/rubygem-actionmailer-3.0.5-2.fc15.src.rpm 


I ran a koji build which failed though, due to the fact that rubygem-multimap wasn't available in the mock'd environment. 

http://koji.fedoraproject.org/koji/taskinfo?taskID=3107246


actionmailer requires actionpack which requires rack-mount which should require multimap. But this was removed in a recent commit to rack-mount

http://pkgs.fedoraproject.org/gitweb/?p=rubygem-rack-mount.git;a=commitdiff;h=aff3a05fd87b278ae3f1e8e68f013d2bebd90174

The multimap dependency will need to be added to either the rack-mount or the actionmailer package. If its not a strict runtime dependency of rack-mount (eg an optional feature), we can add it to the BuildRequires section of actionmailer, else it should be added to rack-mount.


Once this is resolved I can push the new actionmailer rpm to Fedora, resolving this issue. Note though I tried it out and we're not in the clear, we run into the following issue due to the version of Rake that we ship in Fedora

http://stackoverflow.com/questions/5287121/undefined-method-task-using-rake-0-9-0

We ship rake 0.9.0 and will need to update it to the recently released 0.9.1 to completely resolve this issue

Comment 3 Vít Ondruch 2011-06-03 10:40:06 UTC
Hi Mo,

The build issues hits only rawhide, due to updated rack-mount. The F15 builds fine IMO: http://koji.fedoraproject.org/koji/taskinfo?taskID=3107870

The root of the build issues is that there were added dependencies on multimap and regin into actionpack.gemspec, while they actually belongs to rack-mount.gemspec.

I have already build update of rack-mount for rawhide, and I am going to fix actionpack (i.e. remove the patch). I am not going to change anything in F15 as long as it causes no troubles (and it should not IMO).

Comment 4 Vít Ondruch 2011-06-03 11:27:19 UTC
Btw it appears that the failed build is issues of RubyGems 1.8.5, since build in my mock, where I still have RubyGems 1.7.2 works fine.

Comment 5 Fedora Update System 2011-06-06 18:12:10 UTC
rubygem-actionmailer-3.0.5-2.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/rubygem-actionmailer-3.0.5-2.fc15

Comment 6 Mo Morsi 2011-06-06 18:13:07 UTC
OK I've pushed the update to the F15 git branch, have run the official koji build and have submitted an update to Bodhi. I gave it a stable karma of only 1, so if one of you guys can test it and give it positive feedback, it'll be pushed into stable immediately.


I'm still unclear as to what the situation w/ multimap in rawhide right now. As it stands, neither rack-mount nor actionpack in rawhide requires multimap, and thus trying to build actionmailer there will fail. Any thoughts on the correct place for the multimap (and regin) dependencies?

Comment 7 Fedora Update System 2011-06-07 04:29:54 UTC
Package rubygem-actionmailer-3.0.5-2.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing rubygem-actionmailer-3.0.5-2.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/rubygem-actionmailer-3.0.5-2.fc15
then log in and leave karma (feedback).

Comment 8 Vít Ondruch 2011-06-07 08:02:03 UTC
(In reply to comment #6)
> I'm still unclear as to what the situation w/ multimap in rawhide right now. As
> it stands, neither rack-mount nor actionpack in rawhide requires multimap, and
> thus trying to build actionmailer there will fail. Any thoughts on the correct
> place for the multimap (and regin) dependencies?

Originally, both multimap and regin were vendored in rack-mount. Of course I had to change it into external dependencies. Recent rack-mount removed the dependency on multimap completely (it was reworked somehow and sucked in as far as I remember). It might be that actionmailer depends on multimap although it is not explicitly stated?

Actually I have tried to scratch build the update and can't see any problem: http://koji.fedoraproject.org/koji/taskinfo?taskID=3115317

Comment 9 Mo Morsi 2011-06-10 22:32:07 UTC
Hrm that is weird, tried tracing the dependency but couldn't find it. Could just be I didn't look in the right place.

Since it seems to work on F15 and rawhide now, will leave as is for now. Whenever I can push to stable will do so and close out this bug.

Comment 10 Tom Trebisky 2011-06-16 21:02:55 UTC
As of 6-14-2011 on a fully updated fedora 15 system, I see this same bug where
I do:

cd /u1/rails
rails new demo
cd demo
rails server

and get:
Could not find gem 'mail (~> 2.2.15)', required by 'rails (= 3.0.5)', in any of
the sources

After doing:


yum update --enablerepo=updates-testing rubygem-actionmailer

the problem is FIXED, so it sure would be nice if you guys would push this out of testing and save people like me a lot of hair pulling!!

Comment 11 Vít Ondruch 2011-06-17 09:46:51 UTC
(In reply to comment #10)
Tom, sorry for inconvenience, but:

1) The update needs to spend some time in updates-testing. To speed up the process, we need your collaboration and some karma.
2) The update was already pushed into the stable, but waiting for RelEngs to process the request.

You can watch the update here: https://admin.fedoraproject.org/updates/rubygem-actionmailer-3.0.5-2.fc15

Comment 12 Vít Ondruch 2011-06-17 09:50:39 UTC
Mo, could you please build the update for Rawhide? Or shall I?

Comment 14 Vít Ondruch 2011-06-17 12:32:56 UTC
(In reply to comment #13)
> Built: http://koji.fedoraproject.org/koji/taskinfo?taskID=3137261

Thank you!

Comment 15 Tom Trebisky 2011-06-17 18:08:50 UTC
Sorry to snivel and complain and be so impatient, and if I can do anything
to help let me know.  Everything clear sailing so far though with the
updated package.

Comment 16 Fedora Update System 2011-06-21 17:07:24 UTC
rubygem-actionmailer-3.0.5-2.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.