rsyslog: make libyaml support optional via RSYSLOG_libyaml
authorAlexandru Ardelean <redacted>
Sat, 16 May 2026 16:55:53 +0000 (19:55 +0300)
committerAlexandru Ardelean <redacted>
Wed, 20 May 2026 05:57:38 +0000 (08:57 +0300)
commit98a90ef9f310ba06cbe33d8d1159281487945b46
tree934a6065b76811bcdb6da50793cdea785d928cd5
parenta3e62ace73117475f32dc89d53fe482013d1f6e3
rsyslog: make libyaml support optional via RSYSLOG_libyaml

The upstream rsyslog build links against libyaml-0.so.2 whenever
pkg-config detects yaml-0.1, which made libyaml a hard dependency
of the rsyslog binary without any way to opt out from OpenWrt
config. libyaml is only used for YAML (.yaml/.yml) configuration
files and for loading rate-limiting policies from external files;
RainerScript (.conf) installs do not need it.

Introduce a new RSYSLOG_libyaml Config.in switch, default off, and
gate the +libyaml DEPENDS entry on it. Pass --enable-libyaml or
--disable-libyaml to configure based on the switch.

The upstream configure script in 8.2604.0 does not understand a
--disable-libyaml flag (libyaml was unconditionally autodetected).
Backport upstream commit c5c244861 ("configure: make libyaml
default-on explicit") as 001-configure-make-libyaml-default-on-
explicit.patch, which adds the AC_ARG_ENABLE(libyaml) block. The
patch dissolves cleanly once the package is bumped to 8.2606.0+.
PKG_FIXUP:=autoreconf is added so the configure.ac change flows
into the generated configure script during the SDK build.

Signed-off-by: Alexandru Ardelean <redacted>
admin/rsyslog/Config.in
admin/rsyslog/Makefile
admin/rsyslog/patches/001-configure-make-libyaml-default-on-explicit.patch [new file with mode: 0644]
git clone https://git.99rst.org/PROJECT