[grpc] pkg-config files have upb
dependencies in the wrong order
#26751
Labels
category:port-bug
The issue is with a library, which is something the port should already support
Describe the bug
Compiling code that uses gRPC via
pkg-config
produces link errors. The list of-lupb_*
options seem to be in the wrong order.Environment
To Reproduce
I am sure this can happen with a smaller repro, but this is how I got it.
Expected behavior
A successful build.
Additional context
When building with CMake the
upb
dependencies are linked in this order:Whereas the port for gRPC applies a patch
vcpkg/ports/grpc/portfile.cmake
Line 20 in 8e3595f
which adds these dependencies to the
pkg-config
file in a different order:vcpkg/ports/grpc/00014-pkgconfig-upbdefs.patch
Line 10 in 8e3595f
I think it is a matter of reordering the
upb
libraries in the pkgconfig patch. I will try to submit a PR to fix this.The text was updated successfully, but these errors were encountered: