FS#60208 - Add static library to docopt

Attached to Project: Community Packages
Opened by Ruben (TiD91) - Wednesday, 26 September 2018, 18:25 GMT
Last edited by Eli Schwartz (eschwartz) - Wednesday, 26 September 2018, 18:40 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
The current version of the docopt package, the C++11 port of docopt, ships only with the dynamic library. Could it be possible to include also the static library (linked to the docopt_s targed within CMake).


Additional info:
* Package version: 0.6.2-1

CMake Error at /usr/lib64/cmake/docopt/docopt-targets.cmake:90 (message):
The imported target "docopt_s" references the file

"/usr/lib/libdocopt.a"

but this file does not exist. Possible reasons include:

* The file was deleted, renamed, or moved to another location.

* An install or uninstall procedure did not complete successfully.

* The installation package was faulty and contained

"/usr/lib64/cmake/docopt/docopt-targets.cmake"

but not all the files it references.


Steps to reproduce:
* Use find_package(docopt)
* Link a library with the docopt_s target in CMake
This task depends upon

Closed by  Eli Schwartz (eschwartz)
Wednesday, 26 September 2018, 18:40 GMT
Reason for closing:  Upstream
Additional comments about closing:  If upstream's ill-advised cmake files are broken, that's no reason to ship useless static libraries against distro policy. Complain to upstream to get these fixed.
Comment by Eli Schwartz (eschwartz) - Wednesday, 26 September 2018, 18:39 GMT
CMake sucks horribly, use pkg-config?

We have a policy to not ship both static and shared libraries, and any sane build system knows how to respect that. Maybe CMake's not-in-house reinvention of the entire concept of system dependency management, is not sane then. Because if it is hardcoding files that are in no respect guaranteed to exist, then it's broken.

Loading...