Bug 12301

Summary: systemd-journal-gatewayd: config options broken
Product: buildroot Reporter: Michael Nosthoff <buildroot>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: buildroot
Priority: P5    
Version: 2019.08   
Target Milestone: 2020.11   
Hardware: All   
OS: Linux   
Host: Target:
Build:

Description Michael Nosthoff 2019-10-30 13:02:49 UTC
Hi,

I updated my systemd system build to BR 2019.08 and noticed that systemd-journal-gatewayd was missing in the resulting image.


Commit 2dbce34b3a2c8fc1a854395f6c33df658371eae4 added a config option BR2_PACKAGE_SYSTEMD_JOURNAL_REMOTE to enable the systemd-journal-remote service.

If it is selected the -Dremote=true flag gets explicitly set. If not it is explicitly set to false.

But as defined in the systemd config (see [0]) -Dremote=true is used to enable systemd-journal-remote as well as systemd-journal-gatewayd. There is no switch to only build one of them.

Further the default value of the -Dremote flag is true (see [1]).

So previous to this commit both binaries are already built and installed when BR2_PACKAGE_SYSTEMD_JOURNAL_GATEWAY is set. I verfied this in my built 2019.05.1 image. Both binaries are there.


As with this commit, when BR2_PACKAGE_SYSTEMD_JOURNAL_GATEWAY=Y and BR2_PACKAGE_SYSTEMD_JOURNAL_REMOTE=N is set -Dremote=false is explicitly set and systemd builds neither of the binaries.



So I would suggest to revert this commit as it breaks configs and adds no functionality. 
Also I would suggest to extend the description of BR2_PACKAGE_SYSTEMD_JOURNAL_GATEWAY to include a mention of "systemd-journal-remote".


Regards,
Michael

[0] https://github.com/systemd/systemd/blob/master/meson.build#L2207
[1] https://github.com/systemd/systemd/blob/master/meson.build#L1253
Comment 1 Thomas Petazzoni 2019-11-27 20:47:07 UTC
Thanks for your bug report, I replied to the original author of the problematic patch, and also added one of our systemd experts in the loop: http://lists.busybox.net/pipermail/buildroot/2019-November/267243.html.