[systemd-devel] udev
Mike Gilbert
floppym at gentoo.org
Thu Oct 26 16:23:47 UTC 2017
On Thu, Oct 26, 2017 at 11:45 AM, Mantas Mikulėnas <grawity at gmail.com> wrote:
> On Thu, Oct 26, 2017, 18:26 David Henderson <dhenderson at digital-pipe.com>
> wrote:
>>
>> Good afternoon all! I have been looking for the udev source code to
>> compile the library and utilities and it appears it is bundled in the
>> systemd software. I have run autoreconf to generate a configure
>> script (using version 233 since I don't have meson), but could not see
>> a way to just compile this software. How do I accomplish this?
>
>
> You could run `make systemd-udevd libudev.so`.
>
> I'm not sure how to package just udevd. Maybe take a look at how distros
> like Gentoo achieve this.
For reference:
https://gitweb.gentoo.org/repo/gentoo.git/tree/sys-fs/udev/udev-233.ebuild?id=2f9f0fbb62866409b8ae0252a2b280d148dd9d73
It's pretty ugly. We build around a dozen targets, and (ab)use
automake install targets to selectively install bits and pieces. See
the multilib_src_compile and multilib_src_install functions.
Here's the meson version, for comparison. It's still pretty ugly, and
we have to install things manually since there are no partial install
targets.
https://gitweb.gentoo.org/repo/gentoo.git/tree/sys-fs/udev/udev-235.ebuild?id=2f9f0fbb62866409b8ae0252a2b280d148dd9d73
Anyway, if you have any questions, feel free to ping me (floppym) on Freenode.
More information about the systemd-devel
mailing list