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

Bug 829127

Summary: dev-libs/libphonenumber: causes many apps to fail to compile after protobuf update
Product: Gentoo Linux Reporter: Maciej Mrozowski <reavertm>
Component: Current packagesAssignee: Gentoo KDE team <kde>
Status: RESOLVED NEEDINFO    
Severity: normal CC: sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://issuetracker.google.com/issues/210484307
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Example failed compilation after protobuf update, for kde-apps/kitinerary

Description Maciej Mrozowski gentoo-dev 2021-12-13 23:36:18 UTC
Created attachment 758836 [details]
Example failed compilation after protobuf update, for kde-apps/kitinerary

C++ variant of libphonenumber installs generated .pb.h files instead of provide .proto file only. .pb.h are specific to protobuf version and will not work with other version.
So when protobuf is updated, all packages depending on .pb.h, due to this injected dependency, won't build until libphonenumber it-self is reinstalled.
Comment 1 Maciej Mrozowski gentoo-dev 2021-12-13 23:38:20 UTC
This is really upstream bug that we can do little about as installed .pb.h is shockingly part of public API.
Creating bug for reference.
Comment 2 Andreas Sturmlechner gentoo-dev 2021-12-14 11:29:12 UTC
dev-libs/libphonenumber should have been rebuilt on protobuf (slot change) update. If it did not before starting compilation of libphonenumber revdeps, then this would be a portage bug, no?
Comment 3 Andreas Sturmlechner gentoo-dev 2021-12-16 13:55:29 UTC
Please reopen after

1) adding emerge --info
2) showing that the issue is not caused by wrong (re-)emerge ordering