[cmake-developers] [CMake 0013468]: Can't add attr directive to CPACK_RPM_USER_FILELIST
Mantis Bug Tracker
mantis at public.kitware.com
Tue Aug 14 04:32:05 EDT 2012
The following issue has been SUBMITTED.
======================================================================
http://www.cmake.org/Bug/view.php?id=13468
======================================================================
Reported By: Viktor Dubrovsky
Assigned To:
======================================================================
Project: CMake
Issue ID: 13468
Category: CPack
Reproducibility: always
Severity: crash
Priority: normal
Status: new
======================================================================
Date Submitted: 2012-08-14 04:32 EDT
Last Modified: 2012-08-14 04:32 EDT
======================================================================
Summary: Can't add attr directive to CPACK_RPM_USER_FILELIST
Description:
When I try to add directive "%attr(777,-,-) /path/to/file" to
CPACK_RPM_USER_FILELIST rpmbuid crashes, because cpack doesn't correct parse
this string.
I get in .spec file this stuff:
%config "/path/to/file"
%attr( "%attr(777,-,-) /path/to/file"
Steps to Reproduce:
Add "%attr(777,-,-) /path/to/file" to CPACK_RPM_USER_FILELIST.
Additional Information:
It's simply to fix. Expand regexp in 712 and 713 lines CPackRPM.cmake file with
characters "0-9", "," and "-".
I substitute those regexps by mine:
string(REGEX REPLACE "%[A-Za-z0-9\(\)-\,]* " "" F_PATH ${F})
string(REGEX MATCH "%[A-Za-z0-9\(\)-\,]*" F_PREFIX ${F})
And all goes to work fine!
Sorry for my bad english :)
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2012-08-14 04:32 Viktor DubrovskyNew Issue
======================================================================
More information about the cmake-developers
mailing list