summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-networking/recipes-protocols/freediameter/files/0001-fixes-for-gcc-15.patch69
-rw-r--r--meta-networking/recipes-protocols/freediameter/files/0002-allow-build-with-cmake-4.patch81
-rw-r--r--meta-networking/recipes-protocols/freediameter/freediameter_1.6.0.bb (renamed from meta-networking/recipes-protocols/freediameter/freediameter_1.5.0.bb)4
3 files changed, 1 insertions, 153 deletions
diff --git a/meta-networking/recipes-protocols/freediameter/files/0001-fixes-for-gcc-15.patch b/meta-networking/recipes-protocols/freediameter/files/0001-fixes-for-gcc-15.patch
deleted file mode 100644
index 41aeec4ee0..0000000000
--- a/meta-networking/recipes-protocols/freediameter/files/0001-fixes-for-gcc-15.patch
+++ /dev/null
@@ -1,69 +0,0 @@
1From a54f10082f819dadfa6931166e71edffadb565dd Mon Sep 17 00:00:00 2001
2From: Victor Seva <vseva@debian.org>
3Date: Sun, 23 Feb 2025 13:38:48 +0100
4Subject: [PATCH] fixes for gcc-15
5
6fixes #72
7
8Upstream-Status: Backport [https://github.com/freeDiameter/freeDiameter/commit/a54f10082f819dadfa6931166e71edffadb565dd]
9Signed-off-by: mark.yang <mark.yang@lge.com>
10---
11 libfdcore/sctp.c | 22 +++++++++++-----------
12 1 file changed, 11 insertions(+), 11 deletions(-)
13
14diff --git a/libfdcore/sctp.c b/libfdcore/sctp.c
15index 95e822e..a4a7f40 100644
16--- a/libfdcore/sctp.c
17+++ b/libfdcore/sctp.c
18@@ -532,29 +532,29 @@ static int fd_setsockopt_prebind(int sk)
19 /* SCTP_EXPLICIT_EOR: we assume implicit EOR in freeDiameter, so let's ensure this is known by the stack */
20 #ifdef SCTP_EXPLICIT_EOR
21 {
22- int bool;
23+ int _bool;
24
25 if (TRACE_BOOL(ANNOYING)) {
26 sz = sizeof(bool);
27 /* Read socket defaults */
28- CHECK_SYS( getsockopt(sk, IPPROTO_SCTP, SCTP_EXPLICIT_EOR, &bool, &sz) );
29- if (sz != sizeof(bool))
30+ CHECK_SYS( getsockopt(sk, IPPROTO_SCTP, SCTP_EXPLICIT_EOR, &_bool, &sz) );
31+ if (sz != sizeof(_bool))
32 {
33- TRACE_DEBUG(INFO, "Invalid size of socket option: %d / %d", sz, (socklen_t)sizeof(bool));
34+ TRACE_DEBUG(INFO, "Invalid size of socket option: %d / %d", sz, (socklen_t)sizeof(_bool));
35 return ENOTSUP;
36 }
37- fd_log_debug( "Def SCTP_EXPLICIT_EOR value : %s", bool ? "true" : "false");
38+ fd_log_debug( "Def SCTP_EXPLICIT_EOR value : %s", _bool ? "true" : "false");
39 }
40
41- bool = 0;
42+ _bool = 0;
43
44 /* Set the option to the socket */
45- CHECK_SYS( setsockopt(sk, IPPROTO_SCTP, SCTP_EXPLICIT_EOR, &bool, sizeof(bool)) );
46+ CHECK_SYS( setsockopt(sk, IPPROTO_SCTP, SCTP_EXPLICIT_EOR, &_bool, sizeof(_bool)) );
47
48 if (TRACE_BOOL(ANNOYING)) {
49 /* Check new values */
50- CHECK_SYS( getsockopt(sk, IPPROTO_SCTP, SCTP_EXPLICIT_EOR, &bool, &sz) );
51- fd_log_debug( "New SCTP_EXPLICIT_EOR value : %s", bool ? "true" : "false");
52+ CHECK_SYS( getsockopt(sk, IPPROTO_SCTP, SCTP_EXPLICIT_EOR, &_bool, &sz) );
53+ fd_log_debug( "New SCTP_EXPLICIT_EOR value : %s", _bool ? "true" : "false");
54 }
55 }
56 #else /* SCTP_EXPLICIT_EOR */
57@@ -619,10 +619,10 @@ static int fd_setsockopt_prebind(int sk)
58
59 #ifdef SCTP_RECVRCVINFO /* Replaces SCTP_SNDRCV */
60 {
61- int bool = 1;
62+ int _bool = 1;
63
64 /* Set the option to the socket */
65- CHECK_SYS( setsockopt(sk, IPPROTO_SCTP, SCTP_RECVRCVINFO, &bool, sizeof(bool)) );
66+ CHECK_SYS( setsockopt(sk, IPPROTO_SCTP, SCTP_RECVRCVINFO, &_bool, sizeof(_bool)) );
67
68 }
69 #else /* SCTP_RECVRCVINFO */
diff --git a/meta-networking/recipes-protocols/freediameter/files/0002-allow-build-with-cmake-4.patch b/meta-networking/recipes-protocols/freediameter/files/0002-allow-build-with-cmake-4.patch
deleted file mode 100644
index 89a215d975..0000000000
--- a/meta-networking/recipes-protocols/freediameter/files/0002-allow-build-with-cmake-4.patch
+++ /dev/null
@@ -1,81 +0,0 @@
1From a96a8f8debb457fd5bdcd34f005670678870ec70 Mon Sep 17 00:00:00 2001
2From: Alper Ak <alperyasinak1@gmail.com>
3Date: Tue, 8 Jul 2025 20:58:10 +0300
4Subject: [PATCH] cmake: Set minimum required version to 3.5 for CMake 4+
5 compatibility
6
7Fix:
8
9| CMake Error at CMakeLists.txt:24 (CMAKE_MINIMUM_REQUIRED):
10| Compatibility with CMake < 3.5 has been removed from CMake.
11|
12| Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
13| to tell CMake that the project requires at least <min> but has been updated
14| to work with policies introduced by <max> or earlier.
15|
16| Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
17|
18|
19| -- Configuring incomplete, errors occurred!
20
21Upstream-Status: Backport [https://github.com/freeDiameter/freeDiameter/commit/45106adf3bf4192b274ef6c5536200a0e19c84f2]
22
23Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
24---
25 CMakeLists.txt | 6 +++---
26 libfdcore/CMakeLists.txt | 2 +-
27 libfdproto/CMakeLists.txt | 2 +-
28 3 files changed, 5 insertions(+), 5 deletions(-)
29
30diff --git a/CMakeLists.txt b/CMakeLists.txt
31index 870e1ef..f1e6dc5 100644
32--- a/CMakeLists.txt
33+++ b/CMakeLists.txt
34@@ -1,5 +1,8 @@
35 # This file is the source for generating the Makefile for the project, using cmake tool (cmake.org)
36
37+# CMake version
38+CMAKE_MINIMUM_REQUIRED(VERSION 3.10)
39+
40 # Name of the project
41 PROJECT("freeDiameter")
42
43@@ -20,9 +23,6 @@ SET(FD_PROJECT_VERSION_API 7)
44 # The test framework, using CTest and CDash.
45 INCLUDE(CTest)
46
47-# CMake version
48-CMAKE_MINIMUM_REQUIRED(VERSION 2.8.12)
49-
50 # Location of additional CMake modules
51 SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
52
53diff --git a/libfdcore/CMakeLists.txt b/libfdcore/CMakeLists.txt
54index b1bc0f1..4fefcb7 100644
55--- a/libfdcore/CMakeLists.txt
56+++ b/libfdcore/CMakeLists.txt
57@@ -2,7 +2,7 @@
58 Project("freeDiameter core library" C)
59
60 # Configuration for newer cmake
61-cmake_policy(VERSION 2.8.12)
62+cmake_policy(VERSION 3.10)
63
64 # Configuration parser
65 BISON_FILE(fdd.y)
66diff --git a/libfdproto/CMakeLists.txt b/libfdproto/CMakeLists.txt
67index c7164fb..4cedf65 100644
68--- a/libfdproto/CMakeLists.txt
69+++ b/libfdproto/CMakeLists.txt
70@@ -2,7 +2,7 @@
71 Project("libfdproto" C)
72
73 # Configuration for newer cmake
74-cmake_policy(VERSION 2.8.12)
75+cmake_policy(VERSION 3.10)
76
77 # List of source files for the library
78 SET(LFDPROTO_SRC
79--
802.43.0
81
diff --git a/meta-networking/recipes-protocols/freediameter/freediameter_1.5.0.bb b/meta-networking/recipes-protocols/freediameter/freediameter_1.6.0.bb
index 31ac1fb9b7..887ca5c4a3 100644
--- a/meta-networking/recipes-protocols/freediameter/freediameter_1.5.0.bb
+++ b/meta-networking/recipes-protocols/freediameter/freediameter_1.6.0.bb
@@ -14,7 +14,7 @@ PACKAGE_ARCH = "${MACHINE_ARCH}"
14fd_pkgname = "freeDiameter" 14fd_pkgname = "freeDiameter"
15 15
16PV .= "+git" 16PV .= "+git"
17SRCREV = "f9f1e464e6c675d222b3be4cab9c13408d544c83" 17SRCREV = "5403feb543ed5e720165a4b3a3b4a365cdee28fb"
18SRC_URI = "git://github.com/freeDiameter/freeDiameter;protocol=https;branch=master \ 18SRC_URI = "git://github.com/freeDiameter/freeDiameter;protocol=https;branch=master \
19 file://Replace-murmurhash-algorithm-with-Robert-Jenkin-s-ha.patch \ 19 file://Replace-murmurhash-algorithm-with-Robert-Jenkin-s-ha.patch \
20 file://run-ptest \ 20 file://run-ptest \
@@ -24,8 +24,6 @@ SRC_URI = "git://github.com/freeDiameter/freeDiameter;protocol=https;branch=mast
24 file://install_test.patch \ 24 file://install_test.patch \
25 file://0001-tests-use-EXTENSIONS_DIR.patch \ 25 file://0001-tests-use-EXTENSIONS_DIR.patch \
26 file://0001-bison-flex-Add-flags-for-carrying-user-specified-par.patch \ 26 file://0001-bison-flex-Add-flags-for-carrying-user-specified-par.patch \
27 file://0001-fixes-for-gcc-15.patch \
28 file://0002-allow-build-with-cmake-4.patch \
29 " 27 "
30 28
31LICENSE = "BSD-3-Clause" 29LICENSE = "BSD-3-Clause"