Ignore:
Timestamp:
01/28/2005 03:01:04 AM (19 years ago)
Author:
Randy McMurchy <randy@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.0, 6.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 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, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
a1dd01c
Parents:
a56c29d
Message:

Added Autotools reconfiguration and indexing tags to libusb instructions

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@3348 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/genlib/libusb.xml

    ra56c29d rfa0eb91a  
    88<!ENTITY libusb-download-ftp " ">
    99<!ENTITY libusb-size "314 KB">
    10 <!ENTITY libusb-buildsize "2.1 MB">
    11 <!ENTITY libusb-time "0.03 SBU">
     10<!ENTITY libusb-buildsize "4.5 MB (includes HTML documentation installation)">
     11<!ENTITY libusb-time "0.25 SBU">
    1212]>
    1313
     
    1919<?dbhtml filename="libusb.html"?>
    2020<title>libusb-&libusb-version;</title>
     21<indexterm zone="libusb">
     22<primary sortas="a-Libusb">Libusb</primary>
     23</indexterm>
    2124
    2225<sect2>
     
    2831<sect3><title>Package information</title>
    2932<itemizedlist spacing='compact'>
    30 <listitem><para>Download (HTTP): <ulink url="&libusb-download-http;"/></para></listitem>
    31 <listitem><para>Download (FTP): <ulink url="&libusb-download-ftp;"/></para></listitem>
    32 <listitem><para>Download size: &libusb-size;</para></listitem>
    33 <listitem><para>Estimated disk space required: &libusb-buildsize;</para></listitem>
    34 <listitem><para>Estimated build time: &libusb-time;</para></listitem></itemizedlist>
     33<listitem><para>Download (HTTP):
     34<ulink url="&libusb-download-http;"/></para></listitem>
     35<listitem><para>Download (FTP):
     36<ulink url="&libusb-download-ftp;"/></para></listitem>
     37<listitem><para>Download size:
     38&libusb-size;</para></listitem>
     39<listitem><para>Estimated disk space required:
     40&libusb-buildsize;</para></listitem>
     41<listitem><para>Estimated build time:
     42&libusb-time;</para></listitem></itemizedlist>
    3543</sect3>
    3644
    3745<sect3><title><application>libusb</application> dependencies</title>
    3846<sect4><title>Optional</title>
    39 <para><xref linkend="openjade"/> and <xref linkend="sgml-dtd-3"/></para></sect4>
     47<para><xref linkend="openjade"/> and <xref linkend="sgml-dtd-3"/> (both
     48required to build the <acronym>HTML</acronym> documentation)</para>
     49</sect4>
    4050</sect3>
    4151
     
    4858commands:</para>
    4959
    50 <screen><userinput><command>./configure --prefix=/usr --disable-build-docs &amp;&amp;
    51 make &amp;&amp;
    52 make install</command></userinput></screen>
     60<screen><userinput><command>libtoolize -f &amp;&amp;
     61autoreconf -f &amp;&amp;
     62./configure --prefix=/usr --disable-build-docs &amp;&amp;
     63make</command></userinput></screen>
     64
     65<para>Now, as the root user:</para>
     66
     67<screen><userinput role='root'><command>make install</command></userinput></screen>
     68
     69<para>If you built the <acronym>HTML</acronym> documentation, install it using
     70the following commands:</para>
     71
     72<screen><userinput role='root'><command>install -v -d -m755 /usr/share/doc/libusb-&libusb-version;/html &amp;&amp;
     73install -v -m644 doc/html/* /usr/share/doc/libusb-&libusb-version;/html</command></userinput></screen>
    5374
    5475</sect2>
     
    5677<sect2>
    5778<title>Command explanations</title>
     79
     80<para><command>libtoolize -f</command>: There is a mismatch in the Autotools
     81with <acronym>LFS</acronym>-6.0. This command forces the build to use the
     82system installed <command>libtool</command> tools so that the shared library
     83is created correctly.</para>
     84
     85<para><command>autoreconf -f</command>: This command recreates some of the
     86Autotools, required by running <command>libtoolize</command>.</para>
    5887
    5988<para><option>--disable-build-docs</option>: This switch avoids building the
     
    6392the package to accomplish this:</para>
    6493
    65 <screen><userinput><command>sed -i.orig \
     94<screen><userinput role='root'><command>sed -i.orig \
    6695    -e "/CATALOG \/etc\/sgml\/OpenSP-1.5.1.cat/d" \
    6796    /etc/sgml/catalog \
     
    80109using the following command:</para>
    81110
    82 <screen><userinput><command>groupadd -g 14 usb</command></userinput></screen>
     111<screen><userinput role='root'><command>groupadd -g 14 usb</command></userinput></screen>
    83112
    84 <!-- <para>Compiling the <quote>USB device filesystem</quote> as a kernel module is
    85 not recommended. However, if you did compile it as a module, you can install an
    86 init script to mount usbfs at system boot-up. An init script is included in the
    87 <xref linkend="intro-important-bootscripts"/> package and is installed using
    88 the following command:</para>
    89 
    90 <screen><userinput><command>make install-usb</command></userinput></screen> -->
    91 
    92 <para>Ensure that you have compiled the <quote>USB device filesystem</quote>
    93 directly into the kernel or compiled it as a module (listing the resulting
    94 <quote>usbcore</quote> module in the
     113<para id="libusb-kernel">Ensure that you have compiled the <quote>USB device
     114filesystem</quote> directly into the kernel or compiled it as a module
     115(listing the resulting <quote>usbcore</quote> module in the
    95116<filename>/etc/sysconfig/modules</filename> file). You should also have an
    96117entry similar to the line below in your <filename>/etc/fstab</filename>
    97118file:</para>
     119<indexterm zone="libusb libusb-kernel">
     120<primary sortas="d-USB-device-filesystem">USB device filesystem</primary>
     121</indexterm>
    98122
    99 <screen><userinput>usbfs  /proc/bus/usb  usbfs  devgid=14,devmode=0660  0  0</userinput></screen>
     123<screen><userinput role='root'>usbfs  /proc/bus/usb  usbfs  devgid=14,devmode=0660  0  0</userinput></screen>
    100124
    101125</sect2>
     
    104128<title>Contents</title>
    105129
    106 <para>The <application>libusb</application> package contains
    107 <filename class="libraryfile">libusb</filename> libraries,
    108 the <filename>/usr/include/usb.h</filename> header,
    109 and a <command>usb-config</command> script.</para>
     130<segmentedlist>
     131<segtitle>Installed Program</segtitle>
     132<segtitle>Installed Library</segtitle>
     133<segtitle>Installed Directory</segtitle>
    110134
    111 </sect2>
     135<seglistitem>
     136<seg>usb-config</seg>
     137<seg>libusb.[so,a]</seg>
     138<seg>/usr/share/doc/libusb-&libusb-version;</seg>
     139</seglistitem>
     140</segmentedlist>
    112141
    113 <sect2><title>Description</title>
     142<variablelist>
     143<bridgehead renderas="sect3">Short Descriptions</bridgehead>
     144<?dbfo list-presentation="list"?>
    114145
    115 <sect3><title>libusb libraries</title>
    116 <para><filename class="libraryfile">libusb</filename> libraries contain C
    117 functions for accessing <acronym>USB</acronym> hardware.</para></sect3>
     146<varlistentry id="usb-config">
     147<term><command>usb-config</command></term>
     148<listitem><para>is a script that provides the right compiler and linker
     149flags for programs using
     150<filename class='libraryfile'>libusb</filename>.</para>
     151<indexterm zone="libusb usb-config">
     152<primary sortas="b-usb-config">usb-config</primary>
     153</indexterm></listitem>
     154</varlistentry>
    118155
    119 <sect3><title>usb-config</title>
    120 <para>The <command>usb-config</command> script provides the right
    121 compiler and linker flags for programs using this library.</para></sect3>
     156<varlistentry id="libusb-lib">
     157<term><filename class='libraryfile'>libusb.[so,a]</filename></term>
     158<listitem><para> libraries contain C functions for accessing
     159<acronym>USB</acronym> hardware.</para>
     160<indexterm zone="libusb libusb-lib">
     161<primary sortas="c-libusb">libusb.[so,a]</primary>
     162</indexterm></listitem>
     163</varlistentry>
     164</variablelist>
    122165
    123166</sect2>
Note: See TracChangeset for help on using the changeset viewer.