Skip to content

protobuf.pc pkgconfig file generated by protobuf's cmake build doesn't declare absl and utf8_range dependencies. #12439

@jtattermusch

Description

@jtattermusch

Starting from 22.x, protobuf now depends on absl and utf8_range, but the protobuf.pc pkgconfig file doesn't properly declare those dependencies.
As a result, the build is broken if someone installs protobuf and then wants to include it via pkgconfig (since they'd be missing absl and utf8_validity symbols when trying to link).

See https://github.com/protocolbuffers/protobuf/blob/f11079b01f075bc7c5b3286d85a8feca798c09e9/cmake/protobuf.pc.cmake

This issue breaks grpc's build-and-install "distribtest" that tries to build helloworld example with grpc and protobuf:
https://github.com/grpc/grpc/blob/24d83cda9bb1caaff9c03ace6f418e946e88c49d/examples/cpp/helloworld/Makefile#L28
(which runs pkgconfig to get a list of libraries to link against when building a project that depends on grpc++ and protobuf).

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions