I'm creating a package for a group of libraries, and I have a few questions
about where to install some files.
1. The project creates its own folder in /usr/lib called
/usr/lib/projectname, and installs its shared libraries there. What's the
policy on doing this vs. putting all of the libraries into /usr/lib?
1a. The project also puts a few .cmake files in its libdir folder. Upstream
informed me that some other projects use these files during their own build
process, so moving these cmake files could be problematic. I think that
putting .cmake files in /usr/lib might be a violation of linux filesystem
rules, but doing a "yum provides *lib/*.cmake" shows that some other
projects do this exact thing (install their libraries and cmake files into
their own directory under /usr/lib). This leads me to believe that this
practice is ok?
2. The project installs a bunch of other assorted cmake macros, which are
also used by other projects. These don't take the form of FindProject.cmake
though, so I don't think they belong in the system-wide cmake module path.
I should put those in /usr/share/projectname/cmake?
Thanks for the help,
Rich
Show replies by date