source: chapter05/util-linux.xml@ 61ce0b1

7.6-systemd 7.7-systemd 7.8-systemd 7.9-systemd
Last change on this file since 61ce0b1 was 61ce0b1, checked in by DJ Lucas <dj@…>, 10 years ago

Synchronized with LFS-SVN-20140611.

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

  • Property mode set to 100644
File size: 3.0 KB
Line 
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>
34 <seg>&util-linux-ch5-sbu;</seg>
35 <seg>&util-linux-ch5-du;</seg>
36 </seglistitem>
37 </segmentedlist>
38
39 </sect2>
40
41 <sect2 role="installation">
42 <title>Installation of Util-linux</title>
43
44 <para>Prepare Util-linux for compilation:</para>
45
46<screen><userinput remap="configure">./configure --prefix=/tools \
47 --disable-makeinstall-chown \
48 --without-systemdsystemunitdir \
49 PKG_CONFIG=""</userinput></screen>
50
51 <variablelist>
52 <title>The meaning of the configure option:</title>
53
54 <varlistentry>
55 <term><parameter>--disable-makeinstall-chown</parameter></term>
56 <listitem>
57 <para>This switch disables using the <command>chown</command> command
58 during installation. This is not needed when installing into the
59 /tools directory and avoids the necessity of installing as
60 root.</para>
61 </listitem>
62 </varlistentry>
63
64 <varlistentry>
65 <term><parameter>--without-systemdsystemunitdir</parameter></term>
66 <listitem>
67 <para>On systems that use systemd, the package tries to install
68 a systemd specific file to a non-existent directory in /tools.
69 This switch disables the unnecessary action.</para>
70 </listitem>
71 </varlistentry>
72
73 <varlistentry>
74 <term><envar>PKG_CONFIG=""</envar></term>
75 <listitem>
76 <para>Setting this envronment variable prevents adding unneeded
77 features that may be available on the host. Note that the location
78 shown for setting this environment variable is different from other
79 LFS sections where variables are set preceding the command. This
80 location is shown to demonstrate an alternative way of setting an
81 environment variable when using configure.</para>
82 </listitem>
83 </varlistentry>
84 </variablelist>
85
86 <para>Compile the package:</para>
87
88<screen><userinput remap="make">make</userinput></screen>
89
90 <para>Install the package:</para>
91
92<screen><userinput remap="install">make install</userinput></screen>
93
94 </sect2>
95
96</sect1>
Note: See TracBrowser for help on using the repository browser.