сб, 20 окт. 2018 г. в 13:30, Eric Noulard <eric.noul...@gmail.com>:

>
>
> Le sam. 20 oct. 2018 à 10:15, Илья Шипицин <chipits...@gmail.com> a
> écrit :
>
>> hi,
>>
>> we use cmake/cpack for mangling systemd scripts
>>
>>
>> https://github.com/SoftEtherVPN/SoftEtherVPN/blob/master/src/vpnserver/CMakeLists.txt#L26
>>
>> what happens:
>>
>> (*) deb installs files to /usr/libexec
>> (*) cmake sets location as /usr/local/libexec
>>
>
> It looks like your get default "/usr/local" prefix from somewhere.
>

exactly.


> The installation prefix of CPack is controlled by the
> https://cmake.org/cmake/help/latest/variable/CPACK_PACKAGING_INSTALL_PREFIX.html
> variable.
> Each CPack generator has a default value for that (if you don't specify
> it).
>
> How do run cpack?
> Do you do "make package" or do you run
>

I run:

./configure
make -C tmp package


> cpack -G DEB
>
> Which version of cmake/cpack are you using?
>

3.9.6


>
>
>> as a result: it does not work (systemd cannot find executable)
>>
>> https://gitlab.com/chipitsine/SoftEtherVPN/-/jobs/110262386
>>
>> I enabled "set(CPACK_DEBIAN_PACKAGE_DEBUG ON)", but it did not provide me
>> a clue.
>>
>
> DEB generator is not as verbose as I thought.
>
> Do you generate RPM as well? RPM is more verbose and leaves you log file
> in
> _CPack_Packages/<yoursystem>/RPM/
>
> Is the RPM containing what you expect?
>


I did not check it yet.


>
> --
> Eric
>
-- 

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:
https://cmake.org/mailman/listinfo/cmake

Reply via email to