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

Bill Somerville bill at classdesign.com
Wed Oct 22 07:20:46 EDT 2014


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
>
>
>
> -----
> --
> Luc J. Bourhis
Regards
Bill.


More information about the CMake mailing list