summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/rsyslog
Commit message (Collapse)AuthorAgeFilesLines
* rsyslog: avoid recompiling program during running ptestMingli Yu2018-09-301-0/+4
| | | | | | | | | | | | | | | | | | | | | | * 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>
* rsyslog: update from 8.36 to 8.37Randy MacLeod2018-08-302-44/+2
| | | | | | | | 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>
* rsyslog: add PACKAGECONFIG for imjournalChen Qi2018-08-052-0/+11
| | | | | | | | | | | Add PACKAGECONFIG for imjournal, and add corresponding configuration to /etc/rsyslog.d/imjournal.conf when it's enabled. Default to disable it. This patch also enables rsyslog.conf to include configuration files /etc/rsyslog.d/*.conf. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libfastjson: backport patch to fix compilation errorChen Qi2018-08-022-1/+48
| | | | | | | | | | | I've met the following compilation error. | ../git/json_object.c:415:3: error: jump skips variable initialization [-Werror=jump-misses-init] Backport a patch to fix it. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* librelp: Upgrade to 1.2.16Mingli Yu2018-08-023-2/+129
| | | | | | | | | | | * Add 0001-src-tcp.c-fix-jump-misses-init-error.patch to fix -Werror=jump-misses-init error * Add 0001-src-tcp.c-increase-the-size-of-szHname.patch to fix -Werror=format-truncation error when security_flags turned on Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* rsyslog: fix configuration file for logrotateChen Qi2018-08-022-2/+3
| | | | | | | | | | | | | | | | The logrotate.rsyslog file uses 'cat /var/run/rsyslogd.pid' to determine the pid of rsyslogd daemon. This is incorrect, because rsyslogd may start in a way that does not create rsyslog.pid file. Failing to send HUP signal to rsyslogd daemon will result in unexpected behaviour. e.g. rsyslogd is writing to /var/log/messages-xxxx instead of /var/log/messages. We should really use pkill to send HUP signal to rsyslogd to ensure correct behaviour. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* rsyslog: fix race in parallel buildsHongxu Jia2018-07-272-0/+42
| | | | | | | | | | | | | | | | | | If libgcry.la is built later than lmcry_gcry.la, there is a failure: [snip] |../aarch64-wrs-linux-libtool --tag=CC --mode=link aarch64-wrs-linux-gcc -o lmcry_gcry.la lmcry_gcry_la-lmcry_gcry.lo libgcry.la -lgcrypt |aarch64-wrs-linux-libtool: error: cannot find the library 'libgcry.la' or unhandled argument 'libgcry.la' |Makefile:1049: recipe for target 'lmcry_gcry.la' failed |make[2]: *** [lmcry_gcry.la] Error 1 [snip] The LIBADD of lmcry_gcry.la contains libgcry.la, we should also add libgcry.la to lmcry_gcry.la's DEPENDENCIES. Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* rsyslog: Disable valgrind support on risv64Khem Raj2018-07-141-0/+1
| | | | | | valgrind is not yet working on risc-v arch Signed-off-by: Khem Raj <raj.khem@gmail.com>
* rsyslog: upgrade 8.29.0 -> 8.36.0changqing.li@windriver.com2018-07-033-11/+12
| | | | | Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libfastjson: Upgrade to 0.99.8Mingli Yu2018-06-271-1/+1
| | | | | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* rsyslog: add UPSTREAM_CHECK_URIYi Zhao2018-05-291-0/+3
| | | | | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* rsyslog: refresh patchesYi Zhao2018-05-015-70/+52
| | | | | | | | Refresh patches with devtool command to fix do_patch warning. Drop 0001-Undefine-GLOB_BRACE.patch since it had been fixed upstream. Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
* rsyslog: update from 8.22 to 8.29Randy MacLeod2017-09-223-135/+3
| | | | | | | | | | | | Drop two patches: CVE-2017-12588.patch 0001-core-bugfix-segfault-after-configuration-errors.patch since they are included in 8.29. Update the testbench configuration flags. Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* librelp: upgrade from 1.2.12 to 1.2.14Randy MacLeod2017-09-221-1/+1
| | | | | Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* rsyslog: fix segfault after configuration errorsOvidiu Panait2017-09-072-0/+91
| | | | | | | | | | | | | | | | | | | | | | | | | rsyslog will segfault on startup if a) the local machine's hostname is set to a non-FQDN name b) the getaddrinfo() system call fails This scenario is higly unlikely, but may exist especially with provisioned VMs which may not properly be able to do name queries on startup (seen for example on AWS). This patch fixes the situation and also provides more robustness for very early startup error messages when some of the error-reporting subsystem is not yet properly initialized. Note that under these circumstances, errors may only show up on stderr. closes https://github.com/rsyslog/rsyslog/issues/1573 Reference: https://github.com/rsyslog/rsyslog/issues/1573 Upstream patch: https://github.com/rsyslog/rsyslog/commit/6d258339802cb9f13d8a4a157a4b74eccb902d8f Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* rsyslog: install logrotate configuration file into correct locationChen Qi2017-08-281-1/+2
| | | | | | | | | | | | | | Previously we used update-alternatives to manage this configuration file, creating link under /etc/logrotate.d/ directory. However, we later dropped the update-alternatives approach and explicitly setting rsyslog to conflict with other syslog providers. So we need to install the logrotate configuration file under /etc/logrotate.d to make things right. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* rsyslog: fix CVE-2017-12588Chen Qi2017-08-282-0/+41
| | | | | | | | | | | | | | | Backport a patch to fix CVE-2017-12588. The zmq3 input and output modules in rsyslog before 8.28.0 interpreted description fields as format strings, possibly allowing a format string attack with unspecified impact. Reference: https://nvd.nist.gov/vuln/detail/CVE-2017-12588 CVE: CVE-2017-12588 Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* rsyslog: fixes musl libc buildMing Liu2017-03-113-0/+73
| | | | | | | | - struct timeval is defined in sys/time.h with a musl libc. - GLOB_BRACE is not defined in posix and thus not implemented in musl libc. Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* Make use of the new bb.utils.filter() functionPeter Kjellerstedt2017-03-071-2/+1
| | | | | Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* rsyslog: use atomic builtins to avoid race issueQi.Chen@windriver.com2017-02-131-1/+1
| | | | | | | | | | | | | rsyslog uses a small program to check if compiler has atomic builtins or not. This does not work when cross compiling, resulting in potential race issue. In fact, when running ptest on intel-x86-64 board, we have met the race problem. As our compiler gcc, has atomic builtins, we force ap_cv_atomic_builtins to be 'yes' so that rsyslog could make use of the atomic builtins and avoid the race issue. Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
* rsyslog: don't use update-alternatives to manage init scriptMarkus Lehtonen2017-01-101-30/+4
| | | | | | | | | Also, explicitly conflict with other syslog providers. [YOCTO #10433] Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* remove True option to getVar callsJoshua Lock2016-12-021-6/+6
| | | | | | | | | getVar() now defaults to expanding by default, thus remove the True option from getVar() calls with a regex search and replace. Search made with the following regex: getVar ?\(( ?[^,()]*), True\) Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
* rsyslog: upgrade to 8.22.0Chen Qi2016-10-267-358/+10
| | | | | | | | | | | | enable_tls_ptests.patch is removed as the problem has been fixed in new version. fix_build_with_musl.patch is removed as it's no longer suitable. The file it fixes is not even there any more. Several necessary runtime dependencies are added to rsyslog-ptest. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* librelp: add recipeChen Qi2016-10-261-0/+15
| | | | | | | | This is a project under rsyslog. Add its recipe as it's needed by the new version of rsyslog. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* libfastjson: add recipeChen Qi2016-10-261-0/+15
| | | | | | | | This is a project under rsyslog. Add its recipe as it's needed by new version of rsyslog. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* rsyslog: fixes musl libc buildMing Liu2016-10-032-0/+63
| | | | | | | | - struct timeval is defined in sys/time.h with a musl libc. - include fcntl.h without the conditional checking. Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* rsyslog: upgrade to 7.6.7Wenzong Fan2016-09-263-17/+66
| | | | | | | | | | | | | | | * fix CVEs CVE-2014-3634, CVE-2014-3683 * rebase the patch use-pkgconfig-to-check-libgcrypt.patch * backport fixes for build error: lexer.l:34:14: error: expected identifier or '(' before '__extension__' * replace the old configure option '--enable-cached-man-pages' with '--disable-generate-man-pages' Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* meta-oe: use bb.utils.contains() instead of base_contains()Ross Burton2016-04-281-3/+3
| | | | | | | | base_contains() is a compatibility wrapper and may warn in the future, so replace all instances with bb.utils.contains(). Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* rsyslog: add tls related testsTudor Florea2016-02-152-0/+29
| | | | | Signed-off-by: Tudor Florea <tudor.florea@enea.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* rsyslog: avoid deprecated GnuTLS functionsTudor Florea2016-02-153-3/+154
| | | | | Signed-off-by: Tudor Florea <tudor.florea@enea.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* rsyslog: blacklist because of gnutls upgradeMartin Jansa2016-01-061-0/+3
| | | | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* rsyslog: fix ptestWenzong Fan2015-09-232-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | After rsyslog updated to 7.6.1, ptest fails to build & run since the serial-tests config patch was dropped: - rsyslog-use-serial-tests-config-needed-by-ptest.patch This patch involved serial test harness: + AM_INIT_AUTOMAKE([serial-tests]) Which is deprecated in favour of parallel test harness. Automake generated a parallel test harness by default. It features automatic collection of the test scripts output in .log files ... More details please refer to: http://www.gnu.org/software/automake/manual/html_node/Parallel-Test-Harness.html To enable the ptest with new changes, we should: * add target 'buildtest-TESTS' for building test components; * fix 'top_srcdir' and install required script 'test-driver'; * run testcases with target 'check-TESTS'. Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* rsyslog: upgrade to 7.6.1Roy Li2015-08-245-237/+14
| | | | | | | | | | | | 1. remove two backport patch: 0001-bugfix-potential-abort-during-HUP.patch and 0001-remove-memleak-introduced-by-GenerateLocalHostName-H.patch 2. update the patch json-0.12-fix.patch 3. remove a obsolete patch rsyslog-use-serial-tests-config-needed-by-ptest.patch 4. update the Dependence 5. update the checksum Signed-off-by: Roy Li <rongqing.li@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* rsyslog: remove the dependency on valgrind for mips64n32Yue Tao2015-07-161-0/+1
| | | | | | | | valgrind is not supported mips64n32, so remove it Signed-off-by: Yue Tao <Yue.Tao@windriver.com> Signed-off-by: Roy Li <rongqing.li@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* rsyslogd: Backport upstream commits to fix rsyslog segmentation fault when ↵Li Zhou2015-05-113-0/+196
| | | | | | | | | | | | | | heavy load Backport <commit 9a775051f7373176c6e54bee1110965342dd41ad> and <commit 17e1ee2539cea6bac16832b488afd52b20a348ac> from rsyslog upstream <https://github.com/rsyslog/rsyslog> to solve issue: rsyslog segmentation fault when heavy load. Solve the race condition in GenerateLocalHostNameProperty between the prop.Destruct(&propLocalHostName) and prop.Construct(&propLocalHostName). Signed-off-by: Li Zhou <li.zhou@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* rsyslog: fix name of syslogd ua groupSteffen Sledz2015-02-271-3/+3
| | | | | | | | All the other syslogd implementations use 'syslogd' as update alternatives group name. So rsyslogd should use this too. Signed-off-by: Steffen Sledz <sledz@dresearch-fe.de> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* rsyslog: don't call init script in logrotate conf fileJackie Huang2015-02-121-2/+2
| | | | | | | | | Send HUP signal instead of calling the reload command of init script in logrotate configure file, so that it also works when the init system is systemd. Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* rsyslog: add packageconfig for imfile moduleJackie Huang2015-02-121-1/+2
| | | | | | | * imfile: Text file input module, added as default Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* rsyslog: set the default file permissionJackie Huang2015-01-281-0/+2
| | | | | | | | We use the default file permission root:adm for syslog-ng, so set the same for rsyslog. Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* rsyslog: fix build with json-0.12Martin Jansa2015-01-152-0/+46
| | | | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* rsyslog: add ptest supportJackie Huang2014-09-264-1/+185
| | | | | | | | | | | | Changed: - add a patch to use serial-tests config needed by ptest - add a patch to fix rsyslog test cases don't finish issue - add run-ptest, do_compile_ptest and do_install_ptest - add dependency for rsyslog-ptest - add PACKAGECONFIG for valgrind Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* rsyslog: add UPDATE_ALTERNATIVE for syslog-serviceChen Qi2014-09-261-1/+8
| | | | | | | | | Use ALTERNATIVE mechanism in OE to manage the syslog service to avoid conflicts with other syslog implementations like sysklogd or busybox. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* rsyslog: use syslog as the script name of syslog-initJackie Huang2014-08-111-4/+3
| | | | | | | | Use syslog as the default symlink and INITSCRIPT_NAME just as sysklogd and syslog-ng did. Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* rsyslog: use pkgconfig to check libgcryptRoy Li2014-06-212-0/+49
| | | | | | | | libgcrypt does no longer provide libgcrypt-config, and provide *.pc, so we should use pkgconfig to check Signed-off-by: Roy Li <rongqing.li@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* rsyslog: add DEPENDS on bison-native and flex-nativeJackie Huang2014-05-031-1/+1
| | | | Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
* rsyslog: Add config files and use update-alternatives for rsyslogJackie Huang2014-05-033-2/+152
| | | | | | | | | - Add a logrotate config file for rsyslog. - Change rsyslog.conf to be compatible with sysklogd.conf. - Use update-alternatives since we have other syslog systems: sysklogd, busybox-syslog, etc. Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
* rsyslog: add PACKAGECONFIG for optional featuresJackie Huang2014-05-031-2/+32
| | | | | | | | | rsyslog supports many optional features, add PACKAGECONFIG for them to ensures that the dependency on related packages is deterministic and so that we can easily enable/disable features. Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
* rsyslog: use BPN to fix multilib and add all licensesJackie Huang2014-05-031-4/+17
| | | | | | | | - use BPN instead of PN to fix multilib builds - add all three licenses - add DESCRIPTION Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
* rsyslog: add status command and a minor fix for initscriptJackie Huang2014-04-201-2/+30
| | | | | | | | - add status command - add --oknodo for do_start Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* rsyslog: remove unsupported option from initscriptJack Mitchell2014-04-201-1/+1
| | | | | | | | > starting rsyslogd ... rsyslogd: error: option -c > is no longer supported - ignored Signed-off-by: Jack Mitchell <jmitchell@cbnl.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>