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 ====================================================================== -- 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