[c9354ea0] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[fe4bcdb] | 7 | <!-- <!ENTITY udev-download-http "http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev-&udev-version;.tar.bz2"> -->
|
---|
| 8 | <!ENTITY udev-download-http "http://www.kernel.org/pub/linux/utils/kernel/hotplug/">
|
---|
[c9354ea0] | 9 | <!ENTITY udev-download-ftp " ">
|
---|
[fe4bcdb] | 10 | <!-- <!ENTITY udev-md5sum "aeae0e6273dcbec246c3c1b9868ebed1"> -->
|
---|
| 11 | <!ENTITY udev-size "~500 KB">
|
---|
| 12 | <!ENTITY udev-buildsize "~10 MB">
|
---|
| 13 | <!ENTITY udev-time "~1.8 SBU">
|
---|
[c9354ea0] | 14 | ]>
|
---|
| 15 |
|
---|
| 16 | <sect1 id="udev" xreflabel="udev-&udev-version;">
|
---|
| 17 | <?dbhtml filename="udev.html"?>
|
---|
| 18 |
|
---|
| 19 | <sect1info>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
[fe4bcdb] | 23 | <title>Udev-&udev-version;</title>
|
---|
[c9354ea0] | 24 |
|
---|
| 25 | <indexterm zone="udev">
|
---|
| 26 | <primary sortas="a-udev">udev</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
[fe4bcdb] | 30 | <title>Introduction to Udev</title>
|
---|
[c9354ea0] | 31 |
|
---|
[0d7900a] | 32 | <note><para>If you installed LFS from SVN-20120719, LFS-7.2, or later,
|
---|
[e6ce81b6] | 33 | use <xref linkend='udev-extras'/> instead of this page.</para></note>
|
---|
| 34 |
|
---|
[c9354ea0] | 35 | <para><application>Udev</application> was indeed installed in LFS and there
|
---|
[fe4bcdb] | 36 | is no reason to reinstall it unless you are going to install a package such
|
---|
| 37 | as <application>UPower</application>. This installation of
|
---|
| 38 | <application>Udev</application> enables extra features which includes
|
---|
| 39 | <application>gudev</application>, a requirement for
|
---|
| 40 | <application>UPower</application> and optionally used by other
|
---|
| 41 | packages.</para>
|
---|
| 42 |
|
---|
| 43 | <para>Unlike any other package in the BLFS book, there is no set version
|
---|
| 44 | of <application>Udev</application> specified to download. Several version
|
---|
| 45 | updates to LFS and none to BLFS means there are probably many different
|
---|
| 46 | versions of <application>Udev</application> on the platforms that BLFS is
|
---|
| 47 | being built upon. Therefore, you should download and use the version of
|
---|
| 48 | <application>Udev</application> your computer currently uses. The BLFS
|
---|
| 49 | team has no experience updating (or reverting to an older version) the
|
---|
| 50 | <application>Udev</application> package <quote>on the fly.</quote> To
|
---|
| 51 | discover the version of <application>Udev</application> your computer
|
---|
| 52 | currently uses, issue <command>/sbin/udevadm --version</command>.</para>
|
---|
| 53 |
|
---|
[4a40984] | 54 | <para>You should look at the LFS instructions for the version you used, to
|
---|
| 55 | check that you are using the correct testfiles (for some versions, this was a
|
---|
| 56 | separate tarball, extracted in the udev directory with --strip-components=1)
|
---|
| 57 | and to compare the configure options you are about to use against those which
|
---|
| 58 | you used to build the version you are running (sometimes, the options change).
|
---|
| 59 | </para>
|
---|
| 60 |
|
---|
| 61 | <para>This package is known to build and work properly using an LFS-7.0
|
---|
| 62 | platform. (Using Udev-173)</para>
|
---|
| 63 |
|
---|
[55b07cb] | 64 | <para>This package is known to build and work properly using an LFS-7.1
|
---|
| 65 | platform. (Using Udev-182)</para>
|
---|
| 66 |
|
---|
[c9354ea0] | 67 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 68 | <itemizedlist spacing="compact">
|
---|
| 69 | <listitem>
|
---|
| 70 | <para>Download (HTTP): <ulink url="&udev-download-http;"/></para>
|
---|
| 71 | </listitem>
|
---|
| 72 | <listitem>
|
---|
| 73 | <para>Download (FTP): <ulink url="&udev-download-ftp;"/></para>
|
---|
| 74 | </listitem>
|
---|
[fe4bcdb] | 75 | <!-- <listitem>
|
---|
[c9354ea0] | 76 | <para>Download MD5 sum: &udev-md5sum;</para>
|
---|
[fe4bcdb] | 77 | </listitem> -->
|
---|
[c9354ea0] | 78 | <listitem>
|
---|
| 79 | <para>Download size: &udev-size;</para>
|
---|
| 80 | </listitem>
|
---|
| 81 | <listitem>
|
---|
| 82 | <para>Estimated disk space required: &udev-buildsize;</para>
|
---|
| 83 | </listitem>
|
---|
| 84 | <listitem>
|
---|
| 85 | <para>Estimated build time: &udev-time;</para>
|
---|
| 86 | </listitem>
|
---|
| 87 | </itemizedlist>
|
---|
| 88 |
|
---|
[fe4bcdb] | 89 | <bridgehead renderas="sect3">Udev Dependencies</bridgehead>
|
---|
[c9354ea0] | 90 |
|
---|
| 91 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[06f2ffb] | 92 | <para role="required"><xref linkend="acl"/>,
|
---|
[476618b] | 93 | <xref linkend="glib2"/>,
|
---|
[06f2ffb] | 94 | <xref linkend="gperf"/>,
|
---|
[476618b] | 95 | <xref linkend="pciutils"/>, and
|
---|
[c9354ea0] | 96 | <xref linkend="usbutils"/></para>
|
---|
| 97 |
|
---|
| 98 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 99 | <para role="optional"><xref linkend="gobject-introspection"/></para>
|
---|
| 100 |
|
---|
| 101 | <para condition="html" role="usernotes">User Notes:
|
---|
| 102 | <ulink url="&blfs-wiki;/udev"/></para>
|
---|
| 103 |
|
---|
| 104 | </sect2>
|
---|
| 105 |
|
---|
| 106 | <sect2 role="installation">
|
---|
[fe4bcdb] | 107 | <title>Installation of Udev</title>
|
---|
[c9354ea0] | 108 |
|
---|
[fe4bcdb] | 109 | <para>Install <application>Udev</application> by running the following
|
---|
[c9354ea0] | 110 | commands:</para>
|
---|
| 111 |
|
---|
[ccffe1c3] | 112 | <screen><userinput>./configure --prefix=/usr \
|
---|
| 113 | --sysconfdir=/etc \
|
---|
| 114 | --sbindir=/sbin \
|
---|
| 115 | --with-rootlibdir=/lib \
|
---|
[473a13d] | 116 | --libexecdir=/lib \
|
---|
[ccffe1c3] | 117 | --with-systemdsystemunitdir=no \
|
---|
| 118 | --disable-introspection \
|
---|
[473a13d] | 119 | --docdir=/usr/share/doc/<udev-&udev-version;> &&
|
---|
[c9354ea0] | 120 | make</userinput></screen>
|
---|
| 121 |
|
---|
| 122 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
| 123 |
|
---|
| 124 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 125 |
|
---|
| 126 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 127 |
|
---|
| 128 | </sect2>
|
---|
| 129 |
|
---|
| 130 | <sect2 role="commands">
|
---|
| 131 | <title>Command Explanations</title>
|
---|
| 132 |
|
---|
[e05cd03f] | 133 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[c9354ea0] | 134 | href="../../xincludes/gtk-doc-rebuild.xml"/>
|
---|
| 135 |
|
---|
[ccffe1c3] | 136 | <para><option>--disable-introspection</option>: Remove this option if
|
---|
| 137 | the optional dependency gobject-introspection is installed.</para>
|
---|
| 138 |
|
---|
| 139 | <para><option>--with-systemdsystemunitdir=no</option>: systemd is not used
|
---|
| 140 | in (B)LFS.</para>
|
---|
[c9354ea0] | 141 |
|
---|
| 142 | </sect2>
|
---|
| 143 |
|
---|
| 144 | <sect2 role="content">
|
---|
| 145 | <title>Contents</title>
|
---|
| 146 |
|
---|
[49b9df3c] | 147 | <para>A list of the installed files, along with their short descriptions
|
---|
| 148 | can be found at
|
---|
| 149 | <ulink url="&lfs-root;/chapter06/udev.html#contents-udev"/>.</para>
|
---|
| 150 |
|
---|
| 151 | <para>The following is some additional content information.</para>
|
---|
| 152 |
|
---|
[c9354ea0] | 153 | <segmentedlist>
|
---|
| 154 | <segtitle>Installed Programs</segtitle>
|
---|
[49b9df3c] | 155 | <segtitle>Installed Library</segtitle>
|
---|
[c9354ea0] | 156 | <segtitle>Installed Directories</segtitle>
|
---|
| 157 |
|
---|
| 158 | <seglistitem>
|
---|
[fee14fb] | 159 | <seg>findkeyboards, firmware, input_id,
|
---|
[0cda5cf] | 160 | keyboard-force-release.sh, keymap, modem-modeswitch, pci-db, udev-acl,
|
---|
| 161 | usb-db, and v4l_id</seg>
|
---|
[49b9df3c] | 162 | <seg>libgudev-1.0.so</seg>
|
---|
[0cda5cf] | 163 | <seg>/lib/udev/keymaps/force-release,
|
---|
| 164 | /usr/{include/gudev-1.0/gudev,share/{doc/udev-&udev-version;,
|
---|
| 165 | gtk-doc/html/gudev}}</seg>
|
---|
[c9354ea0] | 166 | </seglistitem>
|
---|
| 167 | </segmentedlist>
|
---|
| 168 |
|
---|
| 169 | <variablelist>
|
---|
| 170 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 171 | <?dbfo list-presentation="list"?>
|
---|
| 172 | <?dbhtml list-presentation="table"?>
|
---|
| 173 |
|
---|
[49b9df3c] | 174 | <varlistentry id="keymap">
|
---|
| 175 | <term><command>keymap</command></term>
|
---|
[c9354ea0] | 176 | <listitem>
|
---|
[49b9df3c] | 177 | <para>configures computer model specific key mappings.</para>
|
---|
| 178 | <indexterm zone="udev keymap">
|
---|
| 179 | <primary sortas="b-keymap">keymap</primary>
|
---|
[c9354ea0] | 180 | </indexterm>
|
---|
| 181 | </listitem>
|
---|
| 182 | </varlistentry>
|
---|
| 183 |
|
---|
| 184 | <varlistentry id="libgudev-1.0">
|
---|
| 185 | <term><filename class='libraryfile'>libgudev-1.0.so</filename></term>
|
---|
| 186 | <listitem>
|
---|
| 187 | <para>is a GObject-based wrapper library for libudev.</para>
|
---|
| 188 | <indexterm zone="udev libgudev-1.0">
|
---|
| 189 | <primary sortas="c-libgudev-1.0">libgudev-1.0.so</primary>
|
---|
| 190 | </indexterm>
|
---|
| 191 | </listitem>
|
---|
| 192 | </varlistentry>
|
---|
| 193 |
|
---|
| 194 | </variablelist>
|
---|
| 195 |
|
---|
| 196 | </sect2>
|
---|
| 197 |
|
---|
| 198 | </sect1>
|
---|