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