Hi Kerstin Sorry, I forgot to list them. Right now I only have the following set:
SET(CPACK_GENERATOR "DEB") SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "Me <m...@me.com<mailto:m...@me.com>>") INCLUDE(CPack) I will try adding the two you suggest and see how it goes, but I wouldn’t be surprised if there were others I need too. I’ve had a look and I can’t see a file called `postint`. Thanks for your help Matthew From: CMake <cmake-boun...@cmake.org> on behalf of Kerstin Keller <kerstin.s.kel...@gmail.com> Date: Thursday, 10 October 2019 at 10:49 To: "cmake@cmake.org" <cmake@cmake.org> Subject: Re: [CMake] lintian errors when using cpack Hi, what CPACK_DEBIAN_* options have you set and to what values have you set them? I guess you're both using: set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON) set(CPACK_DEBIAN_PACKAGE_GENERATE_SHLIBS ON) When I generate the file for my lib it looks a bit different (e.g. it pins the package to a certain version, but not sure if it is required, and I have never run the linter on the package): libfoo 5 foo (= 5.4.0-1) Also, does CMake generate the `postinst` control file for you? That one should trigger the ldconfig execution, but maybe something is not correct there? How do other packages trigger the ldconfig execution? Best, Kerstin [Image removed by sender.] Am Do., 10. Okt. 2019 um 10:16 Uhr schrieb Gillman, Matthew <m.gill...@ucl.ac.uk<mailto:m.gill...@ucl.ac.uk>>: It's great that cpack can generate different packages - in my case, a .deb file for Debian. But if you then want to submit the generated .deb file to be part of Debian's official release, you have to run the lintian tool, and make sure you pass its checks. I have managed manually to fix some errors in the .deb file (which underneath is just an ar archive), and doubtless other warn ins and errors could be solved using appropriate CPACK_DEBIAN_* options in the CMakeLists.txt file. But I have a couple of errors which I don't know how to fix: E: libsopt3.0: shlib-missing-in-control-file libsopt 3.0 for usr/lib/libsopt.so.3.0.1 E: libsopt3.0: package-must-activate-ldconfig-trigger usr/lib/libsopt.so.3.0.1 Probably the shilbs file and control file need correcting, but I can't find anything which makes sense to me. Here is the shills file: libsopt 3 libsopt3.0 And here is the relevant section of the control file: Package: libsopt3.0 Priority: optional #Section: devel Section: libs #Version: 0.1.1 Version: 3.0 If anyone can help, I would be very grateful. Are there perhaps CPACK_DEBIAN_* options I could use to solve these issues? Thanks Matthew -- Powered by www.kitware.com<https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com&data=02%7C01%7C%7C779d99b428044f5a39fc08d74d671237%7C1faf88fea9984c5b93c9210a11d9a5c2%7C0%7C0%7C637062977394466382&sdata=hdxrwZ4TljDdtx0UDmIbb7v8EJIwSf4LO1te2xOsLYE%3D&reserved=0> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ<https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.cmake.org%2FWiki%2FCMake_FAQ&data=02%7C01%7C%7C779d99b428044f5a39fc08d74d671237%7C1faf88fea9984c5b93c9210a11d9a5c2%7C0%7C0%7C637062977394466382&sdata=LAAu%2FNcTKAz34CoUGJTRhRQd8T%2FP4Uc6wIkDKme3YVU%3D&reserved=0> Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html<https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcmake.org%2Fcmake%2Fhelp%2Fsupport.html&data=02%7C01%7C%7C779d99b428044f5a39fc08d74d671237%7C1faf88fea9984c5b93c9210a11d9a5c2%7C0%7C0%7C637062977394476374&sdata=DGtLWwPqonoNbh7R7utkUkcMlkRUKCes6WZvv3RIhJ0%3D&reserved=0> CMake Consulting: http://cmake.org/cmake/help/consulting.html<https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcmake.org%2Fcmake%2Fhelp%2Fconsulting.html&data=02%7C01%7C%7C779d99b428044f5a39fc08d74d671237%7C1faf88fea9984c5b93c9210a11d9a5c2%7C0%7C0%7C637062977394476374&sdata=31CnhXrwnxGkI1yu6C6VeodTM8QcDYkWaMpRayZipQc%3D&reserved=0> CMake Training Courses: http://cmake.org/cmake/help/training.html<https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcmake.org%2Fcmake%2Fhelp%2Ftraining.html&data=02%7C01%7C%7C779d99b428044f5a39fc08d74d671237%7C1faf88fea9984c5b93c9210a11d9a5c2%7C0%7C0%7C637062977394486370&sdata=gVSinZS6RBiWpctn84lhx3QRWAbquzvdpC%2F7QCPnq%2FE%3D&reserved=0> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html<https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html&data=02%7C01%7C%7C779d99b428044f5a39fc08d74d671237%7C1faf88fea9984c5b93c9210a11d9a5c2%7C0%7C0%7C637062977394486370&sdata=vp21Rba6ST5jpvnEfjbHjJDmjLnRV0dZMF4TKWhOXZM%3D&reserved=0> Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcmake.org%2Fmailman%2Flistinfo%2Fcmake&data=02%7C01%7C%7C779d99b428044f5a39fc08d74d671237%7C1faf88fea9984c5b93c9210a11d9a5c2%7C0%7C0%7C637062977394496364&sdata=3FKsJ0velaaPw8oPFS0fn7n75mLNccqh%2FohI2AQ7LD4%3D&reserved=0>
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake