<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2017-12-30 6:29 GMT+01:00 Kornel Benko <span dir="ltr"><<a href="mailto:kornel@lyx.org" target="_blank">kornel@lyx.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="gmail-h5">
> 2) use gnu tar instead by setting CPACK_DEBIAN_ARCHIVE_TYPE to gnutar<br>
<br>
</div></div>Thanks, this is really nice. Meanwhile I found out what was going wrong.<br>
The package manager seems to not understand the way some filenames containing<br>
non-ascii chars are coded by cpack.<br>
I prepared a minimal example showing the effect here.<br>
<br>
1.) Create a dir and copy the attached to it<br>
2.) mkdir build; cd bild<br>
3.) cmake .. -DCPACK_BINARY_DEB:BOOL=ON<br>
4.) sudo dpkg -i wrongfilename-0.1.1-Linux.deb<br>
(Reading database ... 422665 files and directories currently installed.)<br>
Preparing to unpack wrongfilename-0.1.1-Linux.deb ...<br>
Unpacking wrongfilename (0.1.1) ...<br>
dpkg: error processing archive wrongfilename-0.1.1-Linux.deb (--install):<br>
<span class="gmail-"> corrupted filesystem tarfile - corrupted package archive<br>
</span><span class="gmail-"> Errors were encountered while processing:<br>
</span> wrongfilename-0.1.1-Linux.deb<br>
</blockquote><div><br></div><div>Thanks for the example.<br></div><div><br></div><div>The "use gnu tar option with CPack" produces a valid package for your example:</div><div>set(CPACK_DEBIAN_ARCHIVE_TYPE "gnutar")</div><div><br></div><div>It would seem that non gnu version doesn't handle non ascii filenames correctly. I'm not certain if it's an libarchive bug or expectedly unsupported feature (it would seem that it's a bug...) - I'll have to investigate further.</div><div><br></div><div>Thanks,</div><div>Domen<br></div></div></div></div>