source: chapter07/util-linux.xml@ 2ec1c15

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
Last change on this file since 2ec1c15 was 1f460e5, checked in by Xi Ruoyao <xry111@…>, 3 years ago

ch{07,08}/util-linux: remove redundant command

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@12121 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 3.9 KB
RevLine 
[fcc02767]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]>
7
8<sect1 id="ch-tools-util-linux" role="wrap">
9 <?dbhtml filename="util-linux.html"?>
10
11 <sect1info condition="script">
12 <productname>util-linux</productname>
13 <productnumber>&util-linux-version;</productnumber>
14 <address>&util-linux-url;</address>
15 </sect1info>
16
17 <title>Util-linux-&util-linux-version;</title>
18
19 <indexterm zone="ch-tools-util-linux">
20 <primary sortas="a-Util-linux">Util-linux</primary>
21 <secondary>tools</secondary>
22 </indexterm>
23
24 <sect2 role="package">
25 <title/>
26
27 <para>The Util-linux package contains miscellaneous utility programs.</para>
28
29 <segmentedlist>
30 <segtitle>&buildtime;</segtitle>
31 <segtitle>&diskspace;</segtitle>
32
33 <seglistitem>
[fb386e0]34 <seg>&util-linux-tmp-sbu;</seg>
35 <seg>&util-linux-tmp-du;</seg>
[fcc02767]36 </seglistitem>
37 </segmentedlist>
38
39 </sect2>
40
41 <sect2 role="installation">
42 <title>Installation of Util-linux</title>
43
[1f460e5]44 <para>The FHS recommends using the <filename
45 class="directory">/var/lib/hwclock</filename> directory instead of the
46 usual <filename class="directory">/etc</filename> directory as the
47 location for the <filename>adjtime</filename> file. Create this directory
48 with:</para>
[fcc02767]49
50<screen><userinput remap="pre">mkdir -pv /var/lib/hwclock</userinput></screen>
51
52 <para>Prepare Util-linux for compilation:</para>
53
[e0578b6]54<screen><userinput remap="configure">./configure ADJTIME_PATH=/var/lib/hwclock/adjtime \
[fcc02767]55 --docdir=/usr/share/doc/util-linux-&util-linux-version; \
56 --disable-chfn-chsh \
57 --disable-login \
58 --disable-nologin \
59 --disable-su \
60 --disable-setpriv \
61 --disable-runuser \
62 --disable-pylibmount \
63 --disable-static \
[02776dff]64 --without-python \
65 runstatedir=/run</userinput></screen>
[fcc02767]66
67 <variablelist>
68 <title>The meaning of the configure options:</title>
[aefc822]69
[fcc02767]70 <varlistentry>
71 <term><parameter>ADJTIME_PATH=/var/lib/hwclock/adjtime</parameter></term>
72 <listitem>
73 <para>This sets the location of the file recording information about
[aefc822]74 the hardware clock in accordance to the FHS. This is not stricly
[ea7ec72]75 needed for this temporary tool, but it prevents creating a file
[fcc02767]76 at another location, which would not be overwritten or removed
[aefc822]77 when building the final util-linux package.</para>
[fcc02767]78 </listitem>
79 </varlistentry>
80
81 <varlistentry>
82 <term><parameter>--disable-*</parameter></term>
83 <listitem>
[aefc822]84 <para>These switches prevent warnings about building components
[fcc02767]85 that require packages not in LFS or not installed yet.</para>
86 </listitem>
87 </varlistentry>
88
89 <varlistentry>
90 <term><parameter>--without-python</parameter></term>
91 <listitem>
92 <para>This switch disables using <application>Python</application>.
93 It avoids trying to build unneeded bindings.</para>
94 </listitem>
95 </varlistentry>
96
[02776dff]97 <varlistentry>
98 <term><parameter>runstatedir=/run</parameter></term>
99 <listitem>
100 <para>This switch sets the location of the socket used by
101 <command>uuidd</command> and
102 <filename class="libraryfile">libuuid</filename> correctly.</para>
103 </listitem>
104 </varlistentry>
105
[fcc02767]106 </variablelist>
107
108 <para>Compile the package:</para>
109
110<screen><userinput remap="make">make</userinput></screen>
111
112 <para>Install the package:</para>
113
114<screen><userinput remap="install">make install</userinput></screen>
115
116 </sect2>
117
118 <sect2 role="content">
119 <title/>
120
[aefc822]121 <para>Details on this package are located in <xref linkend="contents-utillinux" role="."/></para>
[fcc02767]122
123 </sect2>
124
125</sect1>
Note: See TracBrowser for help on using the repository browser.