[cmake-developers] [CMake 0012864]: CPackRPM additional variable CPACK_RPM_FILTER_FILELIST to remove well-known directories from %files list

Mantis Bug Tracker mantis at public.kitware.com
Sun Jan 8 22:44:09 EST 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=12864 
====================================================================== 
Reported By:                Deborah Pickett
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   12864
Category:                   CPack
Reproducibility:            N/A
Severity:                   feature
Priority:                   low
Status:                     new
====================================================================== 
Date Submitted:             2012-01-08 22:44 EST
Last Modified:              2012-01-08 22:44 EST
====================================================================== 
Summary:                    CPackRPM additional variable
CPACK_RPM_FILTER_FILELIST to remove well-known directories from %files list
Description: 
As discussed in 0012305, including well-known directories in an RPM .spec %files
list can lead to portability problems.

Example:

%files
/etc
/etc/init.d
/etc/init.d/mydaemon

The above innocuous snippet will lead to this unhelpful error when installing on
Red Hat (but not on Suse):

file /etc/init.d from install of mypackage-1.x86_64 conflicts with file from
package chkconfig-1.3.30.2-2.el5.x86_64

Portable RPMs need to omit "well-known" directories which are certain to be
installed on the destination system, like /usr, /etc, /etc/init.d, /dev.  This
is even more important when the directory is a symbolic link (like /etc/init.d)
or a special filesystem (like /dev).

Feature request: define a variable CPACK_RPM_FILTER_FILELIST which contains a
list of absolute paths that are to be suppressed from the %files list.  By
default it should contain "/usr";"/usr/lib";"/etc";"/etc/init.d";"/lib"
(negotiable).  Also allow user to define additional files/directories in
variable CPACK_RPM_FILTER_USER_FILELIST, which are treated similarly.

Additional Information: 
Probably depends on 0012863
====================================================================== 

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




More information about the cmake-developers mailing list