xkaraman left a comment (kamailio/kamailio#4241)
Hey @sergey-safarov,
You can find the test branch on
https://github.com/xkaraman/kamailio/tree/cmake_packaging.
My commands to reproduce this on alpine docker linux with
```
cat /etc/os-release
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.21.3
PRETTY_NAME="Alpine Linux v3.21"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://gitlab.alpinelinux.org/alpine/aports/-/issues"
```
were:
install whatever deps for the modules you want to build and then configure with
cmake:
`cmake -S . -B build-alpine-sergey
-DCMAKE_INSTALL_PREFIX=install/install-alpine -DVERBOSE=off -DBUILD_DOC=ON
--fresh -DEXCLUDE_MODULES="db_oracle dnssec jwt microhttpd nats nsq ruxc
secsipid_proc stirshaken tls_wolfss
l app_lua" -DMODULE_GROUP_NAME="DEFAULT" -DINCLUDE_MODULES=""
-DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE=Debug
-DENABLE_ARCHIVE_ALPINE_PACKAGING=ON`
Note the **-DENABLE_ARCHIVE_ALPINE_PACKAGING=ON**, this was done for testing
purposes. There are probably better ways to achieve this but for now, let's use
this.
Then build with
`cmake --build build-alpine-sergey`
and try to package with
`cmake --build build-alpine-sergey -t package`
Mine fails with the below error message
```
Run CPack packaging tool...
CPack: Create package using TGZ
CPack: Install projects
CPack: - Run preinstall target for: kamailio
CPack: - Install project: kamailio []
CMake Error at /code/build-alpine-sergey/cmake_install.cmake:50 (file):
file Failed to run ldconfig
CPack Error: Error when generating package: kamailio-alpine
gmake: *** [Makefile:71: package] Error 1
```
similar to the link i referenced in the previous response
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4241#issuecomment-3547716584
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/4241/[email protected]>
_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the
sender!