<div><div dir="auto">I should elaborate that what I would like to see exactly for our use case is</div></div><div dir="auto">$prefix/include/systemd/*.h</div><div dir="auto">$prefix/lib/lib(systemd|udev).(so*|a)</div><div dir="auto">$prefix/lib/pkgconfig/lib(systemd|udev).pc</div><div dir="auto"><br></div><div dir="auto">Optionally it would be nice to have the man pages for the public APIs generated.</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 21, 2019 at 23:14 William Kennington <<a href="mailto:william@wkennington.com">william@wkennington.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div dir="auto">This would be amazing for us, since we basically do this already on our system to work around the issue of circular dependencies on libsystemd and libudev for systemd dependencies. I currently just patch the meson.build to remove everything we don’t need for the library build.</div></div><div dir="auto"><br></div><div dir="auto"><div><a href="https://github.com/wkennington/nixpkgs/blob/systemd-new/pkgs/all-pkgs/s/systemd/lib.nix" target="_blank">https://github.com/wkennington/nixpkgs/blob/systemd-new/pkgs/all-pkgs/s/systemd/lib.nix</a></div><br></div><div dir="auto">I can’t highlight a line, but you can see my workaround for this patching the build. It’s not perfect, but it is close enough and only actually installs what we need. Im sure you could patch by hand and do a better job.</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 21, 2019 at 18:26 Ryan Gonzalez <<a href="mailto:rymg19@gmail.com" target="_blank">rymg19@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr">Hello!<div><br></div><div>I've come to really love using the sd-bus and sd-event APIs for lightweight D-Bus access and event loops, and I'm sure I'm not the only one. The amount of bindings to other languages for stuff like sd-bus. However, this unfortunately doesn't work in a Flatpak environment, and building the entirety of systemd for some libsystemd stuff just...isn't that great.</div><div><br></div><div>My idea was to add a Meson config option that would just build the systemd libraries, e.g. -Donly-public-libraries.</div><div><br></div><div>That being said, I know that not all the libraries would be buildable this way. At minimum, udev requires the library version to match the host: <a href="https://lists.freedesktop.org/archives/systemd-devel/2014-October/024539.html" target="_blank">https://lists.freedesktop.org/archives/systemd-devel/2014-October/024539.html</a></div><div><br></div><div>So I guess this comes down to:</div><div><br></div><div>- Would libsystemd work standalone? What features *wouldn't* work? (I'm guessing the device and journal APIs.)</div><div>- Would a flag like this be considered for addition to the build scripts?</div></div></div><div dir="ltr"><div dir="ltr"><div><div><br></div>-- <br><div dir="ltr" class="m_4935749907018335198m_-6682039046913782782gmail_signature">Ryan (ライアン)<br>Yoko Shimomura, ryo (supercell/EGOIST), Hiroyuki Sawano >> everyone else<br><a href="https://refi64.com/" target="_blank">https://refi64.com/</a></div></div></div></div>
_______________________________________________<br>
systemd-devel mailing list<br>
<a href="mailto:systemd-devel@lists.freedesktop.org" target="_blank">systemd-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/systemd-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/systemd-devel</a></blockquote></div></div>
</blockquote></div></div>