[cmake-developers] [CMake 0012863]: CPackRPM reports "warning: File listed twice" because it recurses directories in %files
Mantis Bug Tracker
mantis at public.kitware.com
Sun Jan 8 22:27:45 EST 2012
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
======================================================================
More information about the cmake-developers
mailing list