Commit Graph

112 Commits

Author SHA1 Message Date
Randy MacLeod
ca10312c4c librelp: make inline errors be warnings in debug build
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>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-03-01 18:10:35 -08:00
Randy MacLeod
35df0b606e 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

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-03-01 18:10:35 -08:00
Randy MacLeod
44cb4f1e12 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

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-03-01 18:10:35 -08:00
Martin Jansa
285b7cd79f .patch: fix Upstream-Status formatting issues reported by patchreview tool from oe-core
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-02-24 08:45:44 -08:00
Randy MacLeod
afe5ea5eaf rsyslog: update to 8.2212.0
ptest results for qemux86-64/kvm with extra FS space and 1 GB RAM:

   Version | Passed | Failed | Skipped
    8.2208 | 465    |      1 |       5
    8.2212 | 470    |      0 |       5

Signed-off-by: Randy MacLeod <randy.macleod@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-01-21 23:28:57 -08:00
Randy MacLeod
a96e7a1ff4 librelp: update to 1.11.0
Drop "-Wno-error", it builds fine now.
Release notes:
   https://github.com/rsyslog/librelp/blob/master/ChangeLog

Signed-off-by: Randy MacLeod <randy.macleod@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-01-21 23:28:57 -08:00
Wang Mingyu
7ef1353bdf librelp: upgrade 1.10.0 -> 1.11.0
Changelog:
===========
- code cleanup
  During the initial librelp implementation it was thought about an
  auto-retry feature (whatever that means). Variable bAutoRetry was
  created to control that behaviour. It's default was 0 (inactive).
  Some code has been written to evaluate that variable and act
  accordingly. However, no setter method for this variable was
  created and it was also nowhere changed from the default value
  of zero. As such, the code activated by it was never used.
  This patch now removes both the variable and the few code lines
  accessing it. This will have no effect, as the code was never
  used.
- testbench: Fix commands in some openssl tests
  Those commands were not correctly handeled on AIX, now they are.
- AIX: Changed ERRNO handling after connect in tcp.c
- AIX: Add handling for other ERRNO codes in tcp.c
- bugfix/TCP: relpTcpGetRtryDirection onyl needs to check direction if SSL is active.
- AIX: in relpTcpRcv we need to set RETRY_recv if errno is 0
  On AIX 10.x, when a recv call fails with len -1 and errno 0
  we can still go into relpTCP_RETRY_recv mode. Testbench on
  rsyslog side appears to be finally working with this fix.
  On AIX 10.x, same problem as above appear to happen with
  connect() as well not setting errno to EINPROGRESS on failure.
  rsyslog ptcp driver does not check errno value at all, which is
  why we did not have this problem on AIX with rsyslog.
  Reduce test message count in receiver-abort.sh to 50000,
  because otherwise the test can timeout on very slow machines.
- openssl: fix openssl exit code avoid double free of ctx
  When more than one librelp instance are used in the same process,
  and the relpTcpExitTLS call was called a second time, the process
  could freeze due a double free (See SSL_CTX_free call).
  Thanks to David GOUARIN <david.gouarin@thalesgroup.com> for the
  discovery and initial fix.
  Also added an openssl instance counter to avoid freeing the SSL library
  which could be still in use by another librelp instance
  in the same process.
- librelp hardening: Fix multiple minor issues causing debugging trouble
  - avoid invalid dbgprint calls
  - avoid double free in relpTcpDestruct (if called twice).
  - add debug output into relpTcpRcv
- OpenSSL: fix depreacted API issues for OpenSSL 3.x
  - OpenSSL error strings are loaded automatically now
  - Adapted Debug Callback for 3.x
- bugfix: compatiblity problem with openssl 1.1
  There were undefined reference to CRYPTO_set_id_callback if system
  use openssl 1.1, which lead to load and/or other erros.
- bugfix: Forward return code from relpEngineSetTLSLib to relpEngineSetTLSLibName
  Previous situation: In case librelp is compiled without openssl
  support but openssl is requested from the user side, then librelp
  silently switches to the default tls driver(gnutls).
- bugfix: make relpEngineSetTLSLib debug safe
  In case pThis == NULL condition is true at line
- bugfix: warnings reported by coverity scan
- testbench: Added compatiblity to run on AIX
  - removed long options from receive send utilities (Not supported on AIX).
  - added checks for existing commands in some tests.
  - added msleep utility from rsyslog (sleep, timeout etc. not supported on AIX).
  - github workflow: Disabled some unrelated tests from rsyslog testbench
