Hi,

I'm assuming that you used something like:

install(CODE "
    EXECUTE_PROCESS(COMMAND ln -sf ${SOME_PATH}/subdir-version subdir
       WORKING_DIRECTORY ${LOCATION_WHERE_CPackRPM_IS_PACKAGING_YOUR_FILES}
       )
    " COMPONENT bin)

in your CMakeLists.txt

Currently CPackRPM doesn't automatically detect a symlink.

A workaround that you could use is to specify something like

set(CPACK_RPM_bin_USER_FILELIST "%config /subdir")

and this will force CPackRPM to treat the symlink as a config file.

Please file a bug report regarding CPackRPM treating symlinks to
directories as directories and not as symlinks.

Regards,
Domen


2014-10-15 22:59 GMT+02:00 Luc J. Bourhis <[email protected]>:

> According to  the answer to this bug report
> <https://bugzilla.redhat.com/show_bug.cgi?id=1005529>  , rpmbuild changed
> the way it deals with
>
>
>
> when foo or bar are actually symlinks. So it looks like CPack 2.8.12 has
> not
> been changed accordingly. This looks like bug report material, doesn't it?
>
>
>
>
> -----
> --
> Luc J. Bourhis
>
> --
> View this message in context:
> http://cmake.3232098.n2.nabble.com/CPack-RPM-generator-and-directory-symlink-tp7588751p7588754.html
> Sent from the CMake mailing list archive at Nabble.com.
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/cmake
>
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to