Red Hat Bugzilla – Bug 800008
Last modified: 2012-05-15 15:22:00 EDT
rubygem-rspec-rails fails to rebuild from source. See build failure at https://brewweb.devel.redhat.com/taskinfo?taskID=4104052 for details.
Not really sure what is going on here. Sometimes the rebuild succeeds, sometimes it fails. In fact building the package back-to-back-to-back sometimes demonstrates alternating success and failure. Seems that all of the failures are from the same 2 tests:
rspec ./spec/rspec/rails/matchers/be_a_new_spec.rb:69 # be_a_new matcher#with right class and new record no attributes same fails
rspec ./spec/rspec/rails/matchers/be_a_new_spec.rb:115 # be_a_new matcher#with wrong class and existing record no attributes same fails
Not sure what that really means and if there is something we need to look into. Bouncing back to Assigned to get a review of this issue.
Eck directed me to an upstream patch that resolves rpm rebuild failures (https://github.com/rspec/rspec-rails/commit/e5938b8d37e00439f83a2fb3f4b8d2ceae29f7f6). I locally built a new rubygem-rspec-rails with this patch, and it consistently builds in brew  without error
Is this patch safe to include in a new rubygem-rspec-rails build?
The patch as it exists in upstream throws some warnings due to unescaped regex strings. I've fixed those and built the result here:
I'm no longer able to reproduce the FTBFS failure
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.