<div dir="ltr"><div>Hi,</div><div><br></div><div>what <span style="font-family:monospace">CPACK_DEBIAN_*</span> options have you set and to what values have you set them? <br><br></div><div>I guess you're both using:</div><div><span style="font-family:monospace">
      </span><span style="font-family:monospace">
      </span><table><tbody><tr><td id="gmail-m_112904220867045865m_6212921141463753802m_-5172694279862256428gmail-LC40"><span style="font-family:monospace"><span>set</span>(CPACK_DEBIAN_PACKAGE_SHLIBDEPS <span>ON</span>)</span></td></tr><tr>
        </tr></tbody></table><span style="font-family:monospace"><span>set</span>(CPACK_DEBIAN_PACKAGE_GENERATE_SHLIBS <span>ON</span>)</span></div><div><br></div><div>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):</div><div><br></div><div>libfoo 5 foo (= 5.4.0-1)</div><div><br></div><div>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?</div><div><br></div><div>Best,</div><div>Kerstin<div class="gmail-yj6qo gmail-ajU"><div id="gmail-:16e" class="gmail-ajR" tabindex="0"><img class="gmail-ajT" src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif"></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">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>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div lang="EN-GB">
<div class="gmail-m_-5575484617878043439WordSection1">
<p class="MsoNormal"><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-size:11pt;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-size:11pt;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-size:11pt;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-size:11pt;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-size:11pt;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-size:11pt;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-size:11pt;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-size:11pt;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-size:11pt;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-size:11pt;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-size:11pt;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-size:11pt;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-size:11pt;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-size:11pt;font-family:-webkit-standard;color:black"><br>
<br>
</span><span style="font-size:13.5pt;font-family:-webkit-standard;color:black">Thanks</span><span style="font-size:11pt"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:-webkit-standard;color:black"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:-webkit-standard;color:black">Matthew<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>

-- <br>
<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" 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="http://cmake.org/cmake/help/support.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://cmake.org/mailman/listinfo/cmake" rel="noreferrer" target="_blank">https://cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div>