- gnutls drvr bugfix: library called exit() under some circumstances
  When relpTcpRcv ran into an error, it could call exit() and thus
  terminate the calling process.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-01-17 01:05:53 -08:00
Zheng Qiu
124cadc423 rsyslog: update 8.2206->8.2208
Package changes mainly include performance improvements to
template processing/json, imptcp, additional functions to openssl, bug fixes and additional/updated tests:
https://github.com/rsyslog/rsyslog/blob/master/ChangeLog

ptest results for qemux86-64 with kvm and increasing filesystem
space to 5GB using IMAGE_ROOTFS_EXTRA_SPACE :

    Version | Passed | Failed | Skipped
    8.2206 | 465 | 0 | 5
    8.2208 | 465 | 1 | 5

The test imfile-statefile-delete.sh is failed because state file
still exists while it should be deleted. Already reported to
rsyslog developers.

    Signed-off-by: Zheng Qiu <zheng.qiu@windriver.com>

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-09-22 16:45:05 -07:00
Aryaman Gupta
0f048c4c46 rsyslog: update 8.2202->8.2206
Package changes mainly include performance improvements to
tcpsrv/imtcp, bug fixes and additional/updated tests:
	https://github.com/rsyslog/rsyslog/blob/master/ChangeLog

ptest results for qemux86-64 with kvm and increasing filesystem space to
4GB using IMAGE_ROOTFS_EXTRA_SPACE :

Version | Passed | Failed | Skipped
8.2202 | 456 | 0 | 5
8.2206 | 465 | 0 | 5

Signed-off-by: Aryaman Gupta <aryaman.gupta@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-07-15 12:48:34 -04:00
Khem Raj
14c7d8a0d7 recipes: Update LICENSE variable to use SPDX license identifiers
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-03-04 17:41:45 -08:00
Randy MacLeod
f967602a43 rsyslog: update to 8.2202
Package changes are mostly bug fixes, and additions to modules/tests:
   https://github.com/rsyslog/rsyslog/blob/master/ChangeLog

I removed the md5sum line since it's obsolete.

ptest results for qemux86-64 with kvm and a timeout
of 1000 seconds to allow stress tests to complete:

Version          | Passed      | Failed   | Skipped
8.2106           | 428         | 0        | 5
8.2202           | 456         | 0        | 5

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-02-16 13:22:10 -08:00
Richard Purdie
b402a3076f recipes: Update SRC_URI branch and protocols
This patch updates SRC_URIs using git to include branch=master if no branch is set
and also to use protocol=https for github urls as generated by the conversion script
in OE-Core.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-11-03 06:57:49 -07:00
Martin Jansa
c61dc077bb Convert to new override syntax
This is the result of automated script (0.9.1) conversion:

oe-core/scripts/contrib/convert-overrides.py .

converting the metadata to use ":" as the override character instead of "_".

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2021-08-03 10:21:25 -07:00
zhengruoqin
f3efc221a0 rsyslog: upgrade 8.2104.0 -> 8.2106.0
Signed-off-by: Zheng Ruoqin <zhengrq.fnst@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-18 08:42:25 -07:00
zangrc
8a0f729a6e rsyslog: upgrade 8.2102.0 -> 8.2104.0
Signed-off-by: Zang Ruochen <zangrc.fnst@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-04-29 09:02:39 -07:00
Yi Fan Yu
9dda6b9608 rsyslog: fix some of the ptests
Run test as non-root 'tester'.
Add more rdepends for ptest.

Introduce a patch to skip checking for a libc header:
    sys/inotify

Python scripts no longer called with ./script.
Remove the need to add the correct shebang.
Ptest results:

    8.2102.0
===============
TOTAL: 424
PASS:  417
SKIP:  5
XFAIL: 0
FAIL:  2
XPASS: 0
ERROR: 0

Remaining failure related to relp:
* imrelp-tls-cfgcmd
* sndrcv_relp_tls-cfgcmd

the test expects an error "relp connect failed with return 10031",
but the connection seems to be established and working.

Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-04-01 08:32:47 -07:00
Yi Fan Yu
bd09abe3e3 rsyslog: Fix rsyslog systemd service not starting
$(sbindir) -> ${sbindir}

Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-03-08 14:11:59 -08:00
Yi Fan Yu
47cdc51e50 librelp: update 1.6.0 -> 1.10.0
Now pulling from the stable branch

Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-03-05 20:24:59 -08:00
Yi Fan Yu
768532675a rsyslog: Update 8.2012.0 -> 8.2102.0
Ptest Results: (Timeout 800) (qemux86-64)
           2012 2102
    ================
    TOTAL: 424  424
    PASS:  369  369
    SKIP:  41   41
    XFAIL: 0    0
    FAIL:  14   14
    XPASS: 0    0
    ERROR: 0    0

