[CMake] how to debug CPack creation

Илья Шипицин chipitsine at gmail.com
Sat Oct 20 04:15:34 EDT 2018


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

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.


any idea how to debug that?

CPackDeb Debug: Found dependency: libc6 (>= 2.15), libreadline7 (>= 6.0),
libssl1.1 (>= 1.1.0), zlib1g (>= 1:1.1.4) from output shlibs:Depends=libc6
(>= 2.15), libreadline7 (>= 6.0), libssl1.1 (>= 1.1.0), zlib1g (>= 1:1.1.4)
CPackDeb:Debug: CPACK_TOPLEVEL_DIRECTORY          =
'/home/ilia/softethervpn/build/_CPack_Packages/Linux/DEB'
CPackDeb:Debug: CPACK_TOPLEVEL_TAG                = 'Linux'
CPackDeb:Debug: CPACK_TEMPORARY_DIRECTORY         =
'/home/ilia/softethervpn/build/_CPack_Packages/Linux/DEB/softether-5.1.9660-Linux/vpnserver'
CPackDeb:Debug: CPACK_OUTPUT_FILE_NAME            =
'softether-vpnserver_5.1.9660-1_amd64.deb'
CPackDeb:Debug: CPACK_OUTPUT_FILE_PATH            =
'/home/ilia/softethervpn/build/softether-vpnserver_5.1.9660-1_amd64.deb'
CPackDeb:Debug: CPACK_PACKAGE_FILE_NAME           =
'softether-5.1.9660-Linux'
CPackDeb:Debug: CPACK_PACKAGE_INSTALL_DIRECTORY   = 'softether 5.1.9660'
CPackDeb:Debug: CPACK_TEMPORARY_PACKAGE_FILE_NAME =
'/home/ilia/softethervpn/build/_CPack_Packages/Linux/DEB/softether-vpnserver_5.1.9660-1_amd64.deb'
CPackDeb:Debug: CPACK_DEBIAN_PACKAGE_CONTROL_STRICT_PERMISSION = ''
CPackDeb:Debug: CPACK_DEBIAN_PACKAGE_SOURCE       = ''
CPack: - package:
/home/ilia/softethervpn/build/softether-vpnbridge_5.1.9660-1_amd64.deb
generated.
CPack: - package:
/home/ilia/softethervpn/build/softether-vpnclient_5.1.9660-1_amd64.deb
generated.
CPack: - package:
/home/ilia/softethervpn/build/softether-vpncmd_5.1.9660-1_amd64.deb
generated.
CPack: - package:
/home/ilia/softethervpn/build/softether-vpnserver_5.1.9660-1_amd64.deb
generated.
make: Leaving directory '/home/ilia/softethervpn/tmp'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20181020/8f82f337/attachment.html>


More information about the CMake mailing list