Fixed
Created: Mar 16, 2015
Updated: Feb 11, 2020
Resolved Date: Apr 19, 2015
Found In Version: 6.0
Fix Version: 6.0.0.20
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Userspace
1. If gnutls is disabled (using PACKAGECONFIG) rsyslog build fails in the do_configure step. This because rsyslog default enables libgcrypto (--enable-libgcrypto) and that is not available in sysroot if gnutls is disabled (as gnutls DEPENDS on libgcrypt).
2. If libgcrypto is disabled (using EXTRA_OECONF or other means) rsyslog build fails in the do_compile step. This because of a bug in the source code.
I have two suggestions for the above problems.
1. Add an additional PACKAGECONFIG for libgcrypto like this:
PACKAGECONFIG[libgcrypt] = "--enable-libgcrypt, --disable-libgcrypt,libgcrypt,"
If you want to enable or disable libgcrypt by default is up to you but I suggest to have is disabled by default and user can enable it in their bbappends if needed.
2. Add the attached patch (bugfix-build-system-libgcrypt.h-needed-even-if-libgr.patch) to rsyslog to fix the compile error. This fix already exists upstream, see https://github.com/rsyslog/rsyslog/commit/db5b81ae6b0632e7e3b0d47b28a064423c1ac156