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

Bug 535764

Summary: dev-vcs/subversion-1.8.11 should not depend on dev-lang/ruby:1.9
Product: Gentoo Linux Reporter: Eric Gisse <jowr.pi>
Component: [OLD] DevelopmentAssignee: Lars Wendler (Polynomial-C) (RETIRED) <polynomial-c>
Status: RESOLVED FIXED    
Severity: normal CC: ruby
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=483102
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 536852    

Description Eric Gisse 2015-01-06 09:23:01 UTC
I've noticed that my system insists on ruby19 support due to the default ruby useflag, and subversion insisting on ruby19. 

This isn't good. Ruby 1.9 support is going away in February. 

See: https://wiki.gentoo.org/wiki/Project:Ruby/Ruby_1.9_deprecation

For some reason subversion is hardcoded to use the ruby19 target only. Could this please be fixed?

It might be worth considering a bit of future proofing for next time, since subversion has been dinged with this before. See: #483102
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2015-01-07 20:53:19 UTC
@ruby team: Can you please assist here? I'd like to have the ebuild using any available (and working) ruby version.
Comment 2 Manuel Rüger (RETIRED) gentoo-dev 2015-02-07 08:59:43 UTC
Well I won't recommend to depend on just dev-lang/ruby, as there's no guarantee that it will still work with later rubies. E.g. ruby19 support was added in 1.8.x, see https://svn.apache.org/viewvc?view=revision&revision=1407206

For now, we recommend to use 
|| ( 
( dev-lang/ruby:1.9 dev-lang/rubygems[ruby_targets_ruby19] ) 
( dev-lang/ruby:2.0 dev-lang/rubygems[ruby_targets_ruby20] )
( dev-lang/ruby:2.1 dev-lang/rubygems[ruby_targets_ruby21] )
( dev-lang/ruby:2.2 dev-lang/rubygems[ruby_targets_ruby22] ) 
)
if all of these version have been tested to work with it.
Comment 3 Manuel Rüger (RETIRED) gentoo-dev 2015-02-07 09:06:02 UTC
(In reply to Manuel Rüger from comment #2)
> Well I won't recommend to depend on just dev-lang/ruby, as there's no
> guarantee that it will still work with later rubies. E.g. ruby19 support was
> added in 1.8.x, see
> https://svn.apache.org/viewvc?view=revision&revision=1407206
> 
> For now, we recommend to use 
> || ( 
> ( dev-lang/ruby:1.9 dev-lang/rubygems[ruby_targets_ruby19] ) 
> ( dev-lang/ruby:2.0 dev-lang/rubygems[ruby_targets_ruby20] )
> ( dev-lang/ruby:2.1 dev-lang/rubygems[ruby_targets_ruby21] )
> ( dev-lang/ruby:2.2 dev-lang/rubygems[ruby_targets_ruby22] ) 
> )
> if all of these version have been tested to work with it.

Sorry I haven't looked at the complete ebuild.

Due to:
ac_cv_path_RUBY="${EPREFIX}"/usr/bin/ruby19 ac_cv_path_RDOC="${EPREFIX}"/usr/bin/rdoc19 \

I suggest to only depend on a single version of dev-lang/ruby, in this case ruby:2.0.
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2015-07-16 09:36:39 UTC
=dev-vcs/subversion-1.8.11 is no longer in the tree and newer versions depend on either ruby:20 (stable) or ruby:21 (unstable)