Skip to contentSkip to conversation

librelp: Upgrade to 1.12.0

PATCH New [email protected] 1 participant 1 message Nov 26, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 librelp: Upgrade to 1.12.0

From: Randy MacLeod <[email protected]>

This upgrade is mostly bug fixes according to:
https://github.com/rsyslog/librelp/blob/master/ChangeLog
but there is one new API:
add ability to communicate source port back to caller

Drop the backported patch:
0001-Fix-function-inline-errors-in-debug-optimization-Og.patch
Drop patches merged upstream:
0001-tests-Include-missing-sys-time.h.patch
-> 8c96857 tests: Include missing sys/time.h 0001-relp-fix-build-against-upcoming-gcc-14-Werror-calloc.patch -> baf992f relp: fix build against upcoming gcc-14 ... 0001-tests-Fix-callback-prototype.patch
-> a4cb0bd tests: Fix callback prototype 0001-tcp-fix-some-compiler-warnings-with-enable-tls-opens.patch -> 6e9b27f tcp: fix some compiler warnings with enable-tls-openssl

Ptest for qemux86-64, qemuarm64 with glibc and musl:
TOTAL: 30
PASS: 27
SKIP: 3
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0

---
 ...line-errors-in-debug-optimization-Og.patch | 34 -------
 ...gainst-upcoming-gcc-14-Werror-calloc.patch | 37 --------
 ...piler-warnings-with-enable-tls-opens.patch | 88 -------------------
 .../0001-tests-Fix-callback-prototype.patch   | 49 -----------
 ...001-tests-Include-missing-sys-time.h.patch | 41 ---------
 .../{librelp_1.11.0.bb => librelp_1.12.0.bb}  |  8 +-
 6 files changed, 1 insertion(+), 256 deletions(-)
 delete mode 100644 meta-oe/recipes-extended/rsyslog/librelp/0001-Fix-function-inline-errors-in-debug-optimization-Og.patch
 delete mode 100644 meta-oe/recipes-extended/rsyslog/librelp/0001-relp-fix-build-against-upcoming-gcc-14-Werror-calloc.patch
 delete mode 100644 meta-oe/recipes-extended/rsyslog/librelp/0001-tcp-fix-some-compiler-warnings-with-enable-tls-opens.patch
 delete mode 100644 meta-oe/recipes-extended/rsyslog/librelp/0001-tests-Fix-callback-prototype.patch
 delete mode 100644 meta-oe/recipes-extended/rsyslog/librelp/0001-tests-Include-missing-sys-time.h.patch
 rename meta-oe/recipes-extended/rsyslog/{librelp_1.11.0.bb => librelp_1.12.0.bb} (87%)
