kamailio / kamailio

Kamailio - The Open Source SIP Server for large VoIP and real-time communication platforms -
https://www.kamailio.org
Other
2.32k stars 963 forks source link

cmake: switching deb rules #4053

Open linuxmaniac opened 8 hours ago

linuxmaniac commented 8 hours ago

Opening this generic issue to track issues when trying to switch deb package generation to cmake:

linuxmaniac commented 8 hours ago

complains if git is not installed.

-- USE_FAST_LOCK = YES                                                                                   
CMake Error at /usr/share/cmake-3.31/Modules/FindPackageHandleStandardArgs.cmake:233 (message):          
  Could NOT find Git (missing: GIT_EXECUTABLE)                                                           
Call Stack (most recent call first):                                                                     
  /usr/share/cmake-3.31/Modules/FindPackageHandleStandardArgs.cmake:603 (_FPHSA_FAILURE_MESSAGE)         
  /usr/share/cmake-3.31/Modules/FindGit.cmake:128 (find_package_handle_standard_args)                                                                                                                                src/CMakeLists.txt:31 (find_package)                                                                                                                                                                                                                                                                                                                                                                                                

-- Configuring incomplete, errors occurred!                                                                                                                                                                        
        cd obj-x86_64-linux-gnu && tail -v -n \+0 CMakeCache.txt
dh_auto_configure: error: cd obj-x86_64-linux-gnu && DEB_PYTHON_INSTALL_LAYOUT=deb PKG_CONFIG=/usr/bin/pkg-config cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DFETCHCONTENT_FULLY_DISCONNECTED=ON -DCMAKE_INSTALL_RUNSTATEDIR=/run -DCMAKE_SKIP_INSTALL_ALL_DEPENDENCY=ON "-GUnix Makefiles" -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_LIBDIR=lib/x86_64-linux-gnu .. returned exit code 1
make: *** [debian/rules:115: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2