grpc++-dev doesn't install gRPCConfig.cmake

Bug #1935709 reported by Joonas Harjumäki
42
This bug affects 9 people
Affects Status Importance Assigned to Milestone
grpc (Ubuntu)
Triaged
Undecided
Unassigned
Jammy
Triaged
Undecided
Unassigned
Mantic
Invalid
Undecided
Unassigned

Bug Description

Because libgrpc++-dev-1.30.2-3 doesn't install gRPCConfig.cmake file, it is not possible to use find_package(gRPC) cmake command.

Revision history for this message
Adam Boseley (adam-boseley) wrote :

Not having this is super inconvenient. Please include the cmake config files.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in grpc (Ubuntu):
status: New → Confirmed
Revision history for this message
Dennis Klein (dklein222) wrote :

> Not having this is super inconvenient. Please include the cmake config files.

+1

Revision history for this message
Masanori Itoh (thatsdone) wrote :

No plan to release the fix?

I think this is a packaging problem and just adding one line in debian/debian/libgrpc-dev.install resolves this issue.

After

https://git.launchpad.net/ubuntu/+source/grpc/tree/debian/libgrpc-dev.install?h=applied/ubuntu/jammy#n9

appending below.

> usr/lib/*/cmake/

Revision history for this message
Marius Cirsta (mforce2) wrote :

I also came across this bug and indeed it's very inconvenient. Now I will have to manually install it.

Revision history for this message
Ken Dreyer (Red Hat) (kdreyer-redhat) wrote :
Revision history for this message
Mitchell Dzurick (mitchdz) wrote :

Only Jammy suffers from this, as Mantic+ contains the change to add the cmake files. This does look like it could be remedied with a single line change as alluded by Masanori in comment #4. The one line change is a partial of the debian commit when doing a libary transition[0].

I'm building a test package right now with that one line change to see if it's that simple.

[0] - https://salsa.debian.org/debian/grpc/-/commit/4ef1d4cd1f87dca78bc8f808b4f5c6c03bcdd261

Changed in grpc (Ubuntu):
status: Confirmed → Invalid
Changed in grpc (Ubuntu Mantic):
status: New → Invalid
Changed in grpc (Ubuntu Jammy):
status: New → Triaged
Revision history for this message
Mitchell Dzurick (mitchdz) wrote :

This bug does specifically mention libgrpc++-dev, but I only see the cmake files added in libgrpc-dev in the debian archives, so I assume that's good enough to only include the cmake files in libgrpc-dev and not libgrpc++-dev.

Changed in grpc (Ubuntu):
status: Invalid → Triaged
Revision history for this message
Mitchell Dzurick (mitchdz) wrote :

I haven't updated this for a bit, but I tried the aforementioned change in comment #7 in this PPA and it did not build - https://launchpad.net/~mitchdz/+archive/ubuntu/lp1935709-grpc-cmake-dev-files/+packages

Revision history for this message
Yan QiDong (yanqd0) wrote :

It is still missing in 2024-07.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.