diff options
| author | Randy MacLeod <Randy.MacLeod@windriver.com> | 2025-11-24 14:16:19 -0500 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-11-24 21:54:47 -0800 |
| commit | e730ee0c603df293ebe9218b8b9d79f8e617dd87 (patch) | |
| tree | 85160bfb755951b122fe626024e869218ee8b15e | |
| parent | ed8a1038d227ee521cf2349d9f7f8e37eec6a64a (diff) | |
| download | meta-openembedded-e730ee0c603df293ebe9218b8b9d79f8e617dd87.tar.gz | |
rsyslog: upgrade 8.2506.0 -> 8.2510.0
Full Changelog:
https://github.com/rsyslog/rsyslog/blob/v8-stable/ChangeLog
Avoid buildpath error:
QA Issue: File /usr/lib/rsyslog/ptest/tests/.deps/liboverride_getaddrinfo_la-override_getaddrinfo.Plo
These .deps directories are created at configure time and mainly used
in an interactive development environment. Remove test/.deps to eliminate
the error.
Drop: use-pkgconfig-to-check-libgcrypt.patch
since it's implemented upstream by:
85e03c0e8 Replace libgcrypt-config with pkg-config
8ba35bf6c Add missing libraries to pkg-config call
as per: https://github.com/rsyslog/rsyslog/pull/5406/commits
For musl, drop: 0001-Include-sys-time-h.patch
which oddly doesn't seem to be required to build any of: qemux86-64, qemuarm64,
and qemuarm.
Rebase other patches as needed.
ptest results for qemux86-64/kvm with extra FS space and 2 GB RAM:
Version | Total | Passed | Failed | Skipped
8.2506 | 485 | 479 | 0 | 6
8.2510 | 497 | 491 | 0 | 6
rsyslog works when built with musl but there are lots of ptest failures:
Version | Total | Passed | Failed | Skipped
8.2506 | 485 | 306 | 172 | 7
8.2510 | 497 | 310 | 180 | 7
Note that with this update the results are similarily bad. If someone is
interested and has time, they can work on improving the musl ptest results.
Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-extended/rsyslog/rsyslog/0001-Include-sys-time-h.patch | 32 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/rsyslog/rsyslog/0001-tests-disable-the-check-for-inotify.patch | 8 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/rsyslog/rsyslog/0001-tests-tcpflood.c-Pass-correct-parameter-type-to-send.patch | 18 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/rsyslog/rsyslog/use-pkgconfig-to-check-libgcrypt.patch | 42 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/rsyslog/rsyslog_8.2510.0.bb (renamed from meta-oe/recipes-extended/rsyslog/rsyslog_8.2506.0.bb) | 6 |
5 files changed, 16 insertions, 90 deletions
diff --git a/meta-oe/recipes-extended/rsyslog/rsyslog/0001-Include-sys-time-h.patch b/meta-oe/recipes-extended/rsyslog/rsyslog/0001-Include-sys-time-h.patch deleted file mode 100644 index 6ce8b7a9c8..0000000000 --- a/meta-oe/recipes-extended/rsyslog/rsyslog/0001-Include-sys-time-h.patch +++ /dev/null | |||
| @@ -1,32 +0,0 @@ | |||
| 1 | From 7baf35b88d742032a2dc456c396843e17e866f8e Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Ming Liu <peter.x.liu@external.atlascopco.com> | ||
| 3 | Date: Wed, 27 Jun 2018 14:04:57 +0800 | ||
| 4 | Subject: [PATCH] Include sys/time.h | ||
| 5 | |||
| 6 | struct timeval is defined in sys/time.h with a musl libc. | ||
| 7 | |||
| 8 | Upstream-Status: Inappropriate [musl libc specific] | ||
| 9 | |||
| 10 | Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com> | ||
| 11 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | ||
| 12 | --- | ||
| 13 | tests/msleep.c | 4 ---- | ||
| 14 | 1 file changed, 4 deletions(-) | ||
| 15 | |||
| 16 | diff --git a/tests/msleep.c b/tests/msleep.c | ||
| 17 | index 98dbece..96f6950 100644 | ||
| 18 | --- a/tests/msleep.c | ||
| 19 | +++ b/tests/msleep.c | ||
| 20 | @@ -26,11 +26,7 @@ | ||
| 21 | #include "config.h" | ||
| 22 | #include <stdio.h> | ||
| 23 | #include <stdlib.h> | ||
| 24 | -#if defined(__FreeBSD__) | ||
| 25 | #include <sys/time.h> | ||
| 26 | -#else | ||
| 27 | -#include <time.h> | ||
| 28 | -#endif | ||
| 29 | #if defined(HAVE_SYS_SELECT_H) | ||
| 30 | #include <sys/select.h> | ||
| 31 | #endif | ||
| 32 | 2.7.4 | ||
diff --git a/meta-oe/recipes-extended/rsyslog/rsyslog/0001-tests-disable-the-check-for-inotify.patch b/meta-oe/recipes-extended/rsyslog/rsyslog/0001-tests-disable-the-check-for-inotify.patch index a506b7a6dc..728cdace0c 100644 --- a/meta-oe/recipes-extended/rsyslog/rsyslog/0001-tests-disable-the-check-for-inotify.patch +++ b/meta-oe/recipes-extended/rsyslog/rsyslog/0001-tests-disable-the-check-for-inotify.patch | |||
| @@ -23,19 +23,19 @@ diff --git a/tests/diag.sh b/tests/diag.sh | |||
| 23 | index a9c2a75..0b017c5 100755 | 23 | index a9c2a75..0b017c5 100755 |
| 24 | --- a/tests/diag.sh | 24 | --- a/tests/diag.sh |
| 25 | +++ b/tests/diag.sh | 25 | +++ b/tests/diag.sh |
| 26 | @@ -2979,7 +2979,7 @@ case $1 in | 26 | @@ -3683,7 +3683,7 @@ |
| 27 | fi | 27 | fi |
| 28 | ;; | 28 | ;; |
| 29 | 'check-inotify') # Check for inotify/fen support | 29 | 'check-inotify') # Check for inotify/fen support |
| 30 | - if [ -n "$(find /usr/include -name 'inotify.h' -print -quit)" ]; then | 30 | - if [ -n "$(find /usr/include -name 'inotify.h' -print -quit)" ]; then |
| 31 | + if true; then | 31 | + if true; then |
| 32 | echo [inotify mode] | 32 | echo [inotify mode] |
| 33 | elif [ -n "$(find /usr/include/sys/ -name 'port.h' -print -quit)" ]; then | 33 | elif [ -n "$(find /usr/include/sys/ -name 'port.h' -print -quit)" ]; then |
| 34 | grep -qF "PORT_SOURCE_FILE" < /usr/include/sys/port.h | 34 | grep -qF "PORT_SOURCE_FILE" < /usr/include/sys/port.h |
| 35 | @@ -2994,7 +2994,7 @@ case $1 in | 35 | @@ -3698,7 +3698,7 @@ |
| 36 | fi | 36 | fi |
| 37 | ;; | 37 | ;; |
| 38 | 'check-inotify-only') # Check for ONLY inotify support | 38 | 'check-inotify-only') # Check for ONLY inotify support |
| 39 | - if [ -n "$(find /usr/include -name 'inotify.h' -print -quit)" ]; then | 39 | - if [ -n "$(find /usr/include -name 'inotify.h' -print -quit)" ]; then |
| 40 | + if true; then | 40 | + if true; then |
| 41 | echo [inotify mode] | 41 | echo [inotify mode] |
diff --git a/meta-oe/recipes-extended/rsyslog/rsyslog/0001-tests-tcpflood.c-Pass-correct-parameter-type-to-send.patch b/meta-oe/recipes-extended/rsyslog/rsyslog/0001-tests-tcpflood.c-Pass-correct-parameter-type-to-send.patch index 884086bfc3..76749877b6 100644 --- a/meta-oe/recipes-extended/rsyslog/rsyslog/0001-tests-tcpflood.c-Pass-correct-parameter-type-to-send.patch +++ b/meta-oe/recipes-extended/rsyslog/rsyslog/0001-tests-tcpflood.c-Pass-correct-parameter-type-to-send.patch | |||
| @@ -21,12 +21,12 @@ diff --git a/tests/tcpflood.c b/tests/tcpflood.c | |||
| 21 | index 5e6f13a..09cedbb 100644 | 21 | index 5e6f13a..09cedbb 100644 |
| 22 | --- a/tests/tcpflood.c | 22 | --- a/tests/tcpflood.c |
| 23 | +++ b/tests/tcpflood.c | 23 | +++ b/tests/tcpflood.c |
| 24 | @@ -836,7 +836,7 @@ int sendMessages(struct instdata *inst) | 24 | @@ -865,7 +865,7 @@ |
| 25 | } | 25 | } |
| 26 | lenSend = sendPlainTCP(socknum, buf, lenBuf, &error_number); | 26 | lenSend = sendPlainTCP(socknum, buf, lenBuf, &error_number); |
| 27 | } else if(transport == TP_UDP) { | 27 | } else if (transport == TP_UDP) { |
| 28 | - lenSend = sendto(udpsockout, buf, lenBuf, 0, &udpRcvr, sizeof(udpRcvr)); | 28 | - lenSend = sendto(udpsockout, buf, lenBuf, 0, &udpRcvr, sizeof(udpRcvr)); |
| 29 | + lenSend = sendto(udpsockout, buf, lenBuf, 0, (const struct sockaddr *)&udpRcvr, sizeof(udpRcvr)); | 29 | + lenSend = sendto(udpsockout, buf, lenBuf, 0, (const struct sockaddr *)&udpRcvr, sizeof(udpRcvr)); |
| 30 | error_number = errno; | 30 | error_number = errno; |
| 31 | } else if(transport == TP_TLS) { | 31 | } else if (transport == TP_TLS) { |
| 32 | if(sockArray[socknum] == -1) { | 32 | if (sockArray[socknum] == -1) { |
diff --git a/meta-oe/recipes-extended/rsyslog/rsyslog/use-pkgconfig-to-check-libgcrypt.patch b/meta-oe/recipes-extended/rsyslog/rsyslog/use-pkgconfig-to-check-libgcrypt.patch deleted file mode 100644 index f5ae65fb58..0000000000 --- a/meta-oe/recipes-extended/rsyslog/rsyslog/use-pkgconfig-to-check-libgcrypt.patch +++ /dev/null | |||
| @@ -1,42 +0,0 @@ | |||
| 1 | From d2dd13d930c91e45417c7361908f0af75e0e6c00 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Roy Li <rongqing.li@windriver.com> | ||
| 3 | Date: Wed, 18 Jun 2014 13:46:52 +0800 | ||
| 4 | Subject: [PATCH] use pkgconfig to check libgcrypt | ||
| 5 | |||
| 6 | Upstream-Status: Inappropriate [configuration] | ||
| 7 | |||
| 8 | libgcrypt does no longer provide libgcrypt-config, and provide | ||
| 9 | *.pc, so we should use pkgconfig to check | ||
| 10 | |||
| 11 | Signed-off-by: Roy Li <rongqing.li@windriver.com> | ||
| 12 | Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> | ||
| 13 | --- | ||
| 14 | configure.ac | 15 +-------------- | ||
| 15 | 1 file changed, 1 insertion(+), 14 deletions(-) | ||
| 16 | |||
| 17 | diff --git a/configure.ac b/configure.ac | ||
| 18 | index f8c0ac8..794bfb3 100644 | ||
| 19 | --- a/configure.ac | ||
| 20 | +++ b/configure.ac | ||
| 21 | @@ -1217,20 +1217,7 @@ AC_ARG_ENABLE(libgcrypt, | ||
| 22 | [enable_libgcrypt=yes] | ||
| 23 | ) | ||
| 24 | if test "x$enable_libgcrypt" = "xyes"; then | ||
| 25 | - AC_PATH_PROG([LIBGCRYPT_CONFIG],[libgcrypt-config],[no]) | ||
| 26 | - if test "x${LIBGCRYPT_CONFIG}" = "xno"; then | ||
| 27 | - AC_MSG_FAILURE([libgcrypt-config not found in PATH]) | ||
| 28 | - fi | ||
| 29 | - AC_CHECK_LIB( | ||
| 30 | - [gcrypt], | ||
| 31 | - [gcry_cipher_open], | ||
| 32 | - [LIBGCRYPT_CFLAGS="`${LIBGCRYPT_CONFIG} --cflags`" | ||
| 33 | - LIBGCRYPT_LIBS="`${LIBGCRYPT_CONFIG} --libs`" | ||
| 34 | - ], | ||
| 35 | - [AC_MSG_FAILURE([libgcrypt is missing])], | ||
| 36 | - [`${LIBGCRYPT_CONFIG} --libs --cflags`] | ||
| 37 | - ) | ||
| 38 | - AC_DEFINE([ENABLE_LIBGCRYPT], [1], [Indicator that LIBGCRYPT is present]) | ||
| 39 | + PKG_CHECK_MODULES(LIBGCRYPT, libgcrypt) | ||
| 40 | fi | ||
| 41 | AM_CONDITIONAL(ENABLE_LIBGCRYPT, test x$enable_libgcrypt = xyes) | ||
| 42 | AM_CONDITIONAL(ENABLE_RSCRYUTIL, test x$enable_libgcrypt = xyes || test x$enable_openssl_crypto_provider = xyes) | ||
diff --git a/meta-oe/recipes-extended/rsyslog/rsyslog_8.2506.0.bb b/meta-oe/recipes-extended/rsyslog/rsyslog_8.2510.0.bb index bcac76a231..c92c11d8f3 100644 --- a/meta-oe/recipes-extended/rsyslog/rsyslog_8.2506.0.bb +++ b/meta-oe/recipes-extended/rsyslog/rsyslog_8.2510.0.bb | |||
| @@ -22,17 +22,15 @@ SRC_URI = "https://www.rsyslog.com/files/download/rsyslog/${BPN}-${PV}.tar.gz \ | |||
| 22 | file://rsyslog.conf \ | 22 | file://rsyslog.conf \ |
| 23 | file://rsyslog.logrotate \ | 23 | file://rsyslog.logrotate \ |
| 24 | file://rsyslog.service \ | 24 | file://rsyslog.service \ |
| 25 | file://use-pkgconfig-to-check-libgcrypt.patch \ | ||
| 26 | file://run-ptest \ | 25 | file://run-ptest \ |
| 27 | file://0001-tests-disable-the-check-for-inotify.patch \ | 26 | file://0001-tests-disable-the-check-for-inotify.patch \ |
| 28 | file://0001-tests-tcpflood.c-Pass-correct-parameter-type-to-send.patch \ | 27 | file://0001-tests-tcpflood.c-Pass-correct-parameter-type-to-send.patch \ |
| 29 | " | 28 | " |
| 30 | 29 | ||
| 31 | SRC_URI:append:libc-musl = " \ | 30 | SRC_URI:append:libc-musl = " \ |
| 32 | file://0001-Include-sys-time-h.patch \ | ||
| 33 | file://disable-omfile-outchannel.patch \ | 31 | file://disable-omfile-outchannel.patch \ |
| 34 | " | 32 | " |
| 35 | SRC_URI[sha256sum] = "6d6fd0257c95e756765d4d585a833d54dd3a0e5eeb8308b862a81b368a74bb7b" | 33 | SRC_URI[sha256sum] = "a70a9834186859539a6a4d1c7b3f68c23897e805829b764a45e92cb0cc95e66a" |
| 36 | 34 | ||
| 37 | UPSTREAM_CHECK_URI = "https://github.com/rsyslog/rsyslog/tags" | 35 | UPSTREAM_CHECK_URI = "https://github.com/rsyslog/rsyslog/tags" |
| 38 | UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)" | 36 | UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)" |
| @@ -92,6 +90,8 @@ TESTDIR = "tests" | |||
| 92 | do_compile_ptest() { | 90 | do_compile_ptest() { |
| 93 | echo 'buildtest-TESTS: $(check_PROGRAMS)' >> ${TESTDIR}/Makefile | 91 | echo 'buildtest-TESTS: $(check_PROGRAMS)' >> ${TESTDIR}/Makefile |
| 94 | oe_runmake -C ${TESTDIR} buildtest-TESTS | 92 | oe_runmake -C ${TESTDIR} buildtest-TESTS |
| 93 | # buildpaths: remove .deps/*, an unneeded compile dependency automake artifact. | ||
| 94 | rm -rf ${B}/${TESTDIR}/.deps | ||
| 95 | } | 95 | } |
| 96 | 96 | ||
| 97 | do_install_ptest() { | 97 | do_install_ptest() { |
