[cmake-developers] [CMake 0013009]: CPack DEB generator ignores top-level directories which do not contain a file

Mantis Bug Tracker mantis at public.kitware.com
Fri Mar 2 07:06:18 EST 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=13009 
====================================================================== 
Reported By:                George Noseevich
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13009
Category:                   CTest
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2012-03-02 07:06 EST
Last Modified:              2012-03-02 07:06 EST
====================================================================== 
Summary:                    CPack DEB generator ignores top-level directories
which do not contain a file
Description: 
When generating a list of top-level dirs to pass arguments to tar, CPack gets
the list of top-level dirs to install from the list of files to install.

This process overlooks empty top-level dirs and, generally, top-level dirs which
do not contain files (though may contain empty subdirs).

See
http://cmake.org/gitweb?p=cmake.git;a=blob;f=Source/CPack/cmCPackDebGenerator.cxx;h=b707e96aa46779ca1e8ede78e02c1e2d47f94087;hb=HEAD#l405

lines 405 to 427.

Steps to Reproduce: 
Use the sample CMakeLists.txt:
PROJECT(WTF)
INCLUDE(CPack)

install(DIRECTORY DESTINATION /wtf)
install(DIRECTORY DESTINATION /foo)
install(DIRECTORY DESTINATION /bar)

Issue the following command:
mkdir build ; cd build ; cmake .. -DCPACK_GENERATOR="DEB"
-DCPACK_DEBIAN_PACKAGE_MAINTAINER=" " ;  make ; cpack --verbose --debug

This will generate a package file WTF-0.1.1-Linux.deb. Let's see what's in
there:
dpkg -c WTF-0.1.1-Linux.deb 
Oooops: Nothing's in it (should be 3 empty dirs).

The debug output from cpack is attached.

Additional Information: 
I'm not sure if this bug is related to
http://public.kitware.com/Bug/view.php?id=8767 , but they are definitely not the
same.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-03-02 07:06 George NoseevichNew Issue                                    
2012-03-02 07:06 George NoseevichFile Added: cpack-debug-log.txt                
   
======================================================================




More information about the cmake-developers mailing list