[cmake-developers] [CMake 0011595]: cpack can't generate RPMs

Mantis Bug Tracker mantis at public.kitware.com
Fri Dec 10 12:12:45 EST 2010


The following issue has been SUBMITTED. 
====================================================================== 
http://www.vtk.org/Bug/view.php?id=11595 
====================================================================== 
Reported By:                Benoît Bleuzé
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   11595
Category:                   (No Category)
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2010-12-10 12:12 EST
Last Modified:              2010-12-10 12:12 EST
====================================================================== 
Summary:                    cpack can't generate RPMs
Description: 
Generating tar packages works fine, but trying to generate RPM packages fails
all the time. message from the command line:

CPack Error: Problem copying the package:
/home/bbleuze/code/build/XXX/_CPack_Packages/Linux/RPM/XXX-0.2.0.rpm to
/home/bbleuze/code/build/XXX/XXX-0.2.0.rpm
CPack Error: Error when generating package: XXX


The generator tries to copy a list a files, surrounded by single quotes
(extracted from rpmbuild.err):

'[' -e /home/bbleuze/code/build/XXX/_CPack_Packages/Linux/RPM/XXX-0.2.0 ']'
+ mv '/home/bbleuze/code/build/XXX/_CPack_Packages/Linux/RPM/tmpBBroot/*'
/home/bbleuze/code/build/XXX/_CPack_Packages/Linux/RPM/XXX-0.2.0
mv: cannot stat
`/home/bbleuze/code/build/XXX/_CPack_Packages/Linux/RPM/tmpBBroot/*': No such
file or directory
error: Bad exit status from /var/tmp/rpm-tmp.7Die0i (%install)
    Bad exit status from /var/tmp/rpm-tmp.7Die0i (%install)

As you can see the file * doesn't exist. Basic bash mistake, globbing doesn't
work when surrounded by single quotes. 

Thank you for your help fixing this.

Benoît Bleuzé.

Steps to Reproduce: 
compile anything, run cpack -G RPM
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-12-10 12:12 Benoît Bleuzé  New Issue                                    
======================================================================




More information about the cmake-developers mailing list