All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] rsyslog: update from 8.2212.0 to 8.2302.0
@ 2023-03-02  0:24 Randy MacLeod
  2023-03-02  0:24 ` [PATCH 2/3] rsyslog: add disabled PACKAGECONFIG to drop capabilities Randy MacLeod
  2023-03-02  0:24 ` [PATCH 3/3] librelp: make inline errors be warnings in debug build Randy MacLeod
  0 siblings, 2 replies; 3+ messages in thread
From: Randy MacLeod @ 2023-03-02  0:24 UTC (permalink / raw)
  To: openembedded-devel

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

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
---
 .../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%)

diff --git a/meta-oe/recipes-extended/rsyslog/rsyslog_8.2212.0.bb b/meta-oe/recipes-extended/rsyslog/rsyslog_8.2302.0.bb
similarity index 98%
rename from meta-oe/recipes-extended/rsyslog/rsyslog_8.2212.0.bb
rename to meta-oe/recipes-extended/rsyslog/rsyslog_8.2302.0.bb
index ed65bed0d..727e23111 100644
--- a/meta-oe/recipes-extended/rsyslog/rsyslog_8.2212.0.bb
+++ b/meta-oe/recipes-extended/rsyslog/rsyslog_8.2302.0.bb
@@ -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+)+)"
-- 
2.39.0



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/3] rsyslog: add disabled PACKAGECONFIG to drop capabilities
  2023-03-02  0:24 [PATCH 1/3] rsyslog: update from 8.2212.0 to 8.2302.0 Randy MacLeod
@ 2023-03-02  0:24 ` Randy MacLeod
  2023-03-02  0:24 ` [PATCH 3/3] librelp: make inline errors be warnings in debug build Randy MacLeod
  1 sibling, 0 replies; 3+ messages in thread
From: Randy MacLeod @ 2023-03-02  0:24 UTC (permalink / raw)
  To: openembedded-devel

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

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
---
 meta-oe/recipes-extended/rsyslog/rsyslog_8.2302.0.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta-oe/recipes-extended/rsyslog/rsyslog_8.2302.0.bb b/meta-oe/recipes-extended/rsyslog/rsyslog_8.2302.0.bb
index 727e23111..39d9516d0 100644
--- a/meta-oe/recipes-extended/rsyslog/rsyslog_8.2302.0.bb
+++ b/meta-oe/recipes-extended/rsyslog/rsyslog_8.2302.0.bb
@@ -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,"
-- 
2.39.0



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 3/3] librelp: make inline errors be warnings in debug build
  2023-03-02  0:24 [PATCH 1/3] rsyslog: update from 8.2212.0 to 8.2302.0 Randy MacLeod
  2023-03-02  0:24 ` [PATCH 2/3] rsyslog: add disabled PACKAGECONFIG to drop capabilities Randy MacLeod
@ 2023-03-02  0:24 ` Randy MacLeod
  1 sibling, 0 replies; 3+ messages in thread
From: Randy MacLeod @ 2023-03-02  0:24 UTC (permalink / raw)
  To: openembedded-devel

With 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.

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
---
 meta-oe/recipes-extended/rsyslog/librelp_1.11.0.bb | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta-oe/recipes-extended/rsyslog/librelp_1.11.0.bb b/meta-oe/recipes-extended/rsyslog/librelp_1.11.0.bb
index da3e9a137..e7b79ad03 100644
--- a/meta-oe/recipes-extended/rsyslog/librelp_1.11.0.bb
+++ b/meta-oe/recipes-extended/rsyslog/librelp_1.11.0.bb
@@ -14,3 +14,7 @@ SRCREV = "b421f56d9ee31a966058d23bd23c966221c91396"
 S = "${WORKDIR}/git"
 
 inherit autotools pkgconfig
+
+DEBUG_OPTIMIZATION:append = " -Wno-error=inline"
+
+
-- 
2.39.0



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-03-02  0:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-02  0:24 [PATCH 1/3] rsyslog: update from 8.2212.0 to 8.2302.0 Randy MacLeod
2023-03-02  0:24 ` [PATCH 2/3] rsyslog: add disabled PACKAGECONFIG to drop capabilities Randy MacLeod
2023-03-02  0:24 ` [PATCH 3/3] librelp: make inline errors be warnings in debug build Randy MacLeod

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.