rsyslog: update from 8.2212.0 to 8.2302.0
PATCH 1/3 rsyslog: update from 8.2212.0 to 8.2302.0
ptest results for qemux86-64/kvm with extra FS space and 2 GB RAM:
Version | Passed | Failed | Skipped
8.2212 | 470 | 0 | 5
8.2302 | 471 | 0 | 5---
.../rsyslog/{rsyslog_8.2212.0.bb => rsyslog_8.2302.0.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-oe/recipes-extended/rsyslog/{rsyslog_8.2212.0.bb => rsyslog_8.2302.0.bb} (98%)meta-oe/recipes-extended/rsyslog/rsyslog_8.2302.0.bb renamed from meta-oe/recipes-extended/rsyslog/rsyslog_8.2212.0.bb +1 -1
@@ -31,7 +31,7 @@ SRC_URI:append:libc-musl = " \ file://0001-Include-sys-time-h.patch \ " -SRC_URI[sha256sum] = "53b59a872e3dc7384cdc149abe9744916776f7057d905f3df6722d2eb1b04f35" +SRC_URI[sha256sum] = "25415f85b662615ce3c83077d53758029e8743cb5929044bfd3564e3d626a3b9" UPSTREAM_CHECK_URI = "https://github.com/rsyslog/rsyslog/releases" UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)"
Signature · 1 line
2.39.0
PATCH 2/3 rsyslog: add disabled PACKAGECONFIG to drop capabilities
Add PACKAGECONFIG to enable dropping capabilities but leave it as disabled to follow upstream and avoid a systemd issue described below.
rsyslog-8.2302 added a configure option to drop capabilities from full to:
chown, dac_override, setgid, setuid, setpcap, net_bind_service, net_admin, ipc_lock, sys_chroot, sys_admin, sys_resource, lease, syslog, block_suspend
This works fine and passes ptests with sysvinit however there is a bug when using systemd that breaks some tests:
https://github.com/rsyslog/rsyslog/issues/5091
Therefore only add a non-default PACKAGECONFIG option in keeping with the rsyslog upstream.
One can install libcap-ng-bin to run pscap to see the capabilities.
Without this option the ptest result with systemd as init is:
Version | Passed | Failed | Skipped
8.2302 | 473 | 0 | 3--- meta-oe/recipes-extended/rsyslog/rsyslog_8.2302.0.bb | 2 ++ 1 file changed, 2 insertions(+)
meta-oe/recipes-extended/rsyslog/rsyslog_8.2302.0.bb +2 -0
@@ -76,6 +76,8 @@ PACKAGECONFIG[mmjsonparse] = "--enable-mmjsonparse,--disable-mmjsonparse," PACKAGECONFIG[mysql] = "--enable-mysql,--disable-mysql,mysql5," PACKAGECONFIG[postgresql] = "--enable-pgsql,--disable-pgsql,postgresql," PACKAGECONFIG[libdbi] = "--enable-libdbi,--disable-libdbi,libdbi," +# For libcap-ng, see commit log and https://github.com/rsyslog/rsyslog/issues/5091 +PACKAGECONFIG[libcap-ng] = "--enable-libcap-ng,--disable-libcap-ng,libcap-ng," PACKAGECONFIG[mail] = "--enable-mail,--disable-mail,," PACKAGECONFIG[valgrind] = ",--without-valgrind-testbench,valgrind," PACKAGECONFIG[imhttp] = "--enable-imhttp,--disable-imhttp,civetweb,"
Signature · 1 line
2.39.0
PATCH 3/3 librelp: make inline errors be warnings in debug build
In reply to Randy MacLeodWith DEBUG_BUILD = "1", the following error occurs:
src/relpsess.c:95:1: error:
inlining failed in call to 'relpSessFreePermittedPeers': function not considered for inlining [-Werror=inline]
so use the compiler flag '-Wno-error=inline' for DEBUG_OPTIMIZATION only.
Tracked by upstream bug: https://github.com/rsyslog/librelp/issues/256
but it's looking like a toolchain bug.
--- meta-oe/recipes-extended/rsyslog/librelp_1.11.0.bb | 4 ++++ 1 file changed, 4 insertions(+)
meta-oe/recipes-extended/rsyslog/librelp_1.11.0.bb +4 -0
@@ -14,3 +14,7 @@ SRCREV = "b421f56d9ee31a966058d23bd23c966221c91396" S = "${WORKDIR}/git" inherit autotools pkgconfig + +DEBUG_OPTIMIZATION:append = " -Wno-error=inline" + +
Signature · 1 line
2.39.0