Udev Extras (from eudev)

Introduction to Udev Extras

Eudev was indeed installed in LFS and there is no reason to reinstall it unless the user is going to install a package such as UPower that needs libgudev. These instructions enable building libgudev and also optionally create gir data for Eudev.

Unlike other packages in BLFS, there is no set version of Eudev in this page's title and no set version specified for download. Version updates to Eudev makes it possible that the user's system may have an Eudev version different from the one in the current LFS book. Therefore, users should use the version of Eudev their computer currently uses. With few exceptions, the BLFS team has no experience updating (or reverting to an older version) the Eudev package “on the fly”.

This package is known to build and work properly using an LFS-7.6 platform.

Package Information

[Caution]

Caution

If you are using a version of BLFS different from your currently installed base LFS system, you should use the Eudev source from your LFS build. Newer versions of Eudev may occasionally be incompatible with former ones, either because they require some new options to be enabled in the kernel or because they change the way rules are parsed. For in-system updates to Eudev, you may want to consult the Gentoo page about upgrading Udev.

Udev Extras Dependencies

Required

GLib-2.40.0

Optional Dependencies

gobject-introspection-1.40.0 (for gir-data, needed for Gnome), docbook-xsl-1.78.1 and libxslt-1.1.28 (to build man pages, which are not shipped with the package), and GTK-Doc-1.20 (to rebuild the documentation)

Optional Runtime Dependencies

pciutils-3.2.1 and usbutils-007

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/udev-extras

Installation of Udev Extras

First, re-build eudev:

sed -r -i 's|/usr(/bin/test)|\1|'         test/udev-test.pl  &&

./configure --prefix=/usr           \
            --bindir=/sbin          \
            --sbindir=/sbin         \
            --libdir=/usr/lib       \
            --sysconfdir=/etc       \
            --libexecdir=/lib       \
            --with-rootprefix=      \
            --with-rootlibdir=/lib  \
            --enable-split-usr      \
            --enable-libkmod        \
            --enable-rule_generator \
            --enable-keymap         \
            --disable-introspection \
            --disable-gtk-doc-html  \
            --with-firmware-path=/lib/firmware &&

make

To test the results, issue: make check.

Now re-install as the root user:

make install

Command Explanations

--disable-introspection: This prevents the gir-data instructions from running. Remove this option if the optional gobject-introspection-1.40.0 package is installed.

--disable-gtk-doc-html: This prevents the building of the html data. Remove this option if the optional GTK-Doc-1.20 package is installed.

Contents

Installed Programs: None
Installed Library: libgudev-1.0.so
Installed Directories: /usr/include/gudev-1.0/gudev, /usr/lib/girepository-1.0, /usr/share/gir-1.0, and /usr/share/gtk-doc/html/gudev (optional)

Short Descriptions

libgudev-1.0.so

is a GObject-based wrapper library for libudev.

Last updated on 2014-09-09 12:00:35 -0700