Ignore:
Timestamp:
05/03/2020 09:02:51 PM (4 years ago)
Author:
Pierre Labastie <pieere@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
a715dec
Parents:
9d719e2
Message:

Make the new book

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross-chap5@11831 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter05/util-linux.xml

    r9d719e2 refcb393  
    4242    <title>Installation of Util-linux</title>
    4343
     44    <para>First create a directory
     45    to enable storage for the <command>hwclock</command> program:</para>
     46
     47<screen><userinput remap="pre">mkdir -pv /var/lib/hwclock</userinput></screen>
     48
    4449    <para>Prepare Util-linux for compilation:</para>
    4550
    46 <screen><userinput remap="configure">./configure --prefix=/tools                \
    47             --without-python               \
    48             --disable-makeinstall-chown    \
    49             --without-systemdsystemunitdir \
    50             --without-ncurses              \
    51             PKG_CONFIG=""</userinput></screen>
     51<screen><userinput remap="configure">./configure ADJTIME_PATH=/var/lib/hwclock/adjtime \
     52            --docdir=/usr/share/doc/util-linux-&util-linux-version; \
     53            --disable-chfn-chsh  \
     54            --disable-login      \
     55            --disable-nologin    \
     56            --disable-su         \
     57            --disable-setpriv    \
     58            --disable-runuser    \
     59            --disable-pylibmount \
     60            --disable-static     \
     61            --without-python</userinput></screen>
    5262
    5363    <variablelist>
    54       <title>The meaning of the configure option:</title>
     64      <title>The meaning of the configure options:</title>
     65<!-- TODO -->
     66      <varlistentry>
     67        <term><parameter>ADJTIME_PATH=/var/lib/hwclock/adjtime</parameter></term>
     68        <listitem>
     69          <para>This sets the location of the file recording information about
     70          the hardware clock, in accordance to the FHS. This is not stricly
     71          needed fot his temporary tool, but it prevent creating a file
     72          at another location, which would not be overwritten or removed
     73          when building the final util-linux.</para>
     74        </listitem>
     75      </varlistentry>
     76
     77      <varlistentry>
     78        <term><parameter>--disable-*</parameter></term>
     79        <listitem>
     80          <para>Those switches prevent warnings about building components
     81          that require packages not in LFS or not installed yet.</para>
     82        </listitem>
     83      </varlistentry>
    5584
    5685      <varlistentry>
    5786        <term><parameter>--without-python</parameter></term>
    5887        <listitem>
    59           <para>This switch disables using <application>Python</application>
    60           if it is installed on the host system.  It avoids trying to build
    61           unneeded bindings.</para>
     88          <para>This switch disables using <application>Python</application>.
     89          It avoids trying to build unneeded bindings.</para>
    6290        </listitem>
    6391      </varlistentry>
    6492
    65       <varlistentry>
    66         <term><parameter>--disable-makeinstall-chown</parameter></term>
    67         <listitem>
    68           <para>This switch disables using the <command>chown</command> command
    69           during installation.  This is not needed when installing into the
    70           /tools directory and avoids the necessity of installing as
    71           root.</para>
    72         </listitem>
    73       </varlistentry>
    74 
    75       <varlistentry>
    76         <term><parameter>--without-ncurses</parameter></term>
    77         <listitem>
    78           <para>This switch disables using the ncurses library for
    79           the build process. This is not needed when installing into the
    80           /tools directory and avoids problems on some host distros.</para>
    81         </listitem>
    82       </varlistentry>
    83 
    84       <varlistentry>
    85         <term><parameter>--without-systemdsystemunitdir</parameter></term>
    86         <listitem>
    87           <para>On systems that use systemd, the package tries to install
    88           a systemd specific file to a non-existent directory in /tools.
    89           This switch disables the unnecessary action.</para>
    90         </listitem>
    91       </varlistentry>
    92 
    93       <varlistentry>
    94         <term><envar>PKG_CONFIG=""</envar></term>
    95         <listitem>
    96           <para>Setting this environment variable prevents adding unneeded
    97           features that may be available on the host. Note that the location
    98           shown for setting this environment variable is different from other
    99           LFS sections where variables are set preceding the command.  This
    100           location is shown to demonstrate an alternative way of setting an
    101           environment variable when using configure.</para>
    102         </listitem>
    103       </varlistentry>
    10493     </variablelist>
    10594
Note: See TracChangeset for help on using the changeset viewer.