[CMake] [CPack] RPM generator creates %dir for /usr/local/xxx

Eric Noulard eric.noulard at gmail.com
Wed Oct 22 07:42:20 EDT 2014


2014-10-22 13:20 GMT+02:00 Bill Somerville <bill at classdesign.com>:

> On 22/10/2014 12:14, Luc J. Bourhis wrote:
>
> Hi Luc,
>
>> With
>>
>> install(FILES xxxxx DESTINATION /usr/local/bin)
>>
>> CPack 2.8.12 generates a specs file featuring
>>
>> %dir "/usr/local"
>> %dir "/usr/local/bin"
>>
>> Then rpm -i the generated rpm file fails on Fedora 20 with
>>
>>         file /usr/local from install of
>> simple-install-in-usr-local-bin-0.1.1-1.i686 conflicts with file from
>> package filesystem-3.2-19.fc20.i686
>>         file /usr/local/bin from install of
>> simple-install-in-usr-local-bin-0.1.1-1.i686 conflicts with file from
>> package filesystem-3.2-19.fc20.i686
>>
>> What is it I am missing?
>>
> CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION
>

More docs on this for 2.8.12:

http://www.cmake.org/cmake/help/v2.8.12/cpack.html#variable:CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION

I guess that "/usr/local" may be added to
CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST default list values.

For Domen: see the history of this story here:
http://public.kitware.com/Bug/view.php?id=13609

-- 
Erk
L'élection n'est pas la démocratie -- http://www.le-message.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20141022/39438c42/attachment.html>


More information about the CMake mailing list