[c07080d] | 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 |
|
---|
[0d7900a] | 7 | <!ENTITY systemd-download-http "http://www.freedesktop.org/wiki/Software/systemd/">
|
---|
[c07080d] | 8 | <!ENTITY systemd-download-ftp " ">
|
---|
| 9 | <!-- <!ENTITY udev-md5sum " "> -->
|
---|
| 10 | <!ENTITY systemd-size "~1.3 MB">
|
---|
| 11 | <!ENTITY systemd-buildsize "~16 MB">
|
---|
| 12 | <!ENTITY systemd-time "~0.1 SBU">
|
---|
| 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="udev-extras" xreflabel="udev-extras (from systemd)">
|
---|
| 16 | <?dbhtml filename="udev-extras.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>Udev Extras (from systemd)</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="udev-extras">
|
---|
| 26 | <primary sortas="a-udev-extras">udev extras (from systemd)</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to Udev Extras</title>
|
---|
| 31 |
|
---|
| 32 | <para>In 2012, the <application>Udev</application> code distribution was
|
---|
| 33 | merged with <application>systemd</application>.
|
---|
| 34 | <application>Systemd</application> is a set of programs that replace the
|
---|
| 35 | <application>SysVInit</application> package used by LFS and is much more
|
---|
| 36 | complex. It is not compatible with the LFS bootscripts and has many
|
---|
| 37 | problems and few advantages for most LFS users.</para>
|
---|
[0d7900a] | 38 |
|
---|
[c07080d] | 39 | <para>The procedures below extract libraries and programs from the systemd
|
---|
| 40 | sources that could not be built in LFS due to library dependency
|
---|
| 41 | issues.</para>
|
---|
| 42 |
|
---|
| 43 | <para>Unlike any other package in the BLFS book, there is no set version
|
---|
| 44 | of <application>systemd</application> specified to download. Several version
|
---|
| 45 | updates to LFS and 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>systemd</application> your computer currently uses. The BLFS
|
---|
| 49 | team has no experience updating (or reverting to an older version) the
|
---|
| 50 | <application>Udev</application> programs <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 |
|
---|
[0b33a30] | 54 | &lfs73_checked;
|
---|
[c07080d] | 55 |
|
---|
| 56 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 57 | <itemizedlist spacing="compact">
|
---|
| 58 | <listitem>
|
---|
| 59 | <para>Download (HTTP): <ulink url="&systemd-download-http;"/></para>
|
---|
| 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
| 62 | <para>Download (FTP): <ulink url="&systemd-download-ftp;"/></para>
|
---|
| 63 | </listitem>
|
---|
| 64 | <!-- <listitem>
|
---|
| 65 | <para>Download MD5 sum: &systemd-md5sum;</para>
|
---|
| 66 | </listitem> -->
|
---|
| 67 | <listitem>
|
---|
| 68 | <para>Download size: &systemd-size;</para>
|
---|
| 69 | </listitem>
|
---|
| 70 | <listitem>
|
---|
| 71 | <para>Estimated disk space required: &systemd-buildsize;</para>
|
---|
| 72 | </listitem>
|
---|
| 73 | <listitem>
|
---|
| 74 | <para>Estimated build time: &systemd-time;</para>
|
---|
| 75 | </listitem>
|
---|
| 76 | </itemizedlist>
|
---|
| 77 |
|
---|
| 78 | <bridgehead renderas="sect3">Udev Extras Dependencies</bridgehead>
|
---|
| 79 |
|
---|
| 80 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 81 | <para role="required">
|
---|
| 82 | <ulink url="http://anduin.linuxfromscratch.org/sources/other/"/>
|
---|
| 83 | (match the udev-lfs-???.tar.bz2 tarball version to the systemd version used in LFS).
|
---|
| 84 | <xref linkend="glib2"/> (for the gudev library),
|
---|
| 85 | <xref linkend="gperf"/> (for keymap), and
|
---|
[0d7900a] | 86 | <xref linkend="gobject-introspection"/> (for gir-data, needed for Gnome)
|
---|
[c07080d] | 87 | </para>
|
---|
| 88 |
|
---|
| 89 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 90 | <para role="optional">
|
---|
| 91 | <xref linkend="acl"/>
|
---|
| 92 | </para>
|
---|
| 93 |
|
---|
| 94 | <bridgehead renderas="sect4">Optional Runtime Dependencies</bridgehead>
|
---|
| 95 | <para role="optional">
|
---|
| 96 | <xref linkend="pciutils"/> and
|
---|
| 97 | <xref linkend="usbutils"/>
|
---|
| 98 | </para>
|
---|
| 99 |
|
---|
| 100 | <para condition="html" role="usernotes">User Notes:
|
---|
| 101 | <ulink url="&blfs-wiki;/udev-extras"/></para>
|
---|
| 102 |
|
---|
| 103 | </sect2>
|
---|
| 104 |
|
---|
| 105 | <sect2 role="installation">
|
---|
| 106 | <title>Installation of Udev Extras</title>
|
---|
| 107 |
|
---|
| 108 | <para>First, put the custom LFS files in place:</para>
|
---|
| 109 |
|
---|
| 110 | <screen><userinput>tar -xf ../udev-lfs-186.tar.bz2</userinput></screen>
|
---|
| 111 |
|
---|
[0b33a30] | 112 | <note><para>For udev-lfs-197-2.tar.bz2, there is a minor error
|
---|
| 113 | in the Makefile. For that version, run:</para>
|
---|
| 114 |
|
---|
| 115 | <screen><userinput>sed -i -e '/samsung-9/d' udev-lfs-197-2/makefile-incl.keymap</userinput></screen></note>
|
---|
| 116 |
|
---|
[c07080d] | 117 | <sect3>
|
---|
| 118 | <title>keymap</title>
|
---|
| 119 | <para>Support for special keys for many laptops is provided by the
|
---|
| 120 | <command>keymap</command> program and supporting files. If the
|
---|
| 121 | <command>keymap</command> capability is desired, use:</para>
|
---|
| 122 |
|
---|
| 123 | <screen><userinput>make -f udev-lfs-186/Makefile.lfs keymap</userinput></screen>
|
---|
| 124 |
|
---|
[0d7900a] | 125 | <para>To install <command>keymap</command> and its associated files,
|
---|
[601a838] | 126 | issue the following command as the
|
---|
| 127 | <systemitem class="username">root</systemitem> user:</para>
|
---|
[c07080d] | 128 |
|
---|
[454ef05] | 129 | <screen role="root"><userinput>make -f udev-lfs-186/Makefile.lfs install-keymap</userinput></screen>
|
---|
[c07080d] | 130 |
|
---|
| 131 | </sect3>
|
---|
| 132 |
|
---|
| 133 | <sect3>
|
---|
| 134 | <title>gudev</title>
|
---|
| 135 |
|
---|
| 136 | <para>To build the <application>libgudev-1.0</application> library and
|
---|
| 137 | interface files, run:</para>
|
---|
[0d7900a] | 138 |
|
---|
[c07080d] | 139 | <screen><userinput>make -f udev-lfs-186/Makefile.lfs gudev</userinput></screen>
|
---|
| 140 |
|
---|
| 141 | <para>Install the <filename class='libraryfile'>gudev</filename> library,
|
---|
| 142 | run, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 143 |
|
---|
[454ef05] | 144 | <screen role="root"><userinput>make -f udev-lfs-186/Makefile.lfs install-gudev</userinput></screen>
|
---|
[c07080d] | 145 |
|
---|
| 146 | </sect3>
|
---|
| 147 |
|
---|
| 148 | <sect3>
|
---|
| 149 | <title>GObject Files</title>
|
---|
| 150 |
|
---|
| 151 | <para>To build the <application>gobject-introspection</application>
|
---|
| 152 | interface (gir) files for the <filename
|
---|
| 153 | class='libraryfile'>libgudev-1.0</filename> library, run:</para>
|
---|
[0d7900a] | 154 |
|
---|
[c07080d] | 155 | <screen><userinput>make -f udev-lfs-186/Makefile.lfs gir-data</userinput></screen>
|
---|
| 156 |
|
---|
| 157 | <para>Install the gir data, as the <systemitem
|
---|
| 158 | class="username">root</systemitem> user:</para>
|
---|
| 159 |
|
---|
[454ef05] | 160 | <screen role="root"><userinput>make -f udev-lfs-186/Makefile.lfs install-gir-data</userinput></screen>
|
---|
[c07080d] | 161 |
|
---|
| 162 | <caution><para>There is a shortcut to build and install all of the
|
---|
| 163 | <application>udev</application> components at once using the
|
---|
| 164 | <emphasis>all</emphasis> and <emphasis>install-all</emphasis>
|
---|
| 165 | <filename>Makefile.lfs</filename> targets. The installation of this target
|
---|
| 166 | will overwrite the base LFS udev files and has not been thoroughly tested
|
---|
| 167 | at the time of this writing. If using this procedure, the udev daemon
|
---|
| 168 | should be stopped before overwriting the existing <filename>udevd</filename>
|
---|
| 169 | and udev libraries.</para></caution>
|
---|
| 170 |
|
---|
| 171 | </sect3>
|
---|
| 172 | </sect2>
|
---|
| 173 |
|
---|
| 174 | <sect2 role="content">
|
---|
| 175 | <title>Contents</title>
|
---|
| 176 |
|
---|
| 177 | <para>A list of the installed files, along with their short descriptions
|
---|
| 178 | can be found at
|
---|
| 179 | <ulink url="&lfs-root;/chapter06/udev.html#contents-udev"/>.</para>
|
---|
| 180 |
|
---|
| 181 | <para>The following is some additional content information.</para>
|
---|
| 182 |
|
---|
| 183 | <segmentedlist>
|
---|
| 184 | <segtitle>Installed Programs</segtitle>
|
---|
| 185 | <segtitle>Installed Library</segtitle>
|
---|
| 186 | <segtitle>Installed Directories</segtitle>
|
---|
| 187 |
|
---|
| 188 | <seglistitem>
|
---|
| 189 | <seg>findkeyboards, keyboard-force-release.sh, and keymap</seg>
|
---|
[0d7900a] | 190 |
|
---|
[c07080d] | 191 | <seg>libgudev-1.0.so</seg>
|
---|
[0d7900a] | 192 |
|
---|
[c07080d] | 193 | <seg>/lib/udev/keymaps/force-release,
|
---|
| 194 | /usr/include/gudev-1.0/gudev,
|
---|
| 195 | /usr/lib/girepository-1.0,
|
---|
| 196 | /usr/share/gir-1.0, and
|
---|
| 197 | /usr/share/gtk-doc/html/gudev</seg>
|
---|
| 198 | </seglistitem>
|
---|
| 199 | </segmentedlist>
|
---|
| 200 |
|
---|
| 201 | <variablelist>
|
---|
| 202 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 203 | <?dbfo list-presentation="list"?>
|
---|
| 204 | <?dbhtml list-presentation="table"?>
|
---|
| 205 |
|
---|
| 206 | <varlistentry id="keymap-systemd">
|
---|
| 207 | <term><command>keymap</command></term>
|
---|
| 208 | <listitem>
|
---|
| 209 | <para>configures computer model specific key mappings.</para>
|
---|
| 210 | <indexterm zone="udev-extras keymap-systemd">
|
---|
| 211 | <primary sortas="b-keymap">keymap (from systemd)</primary>
|
---|
| 212 | </indexterm>
|
---|
| 213 | </listitem>
|
---|
| 214 | </varlistentry>
|
---|
| 215 |
|
---|
| 216 | <varlistentry id="libgudev-1.0-systemd">
|
---|
| 217 | <term><filename class='libraryfile'>libgudev-1.0.so</filename></term>
|
---|
| 218 | <listitem>
|
---|
| 219 | <para>is a GObject-based wrapper library for libudev.</para>
|
---|
| 220 | <indexterm zone="udev-extras libgudev-1.0-systemd">
|
---|
| 221 | <primary sortas="c-libgudev-1.0-systemd">libgudev-1.0.so</primary>
|
---|
| 222 | </indexterm>
|
---|
| 223 | </listitem>
|
---|
| 224 | </varlistentry>
|
---|
| 225 |
|
---|
| 226 | </variablelist>
|
---|
| 227 |
|
---|
| 228 | </sect2>
|
---|
| 229 |
|
---|
| 230 | </sect1>
|
---|