CMake issueshttps://gitlab.kitware.com/cmake/cmake/-/issues2018-02-20T16:28:55-05:00https://gitlab.kitware.com/cmake/cmake/-/issues/16293build rpath does not prevent picking up installed library when using PKG_CHEC...2018-02-20T16:28:55-05:00Dan Kegelbuild rpath does not prevent picking up installed library when using PKG_CHECK_MODULESOn Linux, cmake very nicely switches between build time rpath and installed rpath.
And it has PKG_CHECK_MODULES which lets you use libraries installed with .pc files.
So far so good.
But if one of the libraries you use via PKG_CHECK_MOD...On Linux, cmake very nicely switches between build time rpath and installed rpath.
And it has PKG_CHECK_MODULES which lets you use libraries installed with .pc files.
So far so good.
But if one of the libraries you use via PKG_CHECK_MODULES specifies an rpath,
and the library you're developing gets installed to the same place as one of those libraries,
you can end up with mysterious crashes.
Changing cmLocalGenerator::OutputLinkLibraries() to add the build rpath entries *before* the ones from CFLAGS resolves the problem.3.7.0Brad KingBrad Kinghttps://gitlab.kitware.com/cmake/cmake/-/issues/14362Can't add attr directive to CPACK_RPM_USER_FILELIST (some symbols not allowed)2018-12-07T09:58:20-05:00Kitware RobotCan't add attr directive to CPACK_RPM_USER_FILELIST (some symbols not allowed)This issue was created automatically from an original [Mantis Issue](https://cmake.org/Bug/view.php?id=14362). Further discussion may take place here.This issue was created automatically from an original [Mantis Issue](https://cmake.org/Bug/view.php?id=14362). Further discussion may take place here.3.7.0https://gitlab.kitware.com/cmake/cmake/-/issues/14332cpack >= 2.8.2 DEB generator produces invalid .deb when long filenames are in...2018-12-07T09:58:22-05:00Kitware Robotcpack >= 2.8.2 DEB generator produces invalid .deb when long filenames are involvedThis issue was created automatically from an original [Mantis Issue](https://cmake.org/Bug/view.php?id=14332). Further discussion may take place here.
---
When project installed files have long filenames (e.g. doxygen generated files),...This issue was created automatically from an original [Mantis Issue](https://cmake.org/Bug/view.php?id=14332). Further discussion may take place here.
---
When project installed files have long filenames (e.g. doxygen generated files), cpack creates a .deb which cannot be installed because it's internal archive seems corrupted.
```console
$ tar xvzf cpack-bug.tar.gz
$ cd cpack-bug
$ mkdir build && cd build
$ cmake ..
$ cpack -G DEB
$ sudo dpkg -i cpack_bug*.deb
(Reading database ... 536878 files and directories currently installed.)
Unpacking cpack_bug (from cpack_bug-1.1.0-Linux.deb) ...
dpkg: error processing cpack_bug-1.1.0-Linux.deb (--install):
corrupted filesystem tarfile - corrupted package archive
Errors were encountered while processing:
cpack_bug-1.1.0-Linux.deb
```
[cpack-bug.tar.gz](/uploads/0052dbd663f1662100449432865d9b1e/cpack-bug.tar.gz)3.7.0Domen VrankarDomen Vrankar