Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 436068

Summary: dev-ruby/rake-0.9.2.2 fails tests if rake is not installed
Product: Gentoo Linux Reporter: Nikoli <nikoli>
Component: Current packagesAssignee: Gentoo Ruby Team <ruby>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=867652
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 435100    

Description Nikoli 2012-09-24 07:55:28 UTC
Tests fail if rake is not installed:
>>> Source compiled.
 * Running test phase for ruby18 ...
/usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require': no such file to load -- rake (LoadError)
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
        from bin/rake:31
 * ERROR: dev-ruby/rake-0.9.2.2 failed (test phase):
 *   tests failed

If rake is installed, tests work fine:
>>> Source compiled.
 * Running test phase for ruby18 ...
(in /var/tmp/portage/dev-ruby/rake-0.9.2.2/work/ruby18/rake-0.9.2.2)
RDoc 2.4.2+ is required to build documentation
Run options: --seed 30795

# Running tests:

.............................................................................................................................................................................................................................................................................................................................................................................................................................................

Finished tests in 9.735530s, 44.0654 tests/s, 122.2327 assertions/s.

429 tests, 1190 assertions, 0 failures, 0 errors, 0 skips
 * Running test phase for ruby19 ...
/usr/lib64/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake/alt_system.rb:32: Use RbConfig instead of obsolete and deprecated Config.
(in /var/tmp/portage/dev-ruby/rake-0.9.2.2/work/ruby19/rake-0.9.2.2)
RDoc 2.4.2+ is required to build documentation
Run options: --seed 467

# Running tests:

.............................................................................................................................................................................................................................................................................................................................................................................................................................................

Finished tests in 10.358661s, 41.4146 tests/s, 114.8797 assertions/s.

429 tests, 1190 assertions, 0 failures, 0 errors, 0 skips

>>> Install rake-0.9.2.2 into /var/tmp/portage/dev-ruby/rake-0.9.2.2/image/ category dev-ruby
Comment 1 Marek Szuba archtester gentoo-dev 2021-07-21 09:50:31 UTC
This happens with dev-ruby/rake-13.0.3 as well, with a different error though.

With rake not installed yet:
***

 * Running test phase for ruby26 ...
Run options: --seed 24650

# Running:

..........................................................................................................................................................................................................................................F...................................................................................................................................................................................................................................................................................................................................................................

Finished in 9.789772s, 60.2670 runs/s, 166.5003 assertions/s.

  1) Failure:
TestRakeFunctional#test_signal_propagation_in_tests [/var/tmp/portage/dev-ruby/rake-13.0.3-r1/work/ruby26/rake-13.0.3/test/test_rake_functional.rb:496]:
Expected /ATEST/ to match "".

590 runs, 1630 assertions, 1 failures, 0 errors, 0 skips


***

With =dev-ruby/rake-13.0.3 previously installed (with FEATURES=-test, naturally):
***

 * Running test phase for ruby26 ...                                                                                 
Run options: --seed 15238                                                                                            
                                                                                                                     
# Running:                                                                                                           
                                                                                                                     
.....................................................................................................................
.....................................................................................................................
.....................................................................................................................
.....................................................................................................................
.....................................................................................................................
........                                                                                                             
                                                                                                                     
Finished in 104.058561s, 5.6987 runs/s, 15.8276 assertions/s.                                                        
                                                                                                                     
593 runs, 1647 assertions, 0 failures, 0 errors, 0 skips
Comment 2 Marek Szuba archtester gentoo-dev 2021-07-21 09:55:47 UTC
Slight correction, the "with rake already installed" paste has come from a different system than the "with rake not installed" one, hence dramatically different timings. Here is the correct one:

***

 * Running test phase for ruby26 ...
Run options: --seed 45671

# Running:

..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

Finished in 10.236813s, 57.6351 runs/s, 159.4246 assertions/s.

590 runs, 1632 assertions, 0 failures, 0 errors, 0 skips
Comment 3 Hans de Graaff gentoo-dev Security 2024-02-09 09:13:05 UTC
This has been fixed in rake 13.1.0.