Re: Standalone libsystemd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx> 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.


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@xxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel
_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux