Rockman8 n00b
Joined: 19 Sep 2023 Posts: 29
|
Posted: Fri Oct 04, 2024 7:46 pm Post subject: Got 2 versions installed but it's causing conflict |
|
|
Hello,
I got 2 versions of google-protobuf installed, but when I run:
Code: | # vagrant -h
/usr/lib64/ruby/site_ruby/3.2.0/rubygems/specification.rb:2320:in `raise_if_conflicts': Unable to activate grpc-1.59.2, because google-protobuf-4.26.1 conflicts with google-protobuf (~> 3.24) (Gem::ConflictError)
from /usr/lib64/ruby/site_ruby/3.2.0/rubygems/specification.rb:1451:in `activate'
from /usr/lib64/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_gem.rb:63:in `block in gem'
from /usr/lib64/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_gem.rb:63:in `synchronize'
from /usr/lib64/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_gem.rb:63:in `gem'
from /usr/lib64/ruby/gems/3.2.0/gems/vagrant-2.4.1/bin/vagrant:95:in `block (2 levels) in <main>'
from /usr/lib64/ruby/gems/3.2.0/gems/vagrant-2.4.1/bin/vagrant:94:in `each'
from /usr/lib64/ruby/gems/3.2.0/gems/vagrant-2.4.1/bin/vagrant:94:in `block in <main>'
from /usr/lib64/ruby/gems/3.2.0/gems/vagrant-2.4.1/bin/vagrant:105:in `<main>' |
So to check what I got installed:
Code: | # eix google-protobuf
[U] dev-ruby/google-protobuf
Available versions:
(3) (~)3.21.12^t (~)***3.24.4^t (~)3.25.4^t
(0) (~)***4.26.1(0/4.26.1)^t (~)4.27.4(0/4.27.4)^t (~)4.28.0(0/4.28.0)^t
{doc test RUBY_TARGETS="ruby31 ruby32 ruby33"}
Installed versions: 3.25.4(3)^t(12:20:20 PM 08/30/2024)(-doc -test RUBY_TARGETS="ruby31 ruby32 -ruby33") 4.26.1(0/4.26.1)^t(08:29:41 AM 09/16/2024)(-doc -test RUBY_TARGETS="ruby31 ruby32 -ruby33")
Homepage: https://protobuf.dev/
Description: Protocol Buffers are Google's data interchange format
* = INSTALLED
|
But found out that dev-ruby/grpc only requires slot 3 version (is this correct?), 3.24.4 or perhaps 3.25.4
Code: | # equery d google-protobuf
dev-ruby/googleapis-common-protos-types-1.15.0 (ruby_targets_ruby31 ? >=dev-ruby/google-protobuf-3.18:3[ruby_targets_ruby31(-)])
(ruby_targets_ruby32 ? >=dev-ruby/google-protobuf-3.18:3[ruby_targets_ruby32(-)])
(ruby_targets_ruby33 ? >=dev-ruby/google-protobuf-3.18:3[ruby_targets_ruby33(-)])
(ruby_targets_ruby31 ? >=dev-ruby/google-protobuf-3.18:3[ruby_targets_ruby31(-)])
(ruby_targets_ruby32 ? >=dev-ruby/google-protobuf-3.18:3[ruby_targets_ruby32(-)])
(ruby_targets_ruby33 ? >=dev-ruby/google-protobuf-3.18:3[ruby_targets_ruby33(-)])
dev-ruby/grpc-1.59.2 (ruby_targets_ruby31 ? >=dev-ruby/google-protobuf-3.24.4[ruby_targets_ruby31(-)])
(ruby_targets_ruby32 ? >=dev-ruby/google-protobuf-3.24.4[ruby_targets_ruby32(-)])
(ruby_targets_ruby33 ? >=dev-ruby/google-protobuf-3.24.4[ruby_targets_ruby33(-)])
(ruby_targets_ruby31 ? >=dev-ruby/google-protobuf-3.24.4[ruby_targets_ruby31(-)])
(ruby_targets_ruby32 ? >=dev-ruby/google-protobuf-3.24.4[ruby_targets_ruby32(-)])
(ruby_targets_ruby33 ? >=dev-ruby/google-protobuf-3.24.4[ruby_targets_ruby33(-)]) |
Running depclean I got this
Code: | # emerge -pvc =google-protobuf-4.26.1
Calculating dependencies... done!
dev-ruby/google-protobuf-4.26.1 pulled in by:
dev-ruby/grpc-1.59.2 requires >=dev-ruby/google-protobuf-3.24.4[ruby_targets_ruby31(-)], >=dev-ruby/google-protobuf-3.24.4[ruby_targets_ruby32(-)]
>>> No packages selected for removal by depclean
Packages installed: 1547
Packages in world: 100
Packages in system: 49
Required packages: 1547
Number to remove: 0
|
Question: how do I solve this conflict? Shoud I just run
Code: | emerge -avqC =google-protobuf-4.26.1
revdep-rebuild |
and remove the unused version slot 0 (4.26.1)?
Also I found this:
https://bugs.gentoo.org/939826
It has been recently filled.
Is there another way? |
|