Bruce Dubbs wrote:
> I grabbed the current git version of Makefile.am and applied the patch 
> with no errors.  autoreconf also works without error.
> 
> ./configure --disable-systemd --with-usb-ids-path=no \
>              --with-pci-ids-path=no
> 
> ...
> 
> configure: error: Package requirements (glib-2.0 >= 2.22.0 gobject-2.0 
>  >= 2.22.0) were not met:

glib is only required for gudev and introspection; "--disable-gudev
--disable-introspection" should mean you don't need to set GLIB_CFLAGS
or GLIB_LIBS either. :-)

> ./configure --disable-systemd --with-usb-ids-path=no
>     --with-pci-ids-path=no \
>      GLIB_CFLAGS=-I/usr/include \
>      GLIB_LIBS=-lglib --disable-keymap \
>      --disable-logind --disable-gudev
> 
> seems to be needed.  make completes.

That seems reasonable, although looking at previous udev builds, I'm
thinking we also need:

--prefix=/usr
--with-rootprefix=''
--bindir=/sbin  (for udevadm)
--sysconfdir=/etc  (for udev.conf)
--libexecdir=/lib  (for udevrulesdir, and thus the rules files)
--libdir=/lib  (for libudev, though we should consider moving the .a,
.la, and .so files back to /usr/lib, since they're only needed to link)
--docdir=/usr/share/doc/udev-VERSION  (since we do that elsewhere)
--disable-introspection  (also requires glib)

Probably also want to double check whether any of the following are
still being built or checked for:

acl  (libsystemd-acl.la)
tcpwrap  (see if configure is checking for it)
hostnamed  (systemd-hostnamed)
timedated  (systemd-timedated)
localed  (libsystemd-dbus.la, systemd-localed, etc.)
coredump  (libsystemd-journal.la, systemd-coredump)
audit  (see if configure is checking for it)
ima  (libsystemd-core.la; safest to kill it I think)
pam  (pam_systemd.la)

since each of them has a --disable-X flag too.

> TODO:
> The systemdir    needs to be specified.

systemdir?

> /etc/systemd     needs removed
> /usr/lib/systemd needs removed

"make pkgincludedir= pkgsysconfdir= install" fixes those.  Though I
should look into trying to fix automake to avoid creating the directory
if the xxxxx_PRIMARIES variable has only spaces in it.

(That would require a new automake release, unfortunately.)

> Not sure if we need to specify libexecdir or not

For the rules, yes.

For systemd-udevd, we need to override rootlibexecdir at "make install"
time as well.  (Would be nice if automake made it easy to rename that
file at install time too.  Or maybe I just don't know how. :-) )

We also need to override pkgconfiglibdir, to put the pkg-config file for
libudev back under /usr.  (Since --libdir=/lib to put the libraries in
the root.)

OTOH maybe we don't need --libdir=/lib, and can use /usr/lib instead;
libudev may not be needed by anything at boot time before mountfs.  I
don't actually know for sure...  :-/

> Rename /usr/share/doc/systemd?  to udev-18x?

--docdir will do that if we want.

> Run the sed against the man pages.

Yup.  Also move the binary, as above.

> Add persistent device support

Yup.  I'd pull them from here:

http://packages.debian.org/search?keywords=udev

since the Debian udev maintainer said he'd be maintaining these scripts
and such, except that Debian unstable is still on -175.  :-/

From -182 would work as well for now, I think.

> Do we skip the keymap stuff?  We did install it in udev-182.  Without 
> --disable-keymap, configure wants gperf.

I'm pretty sure the current book *does* disable keymap.  :-)

Whether that's a good idea or not remains to be seen, but if it requires
gperf, then I'd lean toward disabling it for now and seeing if anyone
asks about it.

> I'm going to wait for -185 to do more.

Yeah, I'm not even sure what the maintainers think about the patches
yet.  :-)

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to