The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=12863 
====================================================================== 
Reported By:                Deborah Pickett
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   12863
Category:                   CPack
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2012-01-08 22:27 EST
Last Modified:              2012-01-08 22:27 EST
====================================================================== 
Summary:                    CPackRPM reports "warning: File listed twice"
because it recurses directories in %files
Description: 
During RPM packing, the %files list in the .spec file contains all directory
ancestors of installed files (i.e., it includes /usr and /usr/bin as well as
/usr/bin/foo).  Because unadorned entries in %files that are directories will be
recursively searched, this causes /usr to bring in /usr/bin and /usr/bin/foo
again, and /usr/bin to bring in /usr/bin/foo again-again.  rpmbuld reports this
with "warning: File listed twice: /usr/bin/foo".

Steps to Reproduce: 
Pack any RPM that installs to a directory at least two levels under / (e.g.,
/usr/bin/foo).  Pack with debugging on: cpack -D CPACK_RPM_PACKAGE_DEBUG=1 -G
RPM

Additional Information: 
%dir directive for RPM spec:
http://www.rpm.org/max-rpm/s1-rpm-inside-files-list-directives.html#S3-RPM-INSIDE-DIR-DIRECTIVE
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-01-08 22:27 Deborah PickettNew Issue                                    
======================================================================

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to