Changeset 410e2ab8
- Timestamp:
- 04/29/2014 12:25:34 AM (9 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 7.10, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, ken/inkscape-core-mods, krejzi/svn, lazarus, nosym, perl-modules, plabs/python-mods, qt5new, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/soup3, xry111/test-20220226
- Children:
- eb631ac
- Parents:
- de1a0d9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
general/sysutils/udev-extras.xml
rde1a0d9 r410e2ab8 8 8 <!ENTITY systemd-download-ftp " "> 9 9 <!-- <!ENTITY udev-md5sum " "> --> 10 <!ENTITY systemd-size " ~1.3 MB">11 <!ENTITY systemd-buildsize " ~16MB">12 <!ENTITY systemd-time " ~0.1SBU">10 <!ENTITY systemd-size "1.3 MB"> 11 <!ENTITY systemd-buildsize "314 MB"> 12 <!ENTITY systemd-time "3.5 SBU"> 13 13 ]> 14 14 … … 30 30 <title>Introduction to Udev Extras</title> 31 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> 32 <para>Udev was installed as a part of systemd in LFS. However, not 33 all components were installed due to dependencies that were unavailable. 34 This procedure adds those missing components.</para> 38 35 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 54 &lfs75_checked; 36 <!-- &lfs75_checked; --> 55 37 56 38 <bridgehead renderas="sect3">Package Information</bridgehead> … … 80 62 <bridgehead renderas="sect4">Required</bridgehead> 81 63 <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), and 64 <xref linkend="glib2"/> (for the gudev library) 65 </para> 66 67 <bridgehead renderas="sect4">Optional Dependencies</bridgehead> 68 <para role="optional"> 85 69 <xref linkend="gobject-introspection"/> (for gir-data, needed for Gnome) 86 70 </para> … … 100 84 <title>Installation of Udev Extras</title> 101 85 102 <para>First, put the custom LFS files in place:</para>86 <para>First, build systemd:</para> 103 87 104 <screen><userinput>UDEV=<version>105 tar -xf ../udev-lfs-$UDEV.tar.bz2</userinput></screen>88 <screen><userinput>./configure --disable-tests && 89 make</userinput></screen> 106 90 107 <note><para>For udev-lfs-197-2.tar.bz2, there is a minor error 108 in the Makefile. For that version, run:</para> 91 <caution><para>If you maintained the default System V/systemd 92 installation in LFS, do not run <userinput>make install</userinput>. 93 It will overwrite the symbolic links needed to switch boot 94 systems.</para></caution> 109 95 110 <screen><userinput>sed -i -e '/samsung-9/d' udev-lfs-197-2/makefile-incl.keymap</userinput></screen></note> 96 <para>Now install gudev as the <systemitem class="username">root</systemitem> 97 user:</para> 111 98 112 <sect3> 113 <title>keymap</title> 99 <screen><userinput>mkdir -pv /usr/include/gudev-1.0/gudev /usr/share/gtk-doc/html/gudev && 114 100 115 <note><para> 116 Starting with systemd-206, the keymap capabilities are built into the 117 udev procedures initial installation in LFS. These procedures only 118 apply to udev versions before 206. 119 </para></note> 101 cp -v src/gudev/gudev.h /usr/include/gudev-1.0/gudev && 102 cp -v src/gudev/gudev[a-e,t]*.h /usr/include/gudev-1.0/gudev && 103 cp -v .libs/libgudev-1.0.so.0.2.0 /usr/lib && 120 104 121 <para> 122 Support for special keys for many laptops is provided by the 123 <command>keymap</command> program and supporting files. If the 124 <command>keymap</command> capability is desired, use: 125 </para> 105 ln -svfn libgudev-1.0.so.0.2.0 /usr/lib/libgudev-1.0.so && 106 ln -svfn libgudev-1.0.so.0.2.0 /usr/lib/libgudev-1.0.so.0 && 126 107 127 <screen><userinput>make -f udev-lfs-$UDEV/Makefile.lfs keymap</userinput></screen> 108 cp -v src/gudev/gudev-1.0.pc /usr/lib/pkgconfig && 109 cp -v docs/gudev/html/* /usr/share/gtk-doc/html/gudev</userinput></screen> 128 110 129 <para> To install <command>keymap</command> and its associated files,130 i ssue the following command as the131 <systemitem class="username">root</systemitem>user:</para>111 <para>If the optional gobject-introspection package was availible, 112 install the gir-data files as the <systemitem class="username">root</systemitem> 113 user:</para> 132 114 133 <screen role="root"><userinput>make -f udev-lfs-$UDEV/Makefile.lfs install-keymap</userinput></screen>115 <screen><userinput>mkdir -pv /usr/lib/girepository-1.0 /usr/share/gir-1.0 && 134 116 135 </sect3> 117 cp -v src/gudev/GUdev-1.0.typelib /usr/lib/girepository-1.0 && 118 cp -v src/gudev/GUdev-1.0.gir /usr/share/gir-1.0</userinput></screen> 136 119 137 <sect3>138 <title>gudev</title>139 140 <para>To build the <application>libgudev-1.0</application> library and141 interface files, run:</para>142 143 <screen><userinput>make -f udev-lfs-$UDEV/Makefile.lfs gudev</userinput></screen>144 145 <para>Install the <filename class='libraryfile'>gudev</filename> library,146 run, as the <systemitem class="username">root</systemitem> user:</para>147 148 <screen role="root"><userinput>make -f udev-lfs-$UDEV/Makefile.lfs install-gudev</userinput></screen>149 150 </sect3>151 152 <sect3>153 <title>GObject Files</title>154 155 <para>To build the <application>gobject-introspection</application>156 interface (gir) files for the <filename157 class='libraryfile'>libgudev-1.0</filename> library, run:</para>158 159 <screen><userinput>make -f udev-lfs-$UDEV/Makefile.lfs gir-data</userinput></screen>160 161 <para>Install the gir data, as the <systemitem162 class="username">root</systemitem> user:</para>163 164 <screen role="root"><userinput>make -f udev-lfs-$UDEV/Makefile.lfs install-gir-data</userinput></screen>165 166 <caution><para>There is a shortcut to build and install all of the167 <application>udev</application> components at once using the168 <emphasis>all</emphasis> and <emphasis>install-all</emphasis>169 <filename>Makefile.lfs</filename> targets. The installation of this target170 will overwrite the base LFS udev files and has not been thoroughly tested171 at the time of this writing. If using this procedure, the udev daemon172 should be stopped before overwriting the existing <filename>udevd</filename>173 and udev libraries.</para></caution>174 175 </sect3>176 120 </sect2> 177 121 178 122 <sect2 role="content"> 179 123 <title>Contents</title> 180 181 <para>A list of the installed files, along with their short descriptions182 can be found at183 <ulink url="&lfs-root;/chapter06/udev.html#contents-udev"/>.</para>184 185 <para>The following is some additional content information.</para>186 124 187 125 <segmentedlist> … … 191 129 192 130 <seglistitem> 193 <seg> findkeyboards, keyboard-force-release.sh, and keymap</seg>131 <seg>None</seg> 194 132 195 133 <seg>libgudev-1.0.so</seg> 196 134 197 <seg>/lib/udev/keymaps/force-release, 198 /usr/include/gudev-1.0/gudev, 135 <seg>/usr/include/gudev-1.0/gudev, 199 136 /usr/lib/girepository-1.0, 200 137 /usr/share/gir-1.0, and … … 207 144 <?dbfo list-presentation="list"?> 208 145 <?dbhtml list-presentation="table"?> 209 210 <varlistentry id="keymap-systemd">211 <term><command>keymap</command></term>212 <listitem>213 <para>configures computer model specific key mappings.</para>214 <indexterm zone="udev-extras keymap-systemd">215 <primary sortas="b-keymap">keymap (from systemd)</primary>216 </indexterm>217 </listitem>218 </varlistentry>219 146 220 147 <varlistentry id="libgudev-1.0-systemd"> -
introduction/welcome/changelog.xml
rde1a0d9 r410e2ab8 49 49 <itemizedlist> 50 50 <listitem> 51 <para>[bdubbs] - Synchronize udev extras with LFS.</para> 52 </listitem> 53 <listitem> 51 54 <para>[bdubbs] - Add references to dbus-launch to window 52 55 managers.</para>
Note:
See TracChangeset
for help on using the changeset viewer.