Many ptest failures are due to
busybox logger not having the `-d` flag.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-03-03 11:11:06 -08:00
Yi Fan Yu
92e6767e05 rsyslog: Add imhttp to packageconfig
introduced in 8.2010.0
requires civetweb for http input module

Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-02-24 14:18:30 -08:00
Yi Fan Yu
4f0166d871 rsyslog: upgrade 8.2006.0->8.2012.0
new version no longer includes rsyslog.service,
so I copied over the same from 8.2006.
(git version carries it now in ./platform)

referenced rsyslog (upstream) commit id:
cfd07503ba055100a84d75d1a78a5c6cceb9fdab

Ptest Results: (Timeout 800) (qemux86-64)
       2006 2012
================
TOTAL: 411  424
PASS:  361  372
SKIP:  39   41
XFAIL: 0    0
FAIL:  11   11
XPASS: 0    0
ERROR: 0    0

Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-02-16 08:57:15 -08:00
Zang Ruochen
d8fa9b6bc4 libfastjson: upgrade 0.99.8 -> 0.99.9
0001-fix-jump-misses-init-gcc-8-warning.patch
Removed since this is included in 0.99.9.

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-01-29 09:52:13 -08:00
Haiqing Bai
7a0edf425e rsyslog: fix wrong option of PACKAGECONFIG[valgrind]
The source configure.ac shows:
--enable-valgrind: Enable somes special code that rsyslog core developers
                   consider useful for testing.Do NOT use if you don't
                   exactly know what you are doing, except if told so
                   by rsyslog developers.
                   NOT to be used by distro maintainers for building regular
                   packages.

--without-valgrind-testbench:
                   Don't use valgrind in testbench

PACKAGECONFIG[valgrind] should use '--without-valgrind-testbench'
And after this fix, the code which removes the valgrind depended
ptest cases for arm,mips is no longer needed.

Signed-off-by: Haiqing Bai <Haiqing.Bai@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-09-15 20:51:09 -07:00
Changqing Li
4b181cc35a rsyslog: get alias of syslog back
since upstream rsyslog commit
7a671da74f
, Alias=syslog.service is removed from service file, which will make
systemctl restart syslog fail since Unit syslog.service not found when
we set rsyslog to default syslog.

