Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 939826 - app-emulation/vagrant-2.4.1 issue with dev-ruby/google-protobuf-4.28.0 (Unable to activate grpc-1.59.2, because google-protobuf-4.28.0 conflicts with google-protobuf (~> 3.24) (Gem::ConflictError))
Summary: app-emulation/vagrant-2.4.1 issue with dev-ruby/google-protobuf-4.28.0 (Unabl...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Guillaume Seren
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-18 18:27 UTC by Tomás Carvalho
Modified: 2024-10-07 02:58 UTC (History)
6 users (show)

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


Attachments
emerge --info (emerge-info,10.26 KB, text/plain)
2024-09-18 18:27 UTC, Tomás Carvalho
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomás Carvalho 2024-09-18 18:27:49 UTC
Created attachment 903296 [details]
emerge --info

Get this after running "vagrant"
``
/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.28.0 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>'
``
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-09-18 18:34:09 UTC
It might be that we just need to bump grpc.
Comment 2 Hans de Graaff gentoo-dev Security 2024-09-19 05:26:31 UTC
(In reply to Sam James from comment #1)
> It might be that we just need to bump grpc.

dev-ruby/grpc should depend on the "3" slot of google-protobuf as per its gemspec.
Comment 3 Tomás Carvalho 2024-09-19 09:42:51 UTC
(In reply to Hans de Graaff from comment #2)
> (In reply to Sam James from comment #1)
> > It might be that we just need to bump grpc.
> 
> dev-ruby/grpc should depend on the "3" slot of google-protobuf as per its
> gemspec.

I managed to bump the grpc (gems) version to 1.66.0 and vagrant seems to be working at the moment, here is an ebuild and manifest: https://github.com/n1ghtbyte/n1ght-overlay/tree/main/dev-ruby/grpc
Comment 4 Larry the Git Cow gentoo-dev 2024-10-05 06:12:50 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a6b73c958f0961b50d540da0601939ea4c7a868

commit 8a6b73c958f0961b50d540da0601939ea4c7a868
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-10-05 06:12:05 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-10-05 06:12:05 +0000

    dev-ruby/grpc: depend on correct dev-ruby/google-protobuf slot
    
    ... otherwise we get complaints when launching vagrant.
    
    Closes: https://bugs.gentoo.org/939826
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-ruby/grpc/grpc-1.59.2-r1.ebuild | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)
Comment 5 Larry the Git Cow gentoo-dev 2024-10-07 02:58:44 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e03266512d5d13af76ba1a514ee4c212460e551

commit 8e03266512d5d13af76ba1a514ee4c212460e551
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-10-07 02:57:53 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-10-07 02:57:53 +0000

    dev-ruby/grpc: improve google-protobuf dep for 1.66.0
    
    We don't need :3 anymore, the dep is <5 in the gemspec.
    
    Spotted by negril.
    
    Bug: https://bugs.gentoo.org/939826
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-ruby/grpc/{grpc-1.66.0.ebuild => grpc-1.66.0-r1.ebuild} | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)