diff mbox series

[meta-networking,04/29] freediameter: upgrade 1.5.0 -> 1.6.0

Message ID 20251022022227.226-4-wangmy@fujitsu.com
State Under Review
Headers show
Series [meta-oe,01/29] bdwgc: upgrade 8.2.8 -> 8.2.10 | expand

Commit Message

Wang Mingyu Oct. 22, 2025, 2:22 a.m. UTC
From: Wang Mingyu <wangmy@fujitsu.com>

0001-fixes-for-gcc-15.patch
0002-allow-build-with-cmake-4.patch
removed since they're included in 1.6.0

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
---
 .../files/0001-fixes-for-gcc-15.patch         | 69 ----------------
 .../files/0002-allow-build-with-cmake-4.patch | 81 -------------------
 ...iameter_1.5.0.bb => freediameter_1.6.0.bb} |  4 +-
 3 files changed, 1 insertion(+), 153 deletions(-)
 delete mode 100644 meta-networking/recipes-protocols/freediameter/files/0001-fixes-for-gcc-15.patch
 delete mode 100644 meta-networking/recipes-protocols/freediameter/files/0002-allow-build-with-cmake-4.patch
 rename meta-networking/recipes-protocols/freediameter/{freediameter_1.5.0.bb => freediameter_1.6.0.bb} (97%)
diff mbox series

