[Buildroot] [PATCH v2 1/1] package/sysklogd: bump to version 2.1.2

Andreas Hilse andreas.hilse at googlemail.com
Wed Jan 20 10:11:30 UTC 2021


Hello Thomas, Hello Joachim,

> > > +SYSKLOGD_CONF_OPTS = --exec-prefix=/ --without-logger
> >
> > The logger tool that comes with sysklogd is quite advanced, allowing the
> > user to leverage the RFC5424 `syslogp()` API to its fullest.  However,
> > it collides with its namesake in BusyBox, but so does the logger tool in
> > util-linux.  I'd very much like to see it in Buildroot, but I can submit
> > a patch later to add menuconfig support :)
>
> Patch welcome indeed!
>
> Regarding the collision with Busybox, we do have a mechanism in place
> to handle that, so it should be fine. Busybox already has the sysklogd
> package in its dependencies, which means that sysklogd if enabled will
> always be built before Busybox. And the Busybox installation is careful
> to not overwrite any file. So if /bin/foobar has been installed by
> sysklogd, even if Busybox has support for /bin/foobar, it will not
> overwrite /bin/foobar with its own symlink.
>

The issue I had with the logger tool is that the base dir for sysklogd
(exec-prefix) is /, thus it is placed in /bin. The busybox logger is
placed in /usr/bin so I ended up with both in my rootfs.

To make this work sysklogd exec-prefix should be /usr - which implies
additional changes in the package files.
Would this be ok?

Best regards
Andreas



More information about the buildroot mailing list