meta-oe/recipes-extended/rsyslog/librelp/0001-Fix-function-inline-errors-in-debug-optimization-Og.patch deleted +0 -34
deleted file mode 100644
index 10e2b564cc..0000000000
@@ -1,34 +0,0 @@
-From 6d575d98565ce3119a14359eecb11ccdff92a303 Mon Sep 17 00:00:00 2001
-From: Yash Shinde <[email protected]>
-Date: Thu, 29 Jun 2023 18:10:15 +0530
-Subject: [PATCH] Fix function inline errors in debug optimization (-Og)
-
-Compiler does not inline any functions when using debug optimization (-Og).
-Hence, remove -Winline flag when compiling with debug optimization.
-
-Signed-off-by: Nicolas Marguet <[email protected]>
----
-Upstream-Status: Backport [https://github.com/rsyslog/librelp/commit/6d575d9]
-
- configure.ac | 6 ++++++
- 1 file changed, 6 insertions(+)
-
-diff --git a/configure.ac b/configure.ac
-index 21c1fde..1204c4e 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -230,6 +230,12 @@ if test "$enable_debug" = "no"; then
-         AC_DEFINE(NDEBUG, 1, [Defined if debug mode is disabled.])
- fi
-
-+#Compiler does not inline any functions when not optimizing(-Og).
-+#Hence, remove -Winline flag when DEBUG is enabled.
-+#ifdef DEBUG
-+WARN_CFLAGS="$(echo "$WARN_CFLAGS" | sed s/-Winline//g)"
-+#endif
-+
- # valgrind
- AC_ARG_ENABLE(valgrind,
-         [AS_HELP_STRING([--enable-valgrind],[Enable valgrind tests@<:@default=yes@:>@])],
---
-2.39.0
meta-oe/recipes-extended/rsyslog/librelp/0001-relp-fix-build-against-upcoming-gcc-14-Werror-calloc.patch deleted +0 -37
deleted file mode 100644
index cf4f4080a6..0000000000
@@ -1,37 +0,0 @@
-From baf992f82aa987c608731866876adb856847ea45 Mon Sep 17 00:00:00 2001
-From: Khem Raj <[email protected]>
-Date: Mon, 6 May 2024 18:03:40 -0700
-Subject: [PATCH] relp: fix build against upcoming `gcc-14`
- (`-Werror=calloc-transposed-args`)
-
-`gcc-14` added a new `-Wcalloc-transposed-args` warning recently. It
-   detected minor infelicity in `calloc()` API usage
-
-Fixes
-../../git/src/relp.c: In function 'addToEpollSet':
-../../git/src/relp.c:101:39: error: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Werror=calloc-transposed-args]
-  101 |         CHKmalloc(epd = calloc(sizeof(epolld_t), 1));
-      |                                       ^~~~~~~~
-
-Upstream-Status: Submitted [https://github.com/rsyslog/librelp/pull/264]
-Signed-off-by: Khem Raj <[email protected]>
----
- src/relp.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/src/relp.c b/src/relp.c
-index eadda36..6268f1d 100644
---- a/src/relp.c
-+++ b/src/relp.c
-@@ -98,7 +98,7 @@ addToEpollSet(relpEngine_t *const pThis, epolld_type_t typ, void *ptr, int sock,
- 	epolld_t *epd = NULL;
- 	ENTER_RELPFUNC;
- 
--	CHKmalloc(epd = calloc(sizeof(epolld_t), 1));
-+	CHKmalloc(epd = calloc(1, sizeof(epolld_t)));
- 	epd->typ = typ;
- 	epd->ptr = ptr;
- 	epd->sock = sock;
--- 
-2.45.0
-
meta-oe/recipes-extended/rsyslog/librelp/0001-tcp-fix-some-compiler-warnings-with-enable-tls-opens.patch deleted +0 -88

88 lines not on this page · raw message

meta-oe/recipes-extended/rsyslog/librelp/0001-tests-Fix-callback-prototype.patch deleted +0 -49

49 lines not on this page · raw message

meta-oe/recipes-extended/rsyslog/librelp/0001-tests-Include-missing-sys-time.h.patch deleted +0 -41

41 lines not on this page · raw message

meta-oe/recipes-extended/rsyslog/librelp_1.12.0.bb renamed from meta-oe/recipes-extended/rsyslog/librelp_1.11.0.bb +1 -7
similarity index 87%
rename from meta-oe/recipes-extended/rsyslog/librelp_1.11.0.bb
rename to meta-oe/recipes-extended/rsyslog/librelp_1.12.0.bb
index 3ccb87a9c5..6bad112e5a 100644
@@ -7,16 +7,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=1fb9c10ed9fd6826757615455ca893a9"
 DEPENDS = "gmp libidn zlib"
 
 SRC_URI = "git://github.com/rsyslog/librelp.git;protocol=https;branch=stable \
-           file://0001-Fix-function-inline-errors-in-debug-optimization-Og.patch \
-           file://0001-tests-Fix-callback-prototype.patch \
-           file://0001-tcp-fix-some-compiler-warnings-with-enable-tls-opens.patch \
-           file://0001-tests-Include-missing-sys-time.h.patch \
-           file://0001-relp-fix-build-against-upcoming-gcc-14-Werror-calloc.patch \
            file://run-ptest \
 "
 
-SRCREV = "b421f56d9ee31a966058d23bd23c966221c91396"
-
+SRCREV = "dab30db5108ef4bb5b6f9135e0428b57be7c4085"
 
 CVE_PRODUCT = "rsyslog:librelp"
 
Signature · 1 line
2.34.1