Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 483360 - app-text/docbook-xsl-stylesheets with USE="ruby" should make use of RUBY_TARGETS
Summary: app-text/docbook-xsl-stylesheets with USE="ruby" should make use of RUBY_TARGETS
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-02 09:14 UTC by Manuel Rüger (RETIRED)
Modified: 2013-10-20 09:37 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
docbook-xsl-stylesheets-1.78.0.ebuild.patch (docbook-xsl-stylesheets-1.78.0.ebuild.patch,1.78 KB, patch)
2013-09-27 03:11 UTC, Manuel Rüger (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Manuel Rüger (RETIRED) gentoo-dev 2013-09-02 09:14:25 UTC
Currently this pulls in ruby20 because it depends on dev-lang/ruby directly. 

Either we should drop the useflag or add some ruby-eclass stuff to it, so it depends on a sane slot based on RUBY_TARGETS.

Another possibility is masking the ruby useflags.
Comment 1 Manuel Rüger (RETIRED) gentoo-dev 2013-09-02 09:16:39 UTC
[nomerge       ]   app-text/docbook-xsl-stylesheets-1.78.0  USE="ruby" 
[nomerge       ]    dev-lang/ruby-2.0.0_p247-r1:2.0 [1.8.7_p374:1.8, 1.9.3_p448:1.9] USE="berkdb gdbm ipv6 ncurses rdoc readline ssl tk yaml -debug -doc -examples -rubytests -socks5 -xemacs" 
[ebuild   R    ]     dev-ruby/rdoc-4.0.1-r1  USE="-doc {-test}" RUBY_TARGETS="ruby18 ruby19 ruby20* -jruby" 0 kB
[ebuild   R    ]      dev-ruby/racc-1.4.9  USE="-doc {-test}" RUBY_TARGETS="ruby18 ruby19 ruby20* -jruby" 0 kB
[ebuild     U  ]      dev-ruby/json-1.8.0 [1.7.7] USE="-doc {-test}" RUBY_TARGETS="ruby18 ruby19 ruby20%* -jruby (-ree18%)" 146 kB
[ebuild   R    ]       dev-ruby/rake-0.9.6  USE="-doc {-test}" RUBY_TARGETS="ruby18 ruby19 ruby20* -jruby" 0 kB
[ebuild  NS    ]        virtual/rubygems-6:ruby20 [1:ruby18, 4:ruby19] RUBY_TARGETS="(ruby20)" 0 kB
[ebuild   R    ]         dev-ruby/rubygems-2.0.3  USE="-server {-test}" RUBY_TARGETS="ruby18 ruby19 ruby20* -jruby" 0 kB
[ebuild  NS    ]          dev-lang/ruby-2.0.0_p247-r1:2.0 [1.8.7_p374:1.8, 1.9.3_p448:1.9] USE="berkdb gdbm ipv6 ncurses rdoc readline ssl tk yaml -debug -doc -examples -rubytests -socks5 -xemacs" 10,554 kB


Deptree. 

Or we could add a virtual/any-ruby which is satisfied by || ( any-existing-ruby-interpreter ) and make it depend on this.
Comment 2 Manuel Rüger (RETIRED) gentoo-dev 2013-09-27 03:11:12 UTC
Created attachment 359582 [details, diff]
docbook-xsl-stylesheets-1.78.0.ebuild.patch

I'm not sure if this will work or not?
Comment 3 Hans de Graaff gentoo-dev Security 2013-09-28 10:16:43 UTC
(In reply to Manuel Rüger from comment #1)

> Or we could add a virtual/any-ruby which is satisfied by || (
> any-existing-ruby-interpreter ) and make it depend on this.

Can't do that since we can't guarantee compatibility between versions. Each package needs to express its compatibility in some way.
Comment 4 Hans de Graaff gentoo-dev Security 2013-09-28 10:18:36 UTC
(In reply to Manuel Rüger from comment #2)
> Created attachment 359582 [details, diff] [details, diff]
> docbook-xsl-stylesheets-1.78.0.ebuild.patch
> 
> I'm not sure if this will work or not?

I think we should create a simple eclass that, for now, just manages the ruby dependencies based on USE_RUBY and RUBY_OPTIONAL.

We can extend it later with proper support for compiling bindings.

app-text/xmlformat is another candidate for this. Right now I've solved this same problem there by depending on || ( ruby:1.9 ruby:2.0 ).
Comment 5 Manuel Rüger (RETIRED) gentoo-dev 2013-09-30 23:43:23 UTC
(In reply to Hans de Graaff from comment #4)
> Right now I've solved this
> same problem there by depending on || ( ruby:1.9 ruby:2.0 ).
Thanks, I added a -r1 with the same fix.

Yeah the eclass approach will be of course the better way to solve this.