<p dir="ltr"><br>
On 1 Jun 2014 06:31, "Lennart Poettering" <<a href="mailto:lennart@poettering.net">lennart@poettering.net</a>> wrote:<br>
><br>
> On Sat, 31.05.14 19:43, Samuli Suominen (<a href="mailto:ssuominen@gentoo.org">ssuominen@gentoo.org</a>) wrote:<br>
><br>
> ><br>
> ><br>
> > On 31/05/14 17:10, Samuli Suominen wrote:<br>
> > > On 31/05/14 14:14, Samuli Suominen wrote:<br>
> > >> 1. "libsystemd_network_la_SOURCES =" in Makefile.am includes<br>
> > >> "src/libsystemd-network/network-internal.h"<br>
> > >> and there is no anykind of #ifdef -logic behind it<br>
> > >><br>
> > >> 2. "src/libsystemd-network/network-internal.h" has #include <libkmod.h><br>
> > >> and there is no anykind of #ifdef<br>
> > >> -logic behind it<br>
> > >><br>
> > >> so kmod is hardcoded dependency in systemd-213:<br>
> > >><br>
> > >><br>
> > > This patch is a half-complete hack that only works with<br>
> > > --disable-networkd, as it only covers the files<br>
> > > that are outside of the #if NETWORKD in Makefile.am<br>
> > > As in, I've used this patch only for the package within Gentoo that<br>
> > > builds only udev, not rest of systemd,<br>
> > > that uses --disable-networkd<br>
> > > So consider this as proof of consept, not for inclusion<br>
> > ><br>
> > > - Samuli<br>
> > ><br>
> > ><br>
> > > _______________________________________________<br>
> > > systemd-devel mailing list<br>
> > > <a href="mailto:systemd-devel@lists.freedesktop.org">systemd-devel@lists.freedesktop.org</a><br>
> > > <a href="http://lists.freedesktop.org/mailman/listinfo/systemd-devel">http://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br>
> ><br>
> > I just realized <a href="http://configure.ac">configure.ac</a> already has,<br>
> ><br>
> > AS_IF([test "x$have_networkd" = "xyes" -a "x$have_kmod" != "xyes"],<br>
> > [AC_MSG_ERROR([networkd requires kmod])])<br>
> ><br>
> > So this patch should be considered for inclusion after all as-is. You<br>
> > should credit "Mike Gilbert <<a href="mailto:floppym@gentoo.org">floppym@gentoo.org</a>>" for<br>
> > the patch, not me.<br>
><br>
> I'd prefer I we could fix this properly and allow networkd build without<br>
> kmod. I am very cool on linking against kmod from networkd anyway (in<br>
> particular since I want networkd to run without CAP_SYS_MODULE), so I<br>
> think this could be the least we should be doing...</p>
<p dir="ltr">We should be able to drop the whole kmod thing from networkd any day now (a fix is in net-next). Merging it was probably a mistake in the first place.</p>
<p dir="ltr">Cheers,</p>
<p dir="ltr">Tom</p>