<div dir="auto">For some of us, our processors aren't too strong to build unneeded files 😅 Also, I had figured Meson's disablers would handle this nicely from an impl standpoint. <div dir="auto"><br></div><div dir="auto">That being said, I totally understand why you wouldn't want to throw on a ton conflicting options that may not be used that often. <br><br><div data-smartmail="gmail_signature" dir="auto">--<br>Ryan (ライアン)<br>Yoko Shimomura, ryo (supercell/EGOIST), Hiroyuki Sawano >> everyone else<br><a href="https://refi64.com/">https://refi64.com/</a></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Mar 22, 2019, 6:49 AM Lennart Poettering <<a href="mailto:lennart@poettering.net">lennart@poettering.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Do, 21.03.19 20:19, Ryan Gonzalez (<a href="mailto:rymg19@gmail.com" target="_blank" rel="noreferrer">rymg19@gmail.com</a>) wrote:<br>
<br>
> Hello!<br>
><br>
> I've come to really love using the sd-bus and sd-event APIs for lightweight<br>
> D-Bus access and event loops, and I'm sure I'm not the only one. The amount<br>
> of bindings to other languages for stuff like sd-bus. However, this<br>
> unfortunately doesn't work in a Flatpak environment, and building the<br>
> entirety of systemd for some libsystemd stuff just...isn't that<br>
> great.<br>
<br>
Why not? What's the problem? I mean, sure you waste a bit of CPU time,<br>
but if you build a minimal build and just throw away everything you<br>
are not interested in, what's the problem with that?<br>
<br>
> My idea was to add a Meson config option that would just build the systemd<br>
> libraries, e.g. -Donly-public-libraries.<br>
><br>
> That being said, I know that not all the libraries would be buildable this<br>
> way. At minimum, udev requires the library version to match the host:<br>
> <a href="https://lists.freedesktop.org/archives/systemd-devel/2014-October/024539.html" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/archives/systemd-devel/2014-October/024539.html</a><br>
<br>
While there hasn't been a compat breakage in this for a while we<br>
generally do not guarantee api stability between libudev and udev's<br>
database, so yes, you are are not supposed to mix&match libudev with<br>
arbitrary host udev versions.<br>
<br>
> So I guess this comes down to:<br>
><br>
> - Would libsystemd work standalone? What features *wouldn't* work? (I'm<br>
> guessing the device and journal APIs.)<br>
<br>
Depends. sd-bus and sd-event should be fine. sd-device sd-login otoh<br>
probably not so much.<br>
<br>
> - Would a flag like this be considered for addition to the build scripts?<br>
<br>
Hmm, people request something like this all the time, but I am a bit<br>
conservative on these things, I really don#t want to drown our build<br>
system in too many options that all conflict with each other...<br>
<br>
In particular I am not convinced at all that suddenly introducing<br>
negative options (i.e. options that do not disable/enable a specific<br>
component, but disable/enable all but some) is really a great idea, in<br>
particuar, because such logic of "everything else but me" creates all<br>
kinds of conflicts if you combine them with similar options. (i mean,<br>
what is that even supposed to mean then?)<br>
<br>
Lennart<br>
<br>
--<br>
Lennart Poettering, Berlin<br>
</blockquote></div>