2024-01-18 19:53:23 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2007-03-21 18:42:58 +00:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
2004-05-03 11:59:46 +01:00
|
|
|
<!ENTITY % general-entities SYSTEM "../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
]>
|
2006-02-02 21:03:09 +00:00
|
|
|
|
2020-06-07 21:16:00 +01:00
|
|
|
<sect1 id="ch-tools-coreutils" role="wrap">
|
2006-02-02 21:03:09 +00:00
|
|
|
<?dbhtml filename="coreutils.html"?>
|
|
|
|
|
2007-09-07 20:16:43 +01:00
|
|
|
<sect1info condition="script">
|
|
|
|
<productname>coreutils</productname>
|
|
|
|
<productnumber>&coreutils-version;</productnumber>
|
|
|
|
<address>&coreutils-url;</address>
|
|
|
|
</sect1info>
|
|
|
|
|
2006-02-02 21:03:09 +00:00
|
|
|
<title>Coreutils-&coreutils-version;</title>
|
|
|
|
|
2020-06-07 21:16:00 +01:00
|
|
|
<indexterm zone="ch-tools-coreutils">
|
2006-02-02 21:03:09 +00:00
|
|
|
<primary sortas="a-Coreutils">Coreutils</primary>
|
2020-06-07 21:16:00 +01:00
|
|
|
<secondary>tools</secondary>
|
2006-02-02 21:03:09 +00:00
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title/>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2020-06-07 21:16:00 +01:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
href="../chapter08/coreutils.xml"
|
|
|
|
xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
|
2003-05-02 19:20:20 +01:00
|
|
|
|
2006-02-02 21:03:09 +00:00
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>&buildtime;</segtitle>
|
|
|
|
<segtitle>&diskspace;</segtitle>
|
2004-01-12 23:23:50 +00:00
|
|
|
|
2006-02-02 21:03:09 +00:00
|
|
|
<seglistitem>
|
2020-06-11 13:55:28 +01:00
|
|
|
<seg>&coreutils-tmp-sbu;</seg>
|
|
|
|
<seg>&coreutils-tmp-du;</seg>
|
2006-02-02 21:03:09 +00:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2006-02-02 21:03:09 +00:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of Coreutils</title>
|
2014-04-22 15:58:15 +01:00
|
|
|
|
2020-06-07 21:16:00 +01:00
|
|
|
<para>Prepare Coreutils for compilation:</para>
|
2006-01-06 01:59:08 +00:00
|
|
|
|
2020-06-07 21:16:00 +01:00
|
|
|
<screen><userinput remap="configure">./configure --prefix=/usr \
|
|
|
|
--host=$LFS_TGT \
|
|
|
|
--build=$(build-aux/config.guess) \
|
|
|
|
--enable-install-program=hostname \
|
2023-09-08 10:10:14 +01:00
|
|
|
--enable-no-install-program=kill,uptime</userinput></screen>
|
2008-02-07 19:47:39 +00:00
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<title>The meaning of the configure options:</title>
|
|
|
|
|
2018-03-04 01:11:04 +00:00
|
|
|
<varlistentry>
|
2020-06-07 21:16:00 +01:00
|
|
|
<term><envar>--enable-install-program=hostname</envar></term>
|
2008-02-07 19:47:39 +00:00
|
|
|
<listitem>
|
2020-06-07 21:16:00 +01:00
|
|
|
<para>This enables the <command>hostname</command> binary to be built
|
|
|
|
and installed – it is disabled by default but is required by the
|
|
|
|
Perl test suite.</para>
|
2008-02-07 19:47:39 +00:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2023-05-07 03:56:05 +01:00
|
|
|
|
2008-02-07 19:47:39 +00:00
|
|
|
</variablelist>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2006-02-02 21:03:09 +00:00
|
|
|
<para>Compile the package:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2019-05-08 13:48:15 +01:00
|
|
|
<screen><userinput remap="make">make</userinput></screen>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2006-02-02 21:03:09 +00:00
|
|
|
<para>Install the package:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2020-06-07 21:16:00 +01:00
|
|
|
<screen><userinput remap="install">make DESTDIR=$LFS install</userinput></screen>
|
|
|
|
<!--
|
|
|
|
<para>The above command refuses to install <filename>su</filename>
|
|
|
|
because the program cannot be installed setuid root as a non-privileged
|
|
|
|
user. By manually installing it, we can use it for running tests in the
|
|
|
|
final system as a non-privileged user. Install it with:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2020-06-07 21:16:00 +01:00
|
|
|
<screen><userinput remap="install">cp -v src/su /tools/bin</userinput></screen>
|
|
|
|
-->
|
|
|
|
<para>Move programs to their final expected locations. Although this is
|
|
|
|
not necessary in this temporary environment, we must do so because some
|
2022-03-06 21:37:02 +00:00
|
|
|
programs hardcode executable locations:</para>
|
2020-06-07 21:16:00 +01:00
|
|
|
|
2021-09-04 16:48:46 +01:00
|
|
|
<screen><userinput remap="install">mv -v $LFS/usr/bin/chroot $LFS/usr/sbin
|
2020-06-07 21:16:00 +01:00
|
|
|
mkdir -pv $LFS/usr/share/man/man8
|
2021-09-04 16:48:46 +01:00
|
|
|
mv -v $LFS/usr/share/man/man1/chroot.1 $LFS/usr/share/man/man8/chroot.8
|
|
|
|
sed -i 's/"1"/"8"/' $LFS/usr/share/man/man8/chroot.8</userinput></screen>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2006-02-02 21:03:09 +00:00
|
|
|
</sect2>
|
|
|
|
|
2020-06-07 21:16:00 +01:00
|
|
|
<sect2 role="content">
|
|
|
|
<title/>
|
2010-06-27 04:23:30 +01:00
|
|
|
|
2020-06-07 21:16:00 +01:00
|
|
|
<para>Details on this package are located in
|
|
|
|
<xref linkend="contents-coreutils" role="."/></para>
|
2006-02-02 21:03:09 +00:00
|
|
|
|
|
|
|
</sect2>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
|
|
|
</sect1>
|