[cmake-developers] CPackRPM not dealing correctly with symlinks
Attila Krasznahorkay
attila.krasznahorkay at gmail.com
Wed Mar 23 09:13:22 EDT 2016
Hi Brad,
I did. Then I get:
CMake Error at /afs/cern.ch/work/k/krasznaa/public/cmake/3.5.0/share/cmake-3.5/Modules/CPackRPM.cmake:981 (string):
string begin index: 164 is out of range 0 - 156
Call Stack (most recent call first):
/afs/cern.ch/work/k/krasznaa/public/cmake/3.5.0/share/cmake-3.5/Modules/CPackRPM.cmake:1625 (cpack_rpm_prepare_install_files)
/afs/cern.ch/work/k/krasznaa/public/cmake/3.5.0/share/cmake-3.5/Modules/CPackRPM.cmake:1787 (cpack_rpm_generate_package)
You can find the full output here:
http://atlas-computing.web.cern.ch/atlas-computing/links/distDirectory/nightlies/experimentalWebArea/nicos_web_areaCMAKE64BS6G49TrgOpt/NICOS_Log_rel_3/nicos_rpm_build.html
Note that when I tried to build the project in a build area with a shorter path, then the RPM building succeeded. Just because by chance in that case in the expression
string(SUBSTRING "${SYMLINK_POINT_}" ${WDR_LEN_} -1 SYMLINK_POINT_WD_)
the work directory length was shorter than the length of the path outside of the project.
Of course this is the code that we're talking about:
https://cmake.org/gitweb?p=cmake.git;a=blob;f=Modules/CPackRPM.cmake;h=7ffec136deabb8f28d6293cdc96e43cd4a2af70d;hb=HEAD#l994
Cheers,
Attila
> On 23 Mar 2016, at 13:50, Brad King <brad.king at kitware.com> wrote:
>
> On 03/23/2016 08:44 AM, Attila Krasznahorkay wrote:
>> CMake Error at /afs/cern.ch/sw/lcg/contrib/CMake/3.3.2/...
>
> Please try with CMake 3.5.
>
> -Brad
>
More information about the cmake-developers
mailing list