Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 334513 - >=dev-ruby/rdoc-2.5.11[ruby_targets_ruby19] required, no such USE flag
Summary: >=dev-ruby/rdoc-2.5.11[ruby_targets_ruby19] required, no such USE flag
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-26 00:22 UTC by Timothy Miller
Modified: 2010-08-26 06:16 UTC (History)
0 users

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 Timothy Miller 2010-08-26 00:22:39 UTC
I'm trying to do a world update, and I get this error:


emerge: there are no ebuilds built with USE flags to satisfy ">=dev-ruby/rdoc-2.5.11[ruby_targets_ruby19]".
!!! One of the following packages is required to complete your request:
- dev-ruby/rdoc-2.5.11 (Change USE: +ruby_targets_ruby19)
(dependency required by "dev-lang/ruby-1.9.2" [ebuild])
(dependency required by "world" [argument])

The problem is, there is no such USE flag for rdoc.  I tried this:


# emerge -av rdoc

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] virtual/rubygems-0-r4  RUBY_TARGETS="ruby18 -jruby -ree18 (-ruby19)" 0 kB
[ebuild  N    ] dev-ruby/rdoc-2.5.11  USE="-doc -test" RUBY_TARGETS="ruby18 -jruby -ree18 (-ruby19)" 177 kB

This seems to suggest that there is a "ruby19" USE flag but that it's blocked.

Reproducible: Always
Comment 1 Timothy Miller 2010-08-26 00:25:25 UTC
Also, I tried adding this to my make.conf:

RUBY_TARGETS="ruby18 ruby19"

But that didn't help.
Comment 2 Timothy Miller 2010-08-26 00:29:49 UTC
Finally, I did this:

echo "ruby_targets_ruby19" >> /etc/make.profile/use.unmask

And that didn't help either.
Comment 3 Andrew Brouwers 2010-08-26 00:32:34 UTC
Looks like the problem is that ruby 1.9{.2} is masked, not the flag itself.
Comment 4 Timothy Miller 2010-08-26 00:36:30 UTC
Note:  I already have Ruby 1.9 unmasked.  I also found docs online explaining that you need to also unmask this USE flag, but no instructions how.

http://www.gentoo.org/proj/en/prog_lang/ruby/index.xml
Comment 5 Timothy Miller 2010-08-26 00:49:29 UTC
Man, this was a bear to figure out.  I had to add this:

>=dev-ruby/rdoc-2.5.11 -ruby_targets_ruby19

to /etc/portage/profiles/package.use.mask

Doesn't a double negative seem really unintuitive here?
Comment 6 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2010-08-26 06:08:49 UTC
try this:

  echo "-ruby_targets_ruby19" >> /etc/portage/profile/use.mask
Comment 7 Alex Legler (RETIRED) archtester gentoo-dev Security 2010-08-26 06:16:13 UTC
(In reply to comment #5)
> Doesn't a double negative seem really unintuitive here?
> 

You have to distinguish package masks and use flag masks. The two are defined in separate places and you'll find yourself unmasking a package much more often than unmasking a USE flag. So there's no need for a proper interface for USE flag unmasking, you have to dig into the profile internals.

Lars' suggestion in comment #6 is the preferred 'solution', as it enables the flag system-wide.

At any rate, the dependencies should be fine here. We're doing our best to get those masks lifted.