Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 715444 - net-libs/google-cloud-cpp: protobuf dependency conflicts
Summary: net-libs/google-cloud-cpp: protobuf dependency conflicts
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jason Zaman
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-30 14:37 UTC by Michael Orlitzky
Modified: 2020-04-01 18:26 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 Michael Orlitzky gentoo-dev 2020-03-30 14:37:13 UTC
I'm not sure how to handle this (can google-cloud-cpp use a newer version of protobuf?), but the version of protobuf needed by the latest google-cloud-cpp-0.10.0-r1 now conflicts with the stable version that other packages are trying to pull in. For example,

  !!! Multiple package instances within a single package slot have been pulled
  !!! into the dependency graph, resulting in a slot conflict:

  dev-libs/protobuf:0
  ...                                                                                                                                                                                                                                                     
    dev-libs/protobuf:0/21= required by (net-libs/google-cloud-cpp-0.10.0-
  r1:0/0::gentoo, installed) USE=""

  ~dev-libs/protobuf-3.11.4 required by (dev-python/protobuf-python-3.11.4:0
  /22::gentoo, ebuild scheduled for merge) USE="" PYTHON_TARGETS="python3_6 
  -python2_7 -python3_7 (-python3_8)"
Comment 1 Michael Orlitzky gentoo-dev 2020-03-30 14:38:01 UTC
(that's the only version of protobuf-python in the tree)
Comment 2 Jason Zaman gentoo-dev 2020-03-30 18:52:49 UTC
o.O net-libs/google-cloud-cpp depends on dev-libs/protobuf:= ?

do you need to emerge -Du @world maybe?
Comment 3 Michael Orlitzky gentoo-dev 2020-03-30 18:54:50 UTC
I'm not crazy, you're crazy =)

  $ grep protobuf google-cloud-cpp-0.10.0.ebuild
  RDEPEND="dev-libs/protobuf:=
Comment 4 Jason Zaman gentoo-dev 2020-03-31 02:45:15 UTC
oh, no i meant like it just has :=, it doesn't have any version dependency on protobuf just the normal subslot rebuild.

It should just work with any version, it just needs to be rebuilt after protobuf is upgraded. I dont know why portage doesn't just rebuild it tho? Maybe there's some other dep that is holding protobuf back? cuz google-cloud-cpp doesnt care.
Comment 5 Michael Orlitzky gentoo-dev 2020-03-31 14:05:48 UTC
Oh, portage is just lying to me. Why didn't I think of that?

Ultimately this was user error: I originally installed google-cloud-cpp with ACCEPT_KEYWORDS="~amd64", but didn't add it to my package.accept_keywords. Now portage needs to rebuild it, but it won't because it's not keyworded. And instead of saying that, it's making up some nonsense about the version of protobuf (dev-libs/protobuf:0/21= is what's cached in the VDB). After keywording it, emerge -puDN @world looks like it might do the right thing.

Sorry for the noise.
Comment 6 Michael Orlitzky gentoo-dev 2020-04-01 18:26:03 UTC
The rebuild failed, reminding me of why I used a --oneshot emerge in the first place: https://bugs.gentoo.org/691352

Please take a look at that if you get some time =)