[cmake-developers] Problem with created debian package

Kornel Benko kornel at lyx.org
Fri Dec 29 08:20:57 EST 2017


All of sudden, cmake(cpack) started producing wrong debian packages for one project.
This is the output of debian package manager:

	dpkg: warning: downgrading lyx24 from 2.4.0-50424git-g3a4b233 to 2.4.0-50422git-gd6fb2ab
	(Reading database ... 422667 files and directories currently installed.)
	Preparing to unpack lyx24-2.4.0-50422git-Linux.deb ...
	Unpacking lyx24 (2.4.0-50422git-gd6fb2ab) over (2.4.0-50424git-g3a4b233) ...
	dpkg: error processing archive lyx24-2.4.0-50422git-Linux.deb (--install):
	 corrupted filesystem tarfile - corrupted package archive
	dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
	Errors were encountered while processing:
	 lyx24-2.4.0-50422git-Linux.deb

Analysing the data.tar.gz gives no hint. What helps is a sequence of commands using the system's 'tar'.

	# ar xv  lyx24-2.4.0-50422git-Linux.deb  data.tar.gz
	# sudo tar axf data.tar.gz
	# tar cf data.tar ./usr
	# gzip -f data.tar
	# ar rv  lyx24-2.4.0-50422git-Linux.deb  data.tar.gz

Now everything is OK.
Other projects do not show this behaviour. 
This is cmake 3.10.20171229-g3e1f5b11, but the same happens with earlier version.

	Kornel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part.
URL: <https://cmake.org/pipermail/cmake-developers/attachments/20171229/5d9805b8/attachment.sig>


More information about the cmake-developers mailing list