[systemd-devel] Standalone libsystemd
William Kennington
william at wkennington.com
Fri Mar 22 06:20:18 UTC 2019
I should elaborate that what I would like to see exactly for our use case is
$prefix/include/systemd/*.h
$prefix/lib/lib(systemd|udev).(so*|a)
$prefix/lib/pkgconfig/lib(systemd|udev).pc
Optionally it would be nice to have the man pages for the public APIs
generated.
On Thu, Mar 21, 2019 at 23:14 William Kennington <william at wkennington.com>
wrote:
> 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.
>
>
> https://github.com/wkennington/nixpkgs/blob/systemd-new/pkgs/all-pkgs/s/systemd/lib.nix
>
> 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.
>
> On Thu, Mar 21, 2019 at 18:26 Ryan Gonzalez <rymg19 at gmail.com> wrote:
>
>> Hello!
>>
>> 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.
>>
>> My idea was to add a Meson config option that would just build the
>> systemd libraries, e.g. -Donly-public-libraries.
>>
>> 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:
>> https://lists.freedesktop.org/archives/systemd-devel/2014-October/024539.html
>>
>> So I guess this comes down to:
>>
>> - Would libsystemd work standalone? What features *wouldn't* work? (I'm
>> guessing the device and journal APIs.)
>> - Would a flag like this be considered for addition to the build scripts?
>>
>> --
>> Ryan (ライアン)
>> Yoko Shimomura, ryo (supercell/EGOIST), Hiroyuki Sawano >> everyone else
>> https://refi64.com/
>> _______________________________________________
>> systemd-devel mailing list
>> systemd-devel at lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/systemd-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20190321/296083e9/attachment.html>
More information about the systemd-devel
mailing list