And upstream have change the solution about pull 4317, so during next
upgrade, we need to add our own rsyslog.service, refer
83d5710f07

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-07-13 09:01:58 -07:00
Zang Ruochen
26b0a2f7ca rsyslog: upgrade 0.2004.0 -> 0.2006.0
Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-06-30 07:58:38 -07:00
Zang Ruochen
2c31d26de2 librelp: upgrade 1.5.0 -> 1.6.0
Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-06-30 07:58:38 -07:00
Zang Ruochen
6840175f52 rsyslog: upgrade 8.2002 -> 8.2004
Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-05-28 12:35:51 -07:00
Khem Raj
243a28db17 rsyslog: Enable atomic builtins on rv32
Fixes
rsyslog-8.2002.0/runtime/../action.c:1666: undefined reference to `__sync_bool_compare_and_swap_8'
collect2: error: ld returned 1 exit status

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-04-29 22:32:17 -07:00
Khem Raj
e10df72f44 rsyslog: Disable valgrind dependency for riscv32
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-04-25 08:32:41 -07:00
Randy MacLeod
1ec13d7d95 rsyslog: 8.1911.0 -> 8.2002.0
Add some error handling to run-ptests.

Fix up the new set-envvars script to that 36 new tests pass.
On qemux86-64/kvm the ptest results with extra filesystem
space and a timeout of 800 seconds are:
         1911   2002
 TOTAL:   389    408
 PASS:    339    357
 SKIP:     39     39
 XFAIL:     0      0
 FAIL:     11     12
 XPASS:     0      0
 ERROR:     0      0

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-04-10 17:48:38 -07:00
Pierre-Jean Texier
3a6dd11889 librelp: upgrade 1.4.0 -> 1.5.0
This is a bugfix release:

- bugfix: too late termination of relp Engine on shutdown
  When librelp is instructed to shutdown, it processes messages
  still present inside its receive buffers. It only terminates
  when it needs to wait for new data to arrive.
  Depending on RELP and TCP window size and message length,
  this may cause many messages to be processed while in shutdown.
  Even with default settings, up to 128 messages may be taken off
  the wire and be processed.
  This is a problem regarding the shutdown timing of a librelp
  user (e.g. rsyslog). It may take unexpectedly long to shutdown
  the RELP component and as such timeout may occur in the caller
  code. This is especially the case if the caller does lengthy
  processing when a RELP message is received. Note: It is
  perfectly fine for a caller to do this. The problem is that
  librelp continues to provide new data for a relatively long
  and unexpected period.
  This fix ensure that the relp engine shuts down much quicker
  when shutdown is requested. It now also checks the shutdown
  request while processing already received buffer data.
  This problem was detected when working on
  see also https://github.com/rsyslog/rsyslog/issues/3941
  closes https://github.com/rsyslog/librelp/issues/175
- build system fix: invalid default in configure help text
  closes https://github.com/rsyslog/librelp/issues/169
- error message on invalid TLS library request added
  This way an invalid TLS library (name) can be detected and the
  error presented to the user. So far, invalid library names were
  hard to find.

Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-03-22 18:52:47 +00:00
Khem Raj
b89254a8bb rsyslog: Use python3 in ptests
Adjusts rdeps accordingly

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-02-17 22:27:14 -08:00
Khem Raj
bd2ad24d7b recipes: Make powerpc64le overrides
The existing conditions for ppc64/be are applicable for le as well

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-01-19 02:20:59 -08:00
Randy MacLeod
346b5c63f9 rsyslog: update from 8.1910 to 8.1911
ptest results for qemux86-64 with kvm and a timeout
of 1000 seconds to allow stress tests to complete:

Recipe           | Passed      | Failed   | Skipped
rsyslog-8.1908.0 | 379         | 4        | 2
rsyslog-8.1911.0 | 381         | 4        | 3

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-01-06 08:24:45 -08:00
Khem Raj
c8c31eef9f rsyslog: Do not assume atomic built-ins on ppc
Fixes build issue
runtime/../action.c:2019: undefined reference to `__sync_val_compare_and_swap_8'

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-12-19 11:02:29 -08:00
Khem Raj
a761b39a60 rsyslog: Sync VALGRIND supported arch list
This list should be same as the valgrind recipe

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-12-15 21:08:54 -08:00
Khem Raj
bcd7647609 rsyslog: Dont force enable atomic builtins on mips
This would ensure that checks are performed properly before using them

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-11-18 16:49:49 -08:00
Trevor Gamblin
e51cd9132a rsyslog: upgrade from v8.1908.0 to v8.1910.0
Upgrade rsyslog to latest version for various
fixes including the following CVEs:

CVE: CVE-2019-17040
CVE: CVE-2019-17041

Backported patches for those fixes were removed since
they are contained in v8.1910.0.

Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-10-28 15:26:42 -07:00
Trevor Gamblin
c50a0cd12e rsyslog: fix CVE-2019-17041
Backport fix to zeus; master branch already has v8.1910.0

Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-10-17 05:53:25 -07:00
Trevor Gamblin
a73d898f31 rsyslog: fix CVE-2019-17040
Backport CVE-2019-17040 fix to zeus.

Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-10-11 17:09:41 -07:00
Randy MacLeod
fe611a4e34 rsyslog: update from 8.1907.0 to 8.1908.0
Enable imfile-tests even if they take a while.

ptest results for qemux86-64 with kvm and a timeout
of 1000 seconds to allow stress tests to complete:

Recipe           | Passed      | Failed   | Skipped   | Time(s)
rsyslog-8.1907.0 | 365         | 4        | 2         | 2452
rsyslog-8.1908.0 | 379         | 4        | 2         | 2538

The failed tests for both 8.1907 and 8.1908 are:
  FAIL: Test ./omfile-read-only-errmsg.sh (took 2 seconds)
  FAIL: Test ./omfile-read-only.sh (took 2 seconds)
  FAIL: Test ./privdropuser.sh (took 580 seconds)
  FAIL: Test ./privdropuserid.sh (took 580 seconds)
They are not fixed in this update.

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-09-22 08:12:35 -07:00
Randy MacLeod
da88c383e5 rsyslog: update from 8.1903.0 to 8.1907.0
Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-08-02 18:02:44 -07:00
Khem Raj
ca98c70445 librelp: Pass Wno-error to compiler
After autoconf-archive was upgraded to 2019.01.06 it started to add
extra warning flags via WARN_CFLAGS along with -Werror which means that
now compiler could be stricter and break the build if any of the new
warnings are flagged

