<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:-webkit-standard;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
code
        {mso-style-priority:99;
        font-family:"Courier New";}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi again<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I just tried adding those additional two options, but I am getting the same error with lintian.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Is there something wrong in my shlibs or control file?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Matthew<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black">CMake <cmake-bounces@cmake.org> on behalf of "Gillman, Matthew" <m.gillman@ucl.ac.uk><br>
<b>Date: </b>Thursday, 10 October 2019 at 10:58<br>
<b>To: </b>Kerstin Keller <kerstin.s.keller@gmail.com>, "cmake@cmake.org" <cmake@cmake.org><br>
<b>Subject: </b>Re: [CMake] lintian errors when using cpack<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal"><span style="color:black">Hi Kerstin</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">Sorry, I forgot to list them. Right now I only have the following set:</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:#24292E">SET(CPACK_GENERATOR "DEB")</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:#24292E">SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "Me <<a href="mailto:me@me.com"><span style="color:purple">me@me.com</span></a>>")</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:#24292E">INCLUDE(CPack)</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">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.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">I’ve had a look and I can’t see a file called `postint`.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">Thanks for your help</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">Matthew</span><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black">CMake <cmake-bounces@cmake.org> on behalf of Kerstin Keller <kerstin.s.keller@gmail.com><br>
<b>Date: </b>Thursday, 10 October 2019 at 10:49<br>
<b>To: </b>"cmake@cmake.org" <cmake@cmake.org><br>
<b>Subject: </b>Re: [CMake] lintian errors when using cpack</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal">Hi,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">what <span style="font-family:"Courier New"">
CPACK_DEBIAN_*</span> options have you set and to what values have you set them? <o:p>
</o:p></p>
</div>
<div>
<p class="MsoNormal">I guess you're both using:<o:p></o:p></p>
</div>
<div>
<table class="MsoNormalTable" border="0" cellpadding="0">
<tbody>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt" id="gmail-m_112904220867045865m_6212921141463753802m_-5172694279862256428gmail-LC40">
<p class="MsoNormal"><span style="font-family:"Courier New"">set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)</span><o:p></o:p></p>
</td>
</tr>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt"></td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="font-family:"Courier New"">set(CPACK_DEBIAN_PACKAGE_GENERATE_SHLIBS ON)</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">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):<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">libfoo 5 foo (= 5.4.0-1)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">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?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Best,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Kerstin <o:p></o:p></p>
<div>
<div id="gmail-:16e">
<p class="MsoNormal"><span style="border:solid windowtext 1.0pt;padding:0cm"><img border="0" width="32" height="32" style="width:.3333in;height:.3333in" id="_x0000_i1025" src="cid:~WRD000.jpg" alt="Image removed by sender."></span><o:p></o:p></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<div>
<div>
<p class="MsoNormal">Am Do., 10. Okt. 2019 um 10:16 Uhr schrieb Gillman, Matthew <<a href="mailto:m.gillman@ucl.ac.uk">m.gillman@ucl.ac.uk</a>>:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt">
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:13.5pt;font-family:-webkit-standard;color:black">It's great that cpack can generate different packages - in my case, a .deb file for Debian.</span><span style="font-family:-webkit-standard;color:black"><br>
<br>
</span><span style="font-size:13.5pt;font-family:-webkit-standard;color:black">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:</span><span style="font-family:-webkit-standard;color:black"><br>
<br>
</span><span style="font-size:13.5pt;font-family:-webkit-standard;color:black">E: libsopt3.0: shlib-missing-in-control-file libsopt 3.0 for usr/lib/libsopt.so.3.0.1 </span><span style="font-family:-webkit-standard;color:black"><br>
</span><span style="font-size:13.5pt;font-family:-webkit-standard;color:black">E: libsopt3.0: package-must-activate-ldconfig-trigger usr/lib/libsopt.so.3.0.1</span><span style="font-family:-webkit-standard;color:black"><br>
<br>
</span><span style="font-size:13.5pt;font-family:-webkit-standard;color:black">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:</span><span style="font-family:-webkit-standard;color:black"><br>
<br>
</span><span style="font-size:13.5pt;font-family:-webkit-standard;color:black">libsopt 3 libsopt3.0</span><span style="font-family:-webkit-standard;color:black"><br>
<br>
</span><span style="font-size:13.5pt;font-family:-webkit-standard;color:black">And here is the relevant section of the control file:</span><span style="font-family:-webkit-standard;color:black"><br>
<br>
</span><span style="font-size:13.5pt;font-family:-webkit-standard;color:black">Package: libsopt3.0</span><span style="font-family:-webkit-standard;color:black"><br>
</span><span style="font-size:13.5pt;font-family:-webkit-standard;color:black">Priority: optional</span><span style="font-family:-webkit-standard;color:black"><br>
</span><span style="font-size:13.5pt;font-family:-webkit-standard;color:black">#Section: devel</span><span style="font-family:-webkit-standard;color:black"><br>
</span><span style="font-size:13.5pt;font-family:-webkit-standard;color:black">Section: libs</span><span style="font-family:-webkit-standard;color:black"><br>
</span><span style="font-size:13.5pt;font-family:-webkit-standard;color:black">#Version: 0.1.1</span><span style="font-family:-webkit-standard;color:black"><br>
</span><span style="font-size:13.5pt;font-family:-webkit-standard;color:black">Version: 3.0</span><span style="font-family:-webkit-standard;color:black"><br>
<br>
</span><span style="font-size:13.5pt;font-family:-webkit-standard;color:black">If anyone can help, I would be very grateful. Are there perhaps CPACK_DEBIAN_* options I could use to solve these issues?</span><span style="font-family:-webkit-standard;color:black"><br>
<br>
</span><span style="font-size:13.5pt;font-family:-webkit-standard;color:black">Thanks</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-family:-webkit-standard;color:black"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-family:-webkit-standard;color:black">Matthew</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
</div>
</div>
<p class="MsoNormal">-- <br>
<br>
Powered by <a href="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" target="_blank">
www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="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" target="_blank">
http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="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" target="_blank">
http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="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" target="_blank">
http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="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" target="_blank">
http://cmake.org/cmake/help/training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="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" target="_blank">
http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="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" target="_blank">https://cmake.org/mailman/listinfo/cmake</a><o:p></o:p></p>
</blockquote>
</div>
</div>
</body>
</html>