| Summary: | Rails tasks fail to run with error about missing mail gem. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Darryl L. Pierce <dpierce> |
| Component: | rubygem-rails | Assignee: | Mo Morsi <mmorsi> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | mastahnke, mmorsi, mtasaka, sseago, tom, tross, vanmeeuwen+fedora, vondruch |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | rubygem-actionmailer-3.0.5-2.fc15 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-06-21 17:07:29 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | |||
| Bug Blocks: | 706934 | ||
|
Description
Darryl L. Pierce
2011-05-29 15:52:15 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). 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 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). 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. 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 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? 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). (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 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. 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!! (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 Mo, could you please build the update for Rawhide? Or shall I? (In reply to comment #13) > Built: http://koji.fedoraproject.org/koji/taskinfo?taskID=3137261 Thank you! 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. 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. |