Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 620284 - dev-lang/ruby-2.4.1-r2 missing date.rb with USE=static-libs
Summary: dev-lang/ruby-2.4.1-r2 missing date.rb with USE=static-libs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major
Assignee: Gentoo Ruby Team
URL: https://bugs.ruby-lang.org/issues/13413
Whiteboard:
Keywords:
: 623924 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-05-31 19:23 UTC by Robin Johnson
Modified: 2017-07-23 08:04 UTC (History)
1 user (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 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2017-05-31 19:23:19 UTC
== dev-lang/ruby-2.1.10                                                                                                                                                                     
/usr/lib64/ruby/2.1.0/optparse/date.rb                                                                                                                                                      
/usr/lib64/ruby/2.1.0/json/add/date.rb                                                                                                                                                      
/usr/lib64/ruby/2.1.0/date.rb                                                                                                                                                               
== dev-lang/ruby-2.2.7-r2                                                                                                                                                                   
/usr/lib64/ruby/2.2.0/optparse/date.rb                                                                                                                                                      
/usr/lib64/ruby/2.2.0/json/add/date.rb                                                                                                                                                      
/usr/lib64/ruby/2.2.0/date.rb                                                                                                                                                               
== dev-lang/ruby-2.3.4-r2                                                                                                                                                                   
/usr/lib64/ruby/2.3.0/optparse/date.rb                                                                                                                                                      
/usr/lib64/ruby/2.3.0/json/add/date.rb                                                                                                                                                      
/usr/lib64/ruby/2.3.0/date.rb                                                                                                                                                               
== dev-lang/ruby-2.4.1-r2                                                                                                                                                                   
/usr/lib64/ruby/2.4.0/optparse/date.rb      

This causes lots of strange failures, because date is part of stdlib.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2017-05-31 20:39:21 UTC
olah portage # irb24                                                                                                                                                                        
irb(main):001:0> require 'date'                                                                                                                                                             
LoadError: cannot load such file -- date                                                                                                                                                    
        from /usr/lib64/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /usr/lib64/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from (irb):1
        from /usr/bin/irb24:11:in `<main>'
irb(main):002:0>                                                                                                                                                                            
olah portage # irb23                                                                                                                                                                        
irb(main):001:0> require 'date'                                                                                                                                                             
=> true                                                                                                                                                                                     
irb(main):002:0>
Comment 2 Hans de Graaff gentoo-dev Security 2017-06-01 05:16:40 UTC
It gets installed for me:

/usr/lib64/ruby/2.4.0/date.rb
/usr/lib64/ruby/2.4.0/json/add/date.rb
/usr/lib64/ruby/2.4.0/optparse/date.rb

And works as expected:

$ irb24
irb(main):001:0> require 'date'
=> true
Comment 3 Hans de Graaff gentoo-dev Security 2017-06-02 06:38:31 UTC
This can be reproduced with USE=static-libs
Comment 4 Hans de Graaff gentoo-dev Security 2017-07-15 13:28:22 UTC
*** Bug 623924 has been marked as a duplicate of this bug. ***
Comment 5 Hans de Graaff gentoo-dev Security 2017-07-15 14:09:40 UTC
This is related to the --enable-static-linked-ext configure option that is part of USE=static-libs. Fix by backporting an upstream fix in ruby-2.4.1-r3.