r3348 - trunk/BOOK/general/genlib

randy at linuxfromscratch.org randy at linuxfromscratch.org
Thu Jan 27 19:01:04 PST 2005


Author: randy
Date: 2005-01-27 20:01:04 -0700 (Thu, 27 Jan 2005)
New Revision: 3348

Modified:
   trunk/BOOK/general/genlib/libusb.xml
Log:
Added Autotools reconfiguration and indexing tags to libusb instructions

Modified: trunk/BOOK/general/genlib/libusb.xml
===================================================================
--- trunk/BOOK/general/genlib/libusb.xml	2005-01-27 23:19:30 UTC (rev 3347)
+++ trunk/BOOK/general/genlib/libusb.xml	2005-01-28 03:01:04 UTC (rev 3348)
@@ -7,8 +7,8 @@
 <!ENTITY libusb-download-http "http://prdownloads.sourceforge.net/libusb/libusb-&libusb-version;.tar.gz">
 <!ENTITY libusb-download-ftp " ">
 <!ENTITY libusb-size "314 KB">
-<!ENTITY libusb-buildsize "2.1 MB">
-<!ENTITY libusb-time "0.03 SBU">
+<!ENTITY libusb-buildsize "4.5 MB (includes HTML documentation installation)">
+<!ENTITY libusb-time "0.25 SBU">
 ]>
 
 <sect1 id="libusb" xreflabel="libusb-&libusb-version;">
@@ -18,6 +18,9 @@
 </sect1info>
 <?dbhtml filename="libusb.html"?>
 <title>libusb-&libusb-version;</title>
+<indexterm zone="libusb">
+<primary sortas="a-Libusb">Libusb</primary>
+</indexterm>
 
 <sect2>
 <title>Introduction to <application>libusb</application></title>
@@ -27,16 +30,23 @@
 
 <sect3><title>Package information</title>
 <itemizedlist spacing='compact'>
-<listitem><para>Download (HTTP): <ulink url="&libusb-download-http;"/></para></listitem>
-<listitem><para>Download (FTP): <ulink url="&libusb-download-ftp;"/></para></listitem>
-<listitem><para>Download size: &libusb-size;</para></listitem>
-<listitem><para>Estimated disk space required: &libusb-buildsize;</para></listitem>
-<listitem><para>Estimated build time: &libusb-time;</para></listitem></itemizedlist>
+<listitem><para>Download (HTTP): 
+<ulink url="&libusb-download-http;"/></para></listitem>
+<listitem><para>Download (FTP): 
+<ulink url="&libusb-download-ftp;"/></para></listitem>
+<listitem><para>Download size: 
+&libusb-size;</para></listitem>
+<listitem><para>Estimated disk space required: 
+&libusb-buildsize;</para></listitem>
+<listitem><para>Estimated build time: 
+&libusb-time;</para></listitem></itemizedlist>
 </sect3>
 
 <sect3><title><application>libusb</application> dependencies</title>
 <sect4><title>Optional</title>
-<para><xref linkend="openjade"/> and <xref linkend="sgml-dtd-3"/></para></sect4>
+<para><xref linkend="openjade"/> and <xref linkend="sgml-dtd-3"/> (both 
+required to build the <acronym>HTML</acronym> documentation)</para>
+</sect4>
 </sect3>
 
 </sect2>
@@ -47,22 +57,41 @@
 <para>Install <application>libusb</application> by running the following 
 commands:</para>
 
-<screen><userinput><command>./configure --prefix=/usr --disable-build-docs &&
-make &&
-make install</command></userinput></screen>
+<screen><userinput><command>libtoolize -f &&
+autoreconf -f &&
+./configure --prefix=/usr --disable-build-docs &&
+make</command></userinput></screen>
 