The difference is

old

WARN_CFLAGS='-fno-strict-aliasing  -Wimplicit-function-declaration -Wold-style-definition -Wjump-misses-init -Werror -Wno-suggest-attribute=format -Wunused-parameter -Wmissing-field-initializers'

new

WARN_CFLAGS='-fno-strict-aliasing  -Wimplicit-function-declaration -Wold-style-definition -Wjump-misses-init -Wall -Wextra -Wundef -Wwrite-strings -Wpointer-arith -Wmissing-declarations -Wredundant-decls -Wno-unused-parameter -Wno-missing-field-initializers -Wformat=2 -Wcast-align -Wformat-nonliteral -Wformat-security -Wsign-compare -Wstrict-aliasing -Wshadow -Winline -Wpacked -Wmissing-format-attribute -Wmissing-noreturn -Winit-self -Wmissing-include-dirs -Wunused-but-set-variable -Warray-bounds -Wreturn-type -Wswitch-enum -Wswitch-default -Wduplicated-cond -Wduplicated-branches -Wlogical-op -Wrestrict -Wnull-dereference -Wdouble-promotion -pedantic -Wunused-parameter -Wmissing-field-initializers -Werror -Wno-suggest-attribute=format -Wunused-parameter -Wmissing-field-initializers'

Hence we started seing build failure like https://errors.yoctoproject.org/Errors/Details/252684/

This fix just turns off warnings-as-errors so build can still go on, if
we need to fix the warnings they still are present in log.do_compile

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Cc: Robert Yang <liezhi.yang@windriver.com>
2019-07-21 09:31:09 -07:00
Vincent Prince
8f78e302b9 Rsyslog: Add mmjsonparse to PACKAGECONFIG
Signed-off-by: Vincent Prince <vincent.prince.fr@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-04-06 08:22:22 -07:00
Randy MacLeod
61c73067cb rsyslog: Update from 8.37.0 to 8.1903.0
Remove obsoleted fix-ptest-not-finish patch which is
no longer required after rsyslog commit:
   a5b9fbc02 testbench: remove no longer needed .conf files

Add libgcc and python dependencies for ptest:
  Testsuite summary for rsyslog 8.1903.0
  ========================================================================
  # TOTAL: 351
  # PASS:  309
  # SKIP:  38
  # XFAIL: 0
  # FAIL:  4
  # XPASS: 0
  # ERROR: 0
for qemux86[-64] when run with ptest-runner -t 800 since some tests
are stress tests and take quite a while to complete.

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-03-21 21:53:00 -07:00
Mingli Yu
666c23a48a librelp: Upgrade to 1.4.0
Remove one backported patch.

Add openssl to Depends.

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-03-14 07:24:03 -07:00
Brad Bishop
030e8d445a rsyslog: curl-less build with fmhttp PACKAGECONFIG
With all other configure options at their defaults, the dependency on
libcurl can be removed if fmhttp is configured out.  Add an fmhttp
PACKAGECONFIG, still enabled by default, to enable this.

Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-12-05 10:18:59 -08:00
Mingli Yu
e54d1e86e4 librelp: Upgrade to 1.2.18
* Correct the homepage
* Remove two backported patches
* Backport 0001-testbench-improvements.patch
  to fix the below error:
  | ../../git/src/tcp.c:3072:57: error: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1005 [-Werror=format-truncation=]
  |     snprintf(errmsg, sizeof(errmsg), "error connecting: '%s'", errStr);

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-11-26 09:38:14 -08:00
Mingli Yu
0b663c4f9a rsyslog: avoid recompiling program during running ptest
* Previously there is below logic in rsyslog-8.37.0/tests/Makefile
  check-TESTS:

  After below commit in automake,
  8555e7b81 check: Make 'check-TESTS' target depend on test dependencies
  the logic changes to the below:
  check-TESTS: $(check_PROGRAMS)

  It will result in compiling program on
  target when run ptest on target, but
  actually there is no need to rebuild the
  program on target, so change it back to
  "check-TESTS:" to avoid recompiling.

* Update the path of abs_top_builddir
  to guarantee the test env is correct.

Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-30 08:42:03 -07:00
Randy MacLeod
72869dc798 rsyslog: update from 8.36 to 8.37
Drop upstreamed patch:
   edce434db fix race in parallel builds

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-08-30 09:19:35 -07:00