Hi Everyone,

I'm trying to solve a rather peculiar (at least to me) artifact of CMake's 
install().
I have a binary file (elf) that I call install() on to copy it and later 
package with CPack.
Specifying no permissions results in a RPM extracting in 0444 mode, whereas 
specifying USE_SOURCE_PERMISSIONS or setting PERMISSIONS explicitly results in 
the binary being re-written with the current OS's elf utilities, which changes 
the binary and later leads to this error when I attempt to execute it:

"unsupported version 0 of Verneed record"

The file extracted from RPM has different MD5 checksum and size - and when I 
look into cmake_build/_CPack_Packages/Linux/RPM/..../executable I can see it's 
been already changed there.

Is there any way to make CMake keep permissions in RPM but not change the 
executable itself?

Best regards,
Lukasz
-- 

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