Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 697628

Summary: www-client/chromium should depend on dev-python/protobuf-python - ./../third_party/dom_distiller_js/protoc_plugins/json_values_converter.py: [...] ImportError: No module named protobuf.descriptor_pb2
Product: Gentoo Linux Reporter: Kévin Petit <kpet>
Component: Current packagesAssignee: Chromium Project <chromium>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info

Description Kévin Petit 2019-10-13 14:56:10 UTC
www-client/chromium can't be emerged on a system that doesn't have dev-python/protobuf-python installed yet it doesn't pull it as a dependency.

Reproducible: Always

Steps to Reproduce:
1. emerge www-client/chromium
2.
3.
Actual Results:  
Fails to build with the following error message:

Traceback (most recent call last):
  File "../../third_party/dom_distiller_js/protoc_plugins/json_values_converter.py", line 14, in <module>
    from util import plugin_protos, types, writer
  File "/var/tmp/portage/www-client/chromium-78.0.3904.34/work/chromium-78.0.3904.34/third_party/dom_distiller_js/protoc_plugins/util/plugin_protos.py", line 22, in <module>
    from google.protobuf.descriptor_pb2 import FieldDescriptorProto
ImportError: No module named protobuf.descriptor_pb2
--plugin_out: protoc-gen-plugin: Plugin failed with status code 1.
Protoc has returned non-zero status: 1

Expected Results:  
Successful build

Installing dev-python/protobuf-python enables the build to complete.
Comment 1 Stephan Hartmann (RETIRED) gentoo-dev 2019-10-13 16:01:29 UTC
Please attach emerge --info and full build log.
Comment 2 Kévin Petit 2019-10-13 16:55:18 UTC
Created attachment 592656 [details]
emerge --info
Comment 3 Stephan Hartmann (RETIRED) gentoo-dev 2019-10-16 15:06:37 UTC
Please attach the full build.log (compressed if needed). The snippet showing the failure is not enough to track down the problem.

protobuf-python is bundled with chromium sources (third_party/protobuf) and the dependency is therefore not needed.
Comment 4 Kévin Petit 2019-11-03 21:51:17 UTC
Thanks for having a look and sorry for the delay.

>protobuf-python is bundled with chromium sources (third_party/protobuf) and the dependency is therefore not needed.

Right, good to know it was just a workaround.

I've just uninstalled protobuf-python and the update to www-client/chromium-78.0.3904.87 succeeded. Either the ebuild was fixed or whatever was creating the issue on my system has gone away.

Since the version I reported this on no longer is part of the portage tree, I can't try that one again. Reject?