1 |
On 2022.10.11 19:41, Michael wrote: |
2 |
> On Tuesday, 11 October 2022 22:43:02 BST Neil Bothwick wrote: |
3 |
> > On Tue, 11 Oct 2022 16:02:52 -0400, Jack wrote: |
4 |
> > > For example, "emerge -1 dev-ruby/thor" gives me |
5 |
> > > |
6 |
> > > !!! Problem resolving dependencies for dev-ruby/thor |
7 |
> > > ... done! |
8 |
> > > |
9 |
> > > !!! The ebuild selected to satisfy "dev-ruby/thor" has unmet |
10 |
> > > requirements. |
11 |
> > > - dev-ruby/thor-1.2.1::gentoo USE="-doc -test" ABI_X86="(64)" |
12 |
> > > RUBY_TARGETS="-ruby27 (-ruby30) (-ruby31)" |
13 |
> > |
14 |
> > ruby30 and ruby31 are in parentheses, which means they are not |
15 |
> available. |
16 |
> > |
17 |
> > > The following REQUIRED_USE flag constraints are unsatisfied: |
18 |
> > > any-of ( ruby_targets_ruby27 ruby_targets_ruby30 |
19 |
> > > |
20 |
> > > ruby_targets_ruby31 ) |
21 |
> > > |
22 |
> > > I would expect USE_RUBY="ruby31" to translate into |
23 |
> ruby_targets_ruby31, |
24 |
> > > but even explicitly adding that to package.use has no effect. |
25 |
> > |
26 |
> > The ebuild contains USE_RUBY="ruby26 ruby27" ruby_add_bdepend " |
27 |
> > |
28 |
> > Have you tried setting RUBY_TARGETS to ruby27 for this package? |
29 |
> > |
30 |
> > I must say I find the whole RUBY_* thing even more troublesome than |
31 |
> the |
32 |
> > PYTHON_* stuff, and that's saying something! |
33 |
> |
34 |
> As per the emerge man page: |
35 |
> |
36 |
> - prefix not enabled (either disabled or removed) |
37 |
> [snip...] |
38 |
> |
39 |
> () circumfix forced, masked, or removed |
40 |
> |
41 |
> On a stable system with default ruby targets, I get this: |
42 |
> |
43 |
> [ebuild N ] dev-ruby/thor-1.2.1:1::gentoo USE="-doc -test" |
44 |
> RUBY_TARGETS="ruby27 (-ruby30) (-ruby31)" 95 KiB |
45 |
> |
46 |
> and, dev-lang/ruby-2.7.6:2.7 is drawn in as a build dependency: |
47 |
> |
48 |
> [ebuild N ] dev-lang/ruby-2.7.6:2.7::gentoo USE="gdbm ipv6 rdoc |
49 |
> ssl - |
50 |
> berkdb -debug -doc -examples -jemalloc -jit -rubytests -socks5 |
51 |
> -static-libs - |
52 |
> systemtap -tk -xemacs" 11,802 KiB |
53 |
> |
54 |
> NOTE: ruby 3.0 and 3.1 are marked as testing. |
55 |
I explicitly have ruby-3.1 unmasked with "=dev-lang/ruby-3.1.2-r1 |
56 |
~amd64" in package.accept_keyword, and USE_RUBY="ruby31" in make.conf. |
57 |
I do not see any reference to ruby in the profile. Is there somewhere |
58 |
else I need to unmask something? emerge --info also says |
59 |
'RUBY_TARGETS="ruby31"' as its only reference to a specific ruby |
60 |
version. |
61 |
|
62 |
As I said in my reply to Neil, why would this happen in just a handful |
63 |
of packages, but not in over thirty others? mini_mime is the other |
64 |
problem package, and it does not use ruby_add_bdepend so there is only |
65 |
one line with USE_RUBY: 'USE_RUBY="ruby26 ruby27 ruby30 ruby31"'. |
66 |
|
67 |
So - why is ruby31 disabled for (so far) only these two packages? |
68 |
(The other packages which are failing depend on one of these two.) |
69 |
|
70 |
Jack |