[cmake-developers] [CMake 0014391]: CPack crashes when creating a debian package

Mantis Bug Tracker mantis at public.kitware.com
Fri Sep 6 11:34:29 EDT 2013


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=14391 
====================================================================== 
Reported By:                Tobe Deprez
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14391
Category:                   CPack
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2013-09-06 11:34 EDT
Last Modified:              2013-09-06 11:34 EDT
====================================================================== 
Summary:                    CPack crashes when creating a debian package
Description: 
When I run CPack to create a debian package, I get the following error:
CPack Error: Problem running tar command: /usr/bin/fakeroot "/usr/bin/cmake" -E
tar cfz data.tar.gz  ./usr
Please check
/bestanden/tobe/Dropbox/Projects/netlogin/build/_CPack_Packages/Linux/DEB/Deb.log
for errors
CPack Error: Problem compressing the directory

The file _CPack_Packages/Linux/DEB/Deb.log contains the following:
# Run command: /usr/bin/fakeroot "/usr/bin/cmake" -E tar cfz data.tar.gz  ./usr
# Working directory:
/bestanden/tobe/Dropbox/Projects/netlogin/build/_CPack_Packages/Linux/DEB/netlogin-0.1.1-Linux
# Output:
getopt: ongeldige optie -- 'E'
fakeroot, create a fake root environment.
   usage: fakeroot [-l|--lib fakerootlib] [-f|--faked fakedbin]
                   [-i file] [-s file] [-u|--unknown-is-real]
		   [-b|--fd-base fd] [-h|--help] [-v|--version]
                   [--] [command]

It seems fakeroot gets confused by the -E option. The probem is solved by adding
'--' before the fakeroot command in the file
Source/CPack/cmCPackDebGenerator.cxx (I've added a diff between the origal and
my changed file .

Steps to Reproduce: 
-Create a project which can create a debian package
-run 'cmake .'
-run 'make'
-run 'make package'
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2013-09-06 11:34 Tobe Deprez    New Issue                                    
2013-09-06 11:34 Tobe Deprez    File Added: diff                             
======================================================================




More information about the cmake-developers mailing list