Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#59883 - [protobuf] Add Cmake files

Attached to Project: Arch Linux
Opened by greg (cheeseboy) - Thursday, 30 August 2018, 19:26 GMT
Last edited by Doug Newgard (Scimmia) - Thursday, 20 September 2018, 15:35 GMT
Task Type Feature Request
Category Packages: Extra
Status Assigned
Assigned To Lukas Fleischer (lfleischer)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Current package doesn't install the cmake files for protobuf.

File is here https://github.com/protocolbuffers/protobuf/blob/master/cmake/protobuf-config.cmake.in

Cmake has https://cmake.org/cmake/help/v3.9/module/FindProtobuf.html but it needs protobuf-config.cmake to be installed for it to work
This task depends upon

Comment by Eli Schwartz (eschwartz) - Thursday, 30 August 2018, 19:40 GMT
Sounds like an upstream issue, CMake should either provide their own *working* FindProtobuf module, or they should use the standard pkg-config files (but oh wait, cmake hates pkg-config and decided to reimplement it).

How should we install the cmake files? Currently we use the autotools build system to install protobuf...
Comment by greg (cheeseboy) - Thursday, 30 August 2018, 19:48 GMT
Just copy that file to correct dir using install and sed the things in the in file you need to set?
Comment by Eli Schwartz (eschwartz) - Thursday, 30 August 2018, 20:20 GMT
If they're just using configure_file...

Have you considered submitting an upstream bug report asking them to install the file when using autotools as well?
Comment by Antonio Rojas (arojas) - Thursday, 30 August 2018, 20:45 GMT
"it needs protobuf-config.cmake to be installed for it to work"

This doesn't make sense. Cmake uses *either* FindFoo.cmake files provided by cmake (or one of its extensions such as ECM) *or* FooConfig.cmake files provided by the packages themselves, but not both. And FWIW, find_package(Protobuf) works fine here with the cmake-provided module.

Loading...