[CMake] lintian errors when using cpack

Gillman, Matthew m.gillman at ucl.ac.uk
Thu Oct 10 06:58:57 EDT 2019


Hi again

I just tried adding those additional two options, but I am getting the same error with lintian.

Is there something wrong in my shlibs or control file?

Thanks

Matthew

From: CMake <cmake-bounces at cmake.org> on behalf of "Gillman, Matthew" <m.gillman at ucl.ac.uk>
Date: Thursday, 10 October 2019 at 10:58
To: Kerstin Keller <kerstin.s.keller at gmail.com>, "cmake at cmake.org" <cmake at cmake.org>
Subject: Re: [CMake] lintian errors when using cpack

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 <me at me.com<mailto:me at 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-bounces at cmake.org> on behalf of Kerstin Keller <kerstin.s.keller at gmail.com>
Date: Thursday, 10 October 2019 at 10:49
To: "cmake at cmake.org" <cmake at 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.gillman at ucl.ac.uk<mailto:m.gillman at 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%7C7af53a3260e34d95cbdd08d74d6871d4%7C1faf88fea9984c5b93c9210a11d9a5c2%7C0%7C0%7C637062983296720941&sdata=27uQZAxnvKtx%2FWi3enyF%2B%2FZdX98BaFtsSRh75pH9o%2FE%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%7C7af53a3260e34d95cbdd08d74d6871d4%7C1faf88fea9984c5b93c9210a11d9a5c2%7C0%7C0%7C637062983296730938&sdata=ZTnerODu1jjeL15dkZO8YR7Nyc30mS%2FSsFTRaffI2qo%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%7C7af53a3260e34d95cbdd08d74d6871d4%7C1faf88fea9984c5b93c9210a11d9a5c2%7C0%7C0%7C637062983296740934&sdata=l3ZZB8ImyXa9lriUnyJhEqcDhzPUt1tyO27bvk7RyGc%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%7C7af53a3260e34d95cbdd08d74d6871d4%7C1faf88fea9984c5b93c9210a11d9a5c2%7C0%7C0%7C637062983296740934&sdata=jX3OclfxBoWlrOS49ujteTgPZNM0As5%2FBVXRt0hSD4E%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%7C7af53a3260e34d95cbdd08d74d6871d4%7C1faf88fea9984c5b93c9210a11d9a5c2%7C0%7C0%7C637062983296750923&sdata=C9JzXEis3IdndLDbrGcIq8jVlgZDCgK7zPAEWTrdRIU%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%7C7af53a3260e34d95cbdd08d74d6871d4%7C1faf88fea9984c5b93c9210a11d9a5c2%7C0%7C0%7C637062983296760920&sdata=eWXUtovdiIe%2B%2FsyTXthKPxkYSV6xAfciZY8YDvDAnek%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%7C7af53a3260e34d95cbdd08d74d6871d4%7C1faf88fea9984c5b93c9210a11d9a5c2%7C0%7C0%7C637062983296760920&sdata=Fogh7rY4ouNZB282pSiftNmytXv4F7CxSjjnZYJpbSE%3D&reserved=0>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20191010/8c2bfbf6/attachment-0001.html>


More information about the CMake mailing list