From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] systemd: add option to enable systemd-journal-remote
Date: Tue, 13 Oct 2020 17:35:24 +0200 [thread overview]
Message-ID: <20201013173524.56b78792@windsurf> (raw)
In-Reply-To: <905ca80c-acb2-3118-f829-baeb175e4a6a@heine.tech>
Hello,
On Tue, 13 Oct 2020 17:16:48 +0200
Michael Nosthoff via buildroot <buildroot@busybox.net> wrote:
> systemd-journald-gateway and systemd-journald-remote are always built
> together. There is no switch.
> But there is some more logic to the -remote flag besides true and false.
> If you don't specify its value is 'auto'.
> And this is where [2] comes into play. It depends on the availability of
> libcurl and/or libmicrohttp which of the 3 binaries is built.
>
> -remote=auto && libcurl=y && libmicrohttpd=n? builds systemd-journal-upload
> -remote=auto && libcurl=n && libmicrohttpd=y? builds
> systemd-journal-gatewayd and systemd-journal-remoted
>
> But if you specify -remote=true you are REQUIRED to have libcurl AND
> libmicrohttp and all three binaries are build.
>
> So this is pretty messy and I can think two ways of getting this at
> least a bit more consistent.
>
>
> The all or nothing solution could be something like this:
>
> |config BR2_PACKAGE_SYSTEMD_JOURNAL_REMOTE bool "journal events remote
> tools" select BR2_PACKAGE_LIBMICROHTTPD |||select BR2_PACKAGE_LIBCURL| help installs systemd-journal-gatewayd, |||systemd-journal-remote| and |||systemd-journal-upload|
> http://www.freedesktop.org/software/systemd/man/systemd-journal-gatewayd.service.html
> |||https://www.freedesktop.org/software/systemd/man/systemd-journal-remote.service.html
> https://www.freedesktop.org/software/systemd/man/systemd-journal-upload.html||
>
> which would set -Dremote=true -Dmicrohttpd=true -Dlibcurl=true
>
> The other solution would be omitting the -remote= flag all together (defaulting it to auto) and steering the tool compilation via depending on -Dlibcurl=true and/or -Dlibmicrohttpd=true.
> This would give the possibility to build systemd-journal-gatewayd and systemd-journal-remote without systemd-journal-upload and vice versa.
> This would actually be the way it was before applying this patch but the descriptions were at least a bit misleading.
>
> Also I'm not sure if the libcurl dependency might be needed for something else in systemd (at least importd also needs it).
>
>
> I'm tending to the first (simpler) solution. Which is actually how it is
> currently as you need to enable both Options now to get all three tools.
> Else you get none.
>
> I hope that wasn't to confusing. What do you think?
I agree the first option you're proposing looks simpler. How big are
each of those tools? Unless one is really really big and unnecessary in
some scenarios, I think your proposed option is straightforward and
would solve the problem.
Thanks for the investigation!
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2020-10-13 15:35 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-13 3:05 [Buildroot] [PATCH] systemd: add option to enable systemd-journal-remote Yi Zheng
2019-06-13 15:35 ` Yann E. MORIN
2019-06-17 19:40 ` Thomas Petazzoni
2019-06-18 7:05 ` Yi Zheng
2019-11-27 20:46 ` Thomas Petazzoni
2019-11-28 8:08 ` Jérémy ROSEN
2019-11-28 8:27 ` Thomas Petazzoni
2019-11-28 15:15 ` Jérémy ROSEN
2019-11-28 9:33 ` Yi Zheng
2020-10-13 15:16 ` Michael Nosthoff
2020-10-13 15:35 ` Thomas Petazzoni [this message]
2020-10-13 15:40 ` Michael Nosthoff
2020-10-13 15:49 ` Thomas Petazzoni
2020-10-13 16:28 ` Yann E. MORIN
2020-10-13 17:03 ` Yann E. MORIN
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201013173524.56b78792@windsurf \
--to=thomas.petazzoni@bootlin.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.