### Description
From the cmake timeline 3.0(2014) is called "modern cmake" and ~3.12/3.13(2018) is "more modern cmake" : https://www.youtube.com/watch?v=y7ndUhdQuU8
Since we are doing a major renovation on the kamailio build system should we target the "more modern" generation (that is already > 5 years old). This will encourage the project to follow cmake best practices.
Ping @xkaraman @miconda
Versions in debian: buster(3.13) bullseye(3.25) bookworm/trixie(3.30)
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4078
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/4078(a)github.com>
<!-- Kamailio Pull Request Template -->
<!--
IMPORTANT:
- for detailed contributing guidelines, read:
https://github.com/kamailio/kamailio/blob/master/.github/CONTRIBUTING.md
- pull requests must be done to master branch, unless they are backports
of fixes from master branch to a stable branch
- backports to stable branches must be done with 'git cherry-pick -x ...'
- code is contributed under BSD for core and main components (tm, sl, auth, tls)
- code is contributed GPLv2 or a compatible license for the other components
- GPL code is contributed with OpenSSL licensing exception
-->
#### Pre-Submission Checklist
<!-- Go over all points below, and after creating the PR, tick all the checkboxes that apply -->
<!-- All points should be verified, otherwise, read the CONTRIBUTING guidelines from above-->
<!-- If you're unsure about any of these, don't hesitate to ask on sr-dev mailing list -->
- [x] Commit message has the format required by CONTRIBUTING guide
- [x] Commits are split per component (core, individual modules, libs, utils, ...)
- [x] Each component has a single commit (if not, squash them into one commit)
- [x] No commits to README files for modules (changes must be done to docbook files
in `doc/` subfolder, the README file is autogenerated)
#### Type Of Change
- [x] Small bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds new functionality)
- [ ] Breaking change (fix or feature that would change existing functionality)
#### Checklist:
<!-- Go over all points below, and after creating the PR, tick the checkboxes that apply -->
- [x] PR should be backported to stable branches
- [ ] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
<!-- Describe your changes in detail -->
This PR fixes a bug where when `flow_token_secret` was provided, it was not initialized properly and always set to an empty string.
- flow_token_secret is of type str and not char*
- check the length of the string instead of memory for initialization
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/4125
-- Commit Summary --
* outbound: Fix flow_token_secret bug
-- File Changes --
M src/modules/outbound/outbound_mod.c (4)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/4125.patchhttps://github.com/kamailio/kamailio/pull/4125.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/4125
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/4125(a)github.com>
Module: kamailio
Branch: master
Commit: 99d36df0a15bbb960b2d7ee5916d65a55b9b26cd
URL: https://github.com/kamailio/kamailio/commit/99d36df0a15bbb960b2d7ee5916d65a…
Author: Xenofon Karamanos <xk(a)gilawa.com>
Committer: Xenofon Karamanos <xk(a)gilawa.com>
Date: 2025-01-28T14:05:25Z
cmake/json: Remove find_package call. Use pkg-config instead.
---
Modified: src/modules/json/CMakeLists.txt
---
Diff: https://github.com/kamailio/kamailio/commit/99d36df0a15bbb960b2d7ee5916d65a…
Patch: https://github.com/kamailio/kamailio/commit/99d36df0a15bbb960b2d7ee5916d65a…
---
diff --git a/src/modules/json/CMakeLists.txt b/src/modules/json/CMakeLists.txt
index 72df4d390f5..5d791dbd03d 100644
--- a/src/modules/json/CMakeLists.txt
+++ b/src/modules/json/CMakeLists.txt
@@ -2,13 +2,18 @@ file(GLOB MODULE_SOURCES "*.c")
add_library(${module_name} SHARED ${MODULE_SOURCES})
-find_package(json-c CONFIG)
-
-if(NOT json-c_FOUND)
- message(STATUS "json-c not found. looking with pkg-config")
- find_package(PkgConfig REQUIRED)
- pkg_check_modules(json-c REQUIRED IMPORTED_TARGET json-c)
- add_library(json-c::json-c ALIAS PkgConfig::json-c)
-endif()
+# TODO: When we have a proper cmake config file for json-c for most OS, we can
+# use that instead of pkg-config.
+# json-c v 0.14 and 0.15 have wrong include directories in their cmake config
+# files. uncomment the following line when we have a proper cmake config file
+# for json-c for most OS.
+# find_package(json-c 0.16 CONFIG)
+
+# if(NOT json-c_FOUND)
+message(STATUS "json-c not found. looking with pkg-config")
+find_package(PkgConfig REQUIRED)
+pkg_check_modules(json-c REQUIRED IMPORTED_TARGET json-c)
+add_library(json-c::json-c ALIAS PkgConfig::json-c)
+# endif()
target_link_libraries(${module_name} PRIVATE json-c::json-c)
Module: kamailio
Branch: 6.0
Commit: 3a480f03fa54855059b72db8304f47cca7ee753e
URL: https://github.com/kamailio/kamailio/commit/3a480f03fa54855059b72db8304f47c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2025-01-28T10:14:00+01:00
etc/kamailio.cfg: close comment for tls_threads_mode
(cherry picked from commit d8d627eff7de268a487d7f91cc52e7ba8a6c708e)
---
Modified: etc/kamailio.cfg
---
Diff: https://github.com/kamailio/kamailio/commit/3a480f03fa54855059b72db8304f47c…
Patch: https://github.com/kamailio/kamailio/commit/3a480f03fa54855059b72db8304f47c…
---
diff --git a/etc/kamailio.cfg b/etc/kamailio.cfg
index a61227d4173..a06e09fdc77 100644
--- a/etc/kamailio.cfg
+++ b/etc/kamailio.cfg
@@ -234,9 +234,10 @@ tls_max_connections=2048
/* For OpenSSL 3 integration
* functions calling libssl3 can be invoked in a transient thread
* 0: disable threaded calls
- * 1: use thread executors for process#0 only
- * 2: no thread executors, but use atfork handler to reset thread-locals to NULL
+ * 1: use thread executors for process #0 only
+ * 2: no thread executors, but use atfork handler to reset thread-locals to NULL */
tls_threads_mode=2
+
#!endif
/* set it to yes to enable sctp and load sctp.so module */