+<para>Now, as the root user:</para>
+
+<screen><userinput role='root'><command>make install</command></userinput></screen>
+
+<para>If you built the <acronym>HTML</acronym> documentation, install it using 
+the following commands:</para>
+
+<screen><userinput role='root'><command>install -v -d -m755 /usr/share/doc/libusb-&libusb-version;/html &&
+install -v -m644 doc/html/* /usr/share/doc/libusb-&libusb-version;/html</command></userinput></screen>
+
 </sect2>
 
 <sect2>
 <title>Command explanations</title>
 
+<para><command>libtoolize -f</command>: There is a mismatch in the Autotools 
+with <acronym>LFS</acronym>-6.0. This command forces the build to use the 
+system installed <command>libtool</command> tools so that the shared library 
+is created correctly.</para>
+
+<para><command>autoreconf -f</command>: This command recreates some of the 
+Autotools, required by running <command>libtoolize</command>.</para>
+
 <para><option>--disable-build-docs</option>: This switch avoids building the
 documentation. If you wish to build the documentation, you may need to remove 
 the <application>OpenSP</application> catalog definitions from the system 
 <acronym>SGML</acronym> catalogs. Use the following command before building 
 the package to accomplish this:</para>
 
-<screen><userinput><command>sed -i.orig \
+<screen><userinput role='root'><command>sed -i.orig \
     -e "/CATALOG \/etc\/sgml\/OpenSP-1.5.1.cat/d" \
     /etc/sgml/catalog \
     /etc/sgml/sgml-docbook.cat</command></userinput></screen>
@@ -79,46 +108,60 @@
 ensure the usb group exits on your system. If necessary, create the usb group 
 using the following command:</para>
 
-<screen><userinput><command>groupadd -g 14 usb</command></userinput></screen>
+<screen><userinput role='root'><command>groupadd -g 14 usb</command></userinput></screen>
 
-<!-- <para>Compiling the <quote>USB device filesystem</quote> as a kernel module is 
-not recommended. However, if you did compile it as a module, you can install an 
-init script to mount usbfs at system boot-up. An init script is included in the 
-<xref linkend="intro-important-bootscripts"/> package and is installed using 
-the following command:</para>
-
-<screen><userinput><command>make install-usb</command></userinput></screen> -->
-
-<para>Ensure that you have compiled the <quote>USB device filesystem</quote> 
-directly into the kernel or compiled it as a module (listing the resulting
-<quote>usbcore</quote> module in the 
+<para id="libusb-kernel">Ensure that you have compiled the <quote>USB device 
+filesystem</quote> directly into the kernel or compiled it as a module 
+(listing the resulting <quote>usbcore</quote> module in the 
 <filename>/etc/sysconfig/modules</filename> file). You should also have an 
 entry similar to the line below in your <filename>/etc/fstab</filename> 
 file:</para>
+<indexterm zone="libusb libusb-kernel">
+<primary sortas="d-USB-device-filesystem">USB device filesystem</primary>
+</indexterm>
 
-<screen><userinput>usbfs  /proc/bus/usb  usbfs  devgid=14,devmode=0660  0  0</userinput></screen>
+<screen><userinput role='root'>usbfs  /proc/bus/usb  usbfs  devgid=14,devmode=0660  0  0</userinput></screen>
 
 </sect2>
 
 <sect2>
 <title>Contents</title>
 
-<para>The <application>libusb</application> package contains
-<filename class="libraryfile">libusb</filename> libraries,
-the <filename>/usr/include/usb.h</filename> header,
-and a <command>usb-config</command> script.</para>
+<segmentedlist>
+<segtitle>Installed Program</segtitle>
+<segtitle>Installed Library</segtitle>
+<segtitle>Installed Directory</segtitle>
 
-</sect2>
+<seglistitem>
+<seg>usb-config</seg>
+<seg>libusb.[so,a]</seg>
+<seg>/usr/share/doc/libusb-&libusb-version;</seg>
+</seglistitem>
+</segmentedlist>
 
-<sect2><title>Description</title>
+<variablelist>
+<bridgehead renderas="sect3">Short Descriptions</bridgehead>
+<?dbfo list-presentation="list"?>
 
-<sect3><title>libusb libraries</title>
-<para><filename class="libraryfile">libusb</filename> libraries contain C 
-functions for accessing <acronym>USB</acronym> hardware.</para></sect3>
+<varlistentry id="usb-config">
+<term><command>usb-config</command></term>
+<listitem><para>is a script that provides the right compiler and linker 
+flags for programs using 
+<filename class='libraryfile'>libusb</filename>.</para>
+<indexterm zone="libusb usb-config">
+<primary sortas="b-usb-config">usb-config</primary>
+</indexterm></listitem>
+</varlistentry>
 
-<sect3><title>usb-config</title>
-<para>The <command>usb-config</command> script provides the right
-compiler and linker flags for programs using this library.</para></sect3>
+<varlistentry id="libusb-lib">
+<term><filename class='libraryfile'>libusb.[so,a]</filename></term>
+<listitem><para> libraries contain C functions for accessing 
+<acronym>USB</acronym> hardware.</para>
+<indexterm zone="libusb libusb-lib">
+<primary sortas="c-libusb">libusb.[so,a]</primary>
+</indexterm></listitem>
+</varlistentry>
+</variablelist>
 
 </sect2>
 




More information about the blfs-book mailing list