2004-05-03 11:59:46 +01:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
|
|
|
<!ENTITY % general-entities SYSTEM "../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
]>
|
2004-05-16 01:08:42 +01:00
|
|
|
<sect1 id="ch-system-coreutils" xreflabel="Coreutils" role="wrap">
|
2004-05-03 11:59:46 +01:00
|
|
|
<title>Coreutils-&coreutils-version;</title>
|
|
|
|
<?dbhtml filename="coreutils.html"?>
|
|
|
|
|
|
|
|
<indexterm zone="ch-system-coreutils"><primary sortas="a-Coreutils">Coreutils</primary></indexterm>
|
2003-05-02 19:20:20 +01:00
|
|
|
|
2004-05-16 01:08:42 +01:00
|
|
|
<sect2 role="package"><title/>
|
2004-01-12 23:23:50 +00:00
|
|
|
|
2004-05-16 01:08:42 +01:00
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>&buildtime;</segtitle>
|
|
|
|
<segtitle>&diskspace;</segtitle>
|
|
|
|
<seglistitem><seg>0.9 SBU</seg><seg>69 MB</seg></seglistitem>
|
|
|
|
</segmentedlist>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2004-05-16 01:08:42 +01:00
|
|
|
</sect2>
|
2003-09-02 23:04:32 +01:00
|
|
|
|
2004-05-16 01:08:42 +01:00
|
|
|
<sect2 role="installation">
|
2003-11-01 22:31:50 +00:00
|
|
|
<title>Installation of Coreutils</title>
|
|
|
|
|
2004-12-21 19:38:32 +00:00
|
|
|
<para>Apply a patch:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2004-05-04 18:39:38 +01:00
|
|
|
<screen><userinput>patch -Np1 -i ../coreutils-&coreutils-version;-uname-2.patch</userinput></screen>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2004-12-21 19:38:32 +00:00
|
|
|
<para>Apply another patch:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2005-01-30 12:51:22 +00:00
|
|
|
<screen><userinput>patch -Np1 -i \
|
|
|
|
../coreutils-&coreutils-version;-suppress_uptime_kill_su-1.patch</userinput></screen>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
|
|
|
<para>Now prepare Coreutils for compilation:</para>
|
|
|
|
|
2004-05-03 11:59:46 +01:00
|
|
|
<screen><userinput>DEFAULT_POSIX2_VERSION=199209 ./configure --prefix=/usr</userinput></screen>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
|
|
|
<para>Compile the package:</para>
|
|
|
|
|
|
|
|
<screen><userinput>make</userinput></screen>
|
|
|
|
|
2004-05-03 22:28:58 +01:00
|
|
|
<para>Create two dummy groups and a dummy user name:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2004-09-10 05:31:00 +01:00
|
|
|
<screen><userinput>echo "dummy1:x:1000:" >> /etc/group
|
2004-02-22 19:05:53 +00:00
|
|
|
echo "dummy2:x:1001:dummy" >> /etc/group
|
|
|
|
echo "dummy:x:1000:1000:::/bin/bash" >> /etc/passwd</userinput></screen>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2004-12-21 19:38:32 +00:00
|
|
|
<para>Run the <emphasis>root</emphasis> tests:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2004-05-12 18:05:18 +01:00
|
|
|
<screen><userinput>make NON_ROOT_USERNAME=dummy check-root</userinput></screen>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2004-12-21 19:38:32 +00:00
|
|
|
<para>Run the user tests:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2004-05-12 20:58:19 +01:00
|
|
|
<screen><userinput>src/su dummy -c "make RUN_EXPENSIVE_TESTS=yes check"</userinput></screen>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2004-12-21 19:38:32 +00:00
|
|
|
<para>Remove the dummy user and groups:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2004-06-18 16:50:52 +01:00
|
|
|
<screen><userinput>sed -i '/dummy/d' /etc/passwd /etc/group</userinput></screen>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
|
|
|
<para>Install the package:</para>
|
|
|
|
|
|
|
|
<screen><userinput>make install</userinput></screen>
|
|
|
|
|
|
|
|
<para>And move some programs to their proper locations:</para>
|
|
|
|
|
2004-05-03 22:28:58 +01:00
|
|
|
<screen><userinput>mv /usr/bin/{[,basename,cat,chgrp,chmod,chown,cp,dd,df} /bin
|
2005-01-30 12:51:22 +00:00
|
|
|
mv /usr/bin/{date,echo,false,head,hostname,install,ln} /bin
|
|
|
|
mv /usr/bin/{ls,mkdir,mknod,mv,pwd,rm,rmdir,sync} /bin
|
2004-05-12 20:58:19 +01:00
|
|
|
mv /usr/bin/{sleep,stty,test,touch,true,uname} /bin
|
2003-11-01 22:31:50 +00:00
|
|
|
mv /usr/bin/chroot /usr/sbin</userinput></screen>
|
|
|
|
|
2004-12-21 19:38:32 +00:00
|
|
|
<para>Create a symlink:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2004-05-03 22:28:58 +01:00
|
|
|
<screen><userinput>ln -s ../../bin/install /usr/bin</userinput></screen>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
|
|
|
</sect2>
|
2003-05-02 19:20:20 +01:00
|
|
|
|
2004-01-12 23:23:50 +00:00
|
|
|
|
2004-05-17 22:55:01 +01:00
|
|
|
<sect2 id="contents-coreutils" role="content"><title>Contents of Coreutils</title>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2004-12-21 19:38:32 +00:00
|
|
|
<para>See testing</para>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|