[6370fa6] | 1 | <sect2>
|
---|
| 2 | <title>Installation of Fileutils</title>
|
---|
| 3 |
|
---|
[3b3e965d] | 4 | <para>This package requires its patch to be applied before you can
|
---|
| 5 | install it. Make sure it's unpacked before running the installation
|
---|
| 6 | commands.</para>
|
---|
| 7 |
|
---|
[e69a59f] | 8 | <para>The programs from a statically linked Fileutils package may cause
|
---|
[70cdda10] | 9 | segmentation faults on certain systems, if your distribution has
|
---|
[32cee45c] | 10 | Glibc-2.2.3 or higher installed. It seems to happen mostly on machines
|
---|
[70cdda10] | 11 | powered by an AMD CPU, but there is a case or two where an Intel system
|
---|
[3b3e965d] | 12 | is affected as well. If your system falls in this category, apply the
|
---|
| 13 | patch.</para>
|
---|
[f66ac14] | 14 |
|
---|
[3b3e965d] | 15 | <para>Note that in some cases using this patch will result in not being
|
---|
| 16 | able to compile this package at all, even when your system has an AMD CPU
|
---|
| 17 | and has Glibc-2.2.3 (or higher) installed. If that's the case, you'll need
|
---|
| 18 | to remove the fileutils-&fileutils-version; directory and unpack it again
|
---|
| 19 | from the tarball before continuing. We believe this may be the case when
|
---|
| 20 | your distribution has altered Glibc-2.2.3 somehow, but details are
|
---|
| 21 | unavailable at the time.</para>
|
---|
[c15aead] | 22 |
|
---|
[70cdda10] | 23 | <para>To fix this package to compile properly on AMD/Glibc-2.2.3
|
---|
[3b3e965d] | 24 | machines, run the following command. Do <emphasis>not</emphasis>
|
---|
[0ed57c8] | 25 | attempt this fix if you don't have Glibc-2.2.3 installed. It will more
|
---|
[70cdda10] | 26 | than likely result in all kinds of compile time problems.</para>
|
---|
| 27 |
|
---|
[3b3e965d] | 28 | <para><screen><userinput>patch -Np1 -i ../fileutils-&fileutils-version;.patch</userinput></screen></para>
|
---|
[4d6fc2da] | 29 |
|
---|
[e69a59f] | 30 | <para>Install Fileutils by running the following commands:</para>
|
---|
[4d6fc2da] | 31 |
|
---|
[5e2cb65] | 32 | <para><screen><userinput>./configure --disable-nls --prefix=$LFS/static &&
|
---|
[4d6fc2da] | 33 | make LDFLAGS=-static &&
|
---|
[5e2cb65] | 34 | make install</userinput></screen></para>
|
---|
[6370fa6] | 35 |
|
---|
[e69a59f] | 36 | <para>Once you have installed Fileutils, you can test whether the
|
---|
[ec710a3] | 37 | segmentation fault problem has been avoided by running
|
---|
[c02af2e] | 38 | <userinput>$LFS/static/bin/ls</userinput>. If this works, then you are OK. If
|
---|
[f66ac14] | 39 | not, then you need to re-do the installation using the sed commands if
|
---|
| 40 | you didn't use them, or without the sed commands if you did use
|
---|
| 41 | them.</para>
|
---|
[ec710a3] | 42 |
|
---|
[6370fa6] | 43 | </sect2>
|
---|
| 44 |
|
---|