Patch

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 @@ 
-From a54f10082f819dadfa6931166e71edffadb565dd Mon Sep 17 00:00:00 2001
-From: Victor Seva <vseva@debian.org>
-Date: Sun, 23 Feb 2025 13:38:48 +0100
-Subject: [PATCH] fixes for gcc-15
-
-fixes #72
-
-Upstream-Status: Backport [https://github.com/freeDiameter/freeDiameter/commit/a54f10082f819dadfa6931166e71edffadb565dd]
-Signed-off-by: mark.yang <mark.yang@lge.com>
----
- libfdcore/sctp.c | 22 +++++++++++-----------
- 1 file changed, 11 insertions(+), 11 deletions(-)
-
-diff --git a/libfdcore/sctp.c b/libfdcore/sctp.c
-index 95e822e..a4a7f40 100644
---- a/libfdcore/sctp.c
-+++ b/libfdcore/sctp.c
-@@ -532,29 +532,29 @@ static int fd_setsockopt_prebind(int sk)
- 	/* SCTP_EXPLICIT_EOR: we assume implicit EOR in freeDiameter, so let's ensure this is known by the stack */
- 	#ifdef SCTP_EXPLICIT_EOR
- 	{
--		int bool;
-+		int _bool;
- 		
- 		if (TRACE_BOOL(ANNOYING)) {
- 			sz = sizeof(bool);
- 			/* Read socket defaults */
--			CHECK_SYS(  getsockopt(sk, IPPROTO_SCTP, SCTP_EXPLICIT_EOR, &bool, &sz)  );
--			if (sz != sizeof(bool))
-+			CHECK_SYS(  getsockopt(sk, IPPROTO_SCTP, SCTP_EXPLICIT_EOR, &_bool, &sz)  );
-+			if (sz != sizeof(_bool))
- 			{
--				TRACE_DEBUG(INFO, "Invalid size of socket option: %d / %d", sz, (socklen_t)sizeof(bool));
-+				TRACE_DEBUG(INFO, "Invalid size of socket option: %d / %d", sz, (socklen_t)sizeof(_bool));
- 				return ENOTSUP;
- 			}
--			fd_log_debug( "Def SCTP_EXPLICIT_EOR value : %s", bool ? "true" : "false");
-+			fd_log_debug( "Def SCTP_EXPLICIT_EOR value : %s", _bool ? "true" : "false");
- 		}
- 
--		bool = 0;
-+		_bool = 0;
- 		
- 		/* Set the option to the socket */
--		CHECK_SYS(  setsockopt(sk, IPPROTO_SCTP, SCTP_EXPLICIT_EOR, &bool, sizeof(bool))  );
-+		CHECK_SYS(  setsockopt(sk, IPPROTO_SCTP, SCTP_EXPLICIT_EOR, &_bool, sizeof(_bool))  );
- 		
- 		if (TRACE_BOOL(ANNOYING)) {
- 			/* Check new values */
--			CHECK_SYS(  getsockopt(sk, IPPROTO_SCTP, SCTP_EXPLICIT_EOR, &bool, &sz)  );
--			fd_log_debug( "New SCTP_EXPLICIT_EOR value : %s", bool ? "true" : "false");
-+			CHECK_SYS(  getsockopt(sk, IPPROTO_SCTP, SCTP_EXPLICIT_EOR, &_bool, &sz)  );
-+			fd_log_debug( "New SCTP_EXPLICIT_EOR value : %s", _bool ? "true" : "false");
- 		}
- 	}
- 	#else /* SCTP_EXPLICIT_EOR */
-@@ -619,10 +619,10 @@ static int fd_setsockopt_prebind(int sk)
- 	
- 	#ifdef SCTP_RECVRCVINFO /* Replaces SCTP_SNDRCV */
- 	{
--		int bool = 1;
-+		int _bool = 1;
- 		
- 		/* Set the option to the socket */
--		CHECK_SYS(  setsockopt(sk, IPPROTO_SCTP, SCTP_RECVRCVINFO, &bool, sizeof(bool))  );
-+		CHECK_SYS(  setsockopt(sk, IPPROTO_SCTP, SCTP_RECVRCVINFO, &_bool, sizeof(_bool))  );
- 		
- 	}
- 	#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 @@ 
-From a96a8f8debb457fd5bdcd34f005670678870ec70 Mon Sep 17 00:00:00 2001
-From: Alper Ak <alperyasinak1@gmail.com>
-Date: Tue, 8 Jul 2025 20:58:10 +0300
-Subject: [PATCH] cmake: Set minimum required version to 3.5 for CMake 4+
- compatibility
-
-Fix:
-
-| CMake Error at CMakeLists.txt:24 (CMAKE_MINIMUM_REQUIRED):
-|   Compatibility with CMake < 3.5 has been removed from CMake.
-|
-|   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
-|   to tell CMake that the project requires at least <min> but has been updated
-|   to work with policies introduced by <max> or earlier.
-|
-|   Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
-|
-|
-| -- Configuring incomplete, errors occurred!
-
-Upstream-Status: Backport [https://github.com/freeDiameter/freeDiameter/commit/45106adf3bf4192b274ef6c5536200a0e19c84f2]
-
-Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
----
- CMakeLists.txt            | 6 +++---
- libfdcore/CMakeLists.txt  | 2 +-
- libfdproto/CMakeLists.txt | 2 +-
- 3 files changed, 5 insertions(+), 5 deletions(-)
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 870e1ef..f1e6dc5 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -1,5 +1,8 @@
- # This file is the source for generating the Makefile for the project, using cmake tool (cmake.org)
- 
-+# CMake version
-+CMAKE_MINIMUM_REQUIRED(VERSION 3.10)
-+
- # Name of the project
- PROJECT("freeDiameter")
- 
-@@ -20,9 +23,6 @@ SET(FD_PROJECT_VERSION_API 7)
- # The test framework, using CTest and CDash.
- INCLUDE(CTest)
- 
--# CMake version
--CMAKE_MINIMUM_REQUIRED(VERSION 2.8.12)
--
- # Location of additional CMake modules
- SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
- 
-diff --git a/libfdcore/CMakeLists.txt b/libfdcore/CMakeLists.txt
-index b1bc0f1..4fefcb7 100644
---- a/libfdcore/CMakeLists.txt
-+++ b/libfdcore/CMakeLists.txt
-@@ -2,7 +2,7 @@
- Project("freeDiameter core library" C)
- 
- # Configuration for newer cmake
--cmake_policy(VERSION 2.8.12)
-+cmake_policy(VERSION 3.10)
- 
- # Configuration parser
- BISON_FILE(fdd.y)
-diff --git a/libfdproto/CMakeLists.txt b/libfdproto/CMakeLists.txt
-index c7164fb..4cedf65 100644
---- a/libfdproto/CMakeLists.txt
-+++ b/libfdproto/CMakeLists.txt
-@@ -2,7 +2,7 @@
- Project("libfdproto" C)
- 
- # Configuration for newer cmake
--cmake_policy(VERSION 2.8.12)
-+cmake_policy(VERSION 3.10)
- 
- # List of source files for the library
- SET(LFDPROTO_SRC
--- 
-2.43.0
-
diff --git a/meta-networking/recipes-protocols/freediameter/freediameter_1.5.0.bb b/meta-networking/recipes-protocols/freediameter/freediameter_1.6.0.bb
similarity index 97%
rename from meta-networking/recipes-protocols/freediameter/freediameter_1.5.0.bb
rename to 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}"
 fd_pkgname = "freeDiameter"
 
 PV .= "+git"
-SRCREV = "f9f1e464e6c675d222b3be4cab9c13408d544c83"
+SRCREV = "5403feb543ed5e720165a4b3a3b4a365cdee28fb"
 SRC_URI = "git://github.com/freeDiameter/freeDiameter;protocol=https;branch=master \
     file://Replace-murmurhash-algorithm-with-Robert-Jenkin-s-ha.patch \
     file://run-ptest \
@@ -24,8 +24,6 @@  SRC_URI = "git://github.com/freeDiameter/freeDiameter;protocol=https;branch=mast
     file://install_test.patch \
     file://0001-tests-use-EXTENSIONS_DIR.patch \
     file://0001-bison-flex-Add-flags-for-carrying-user-specified-par.patch \
-    file://0001-fixes-for-gcc-15.patch \
-    file://0002-allow-build-with-cmake-4.patch \
     "
 
 LICENSE = "BSD-3-Clause"