diff options
Diffstat (limited to 'chapter05/findutils.xml')
-rw-r--r-- | chapter05/findutils.xml | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/chapter05/findutils.xml b/chapter05/findutils.xml index 064a9e848..073c1640c 100644 --- a/chapter05/findutils.xml +++ b/chapter05/findutils.xml @@ -42,30 +42,25 @@ <sect2 role="installation"> <title>Installation of Findutils</title> -<!-- - <para>First, make some fixes required by glibc-2.28:</para> -<screen><userinput remap="pre">sed -i 's/IO_ftrylockfile/IO_EOF_SEEN/' gl/lib/*.c -sed -i '/unistd/a #include <sys/sysmacros.h>' gl/lib/mountlist.c -echo "#define _IO_IN_BACKUP 0x100" >> gl/lib/stdio-impl.h</userinput></screen> ---> <para>Prepare Findutils for compilation:</para> -<screen><userinput remap="configure">./configure --prefix=/tools</userinput></screen> +<screen><userinput remap="configure">./configure --prefix=/usr \ + --host=$LFS_TGT \ + --build=$(build-aux/config.guess)</userinput></screen> <para>Compile the package:</para> <screen><userinput remap="make">make</userinput></screen> - <para>Compilation is now complete. As discussed earlier, running the test - suite is not mandatory for the temporary tools here in this chapter. To run - the Findutils test suite anyway, issue the following command:</para> + <para>Install the package:</para> -<screen><userinput remap="test">make check</userinput></screen> +<screen><userinput remap="install">make DESTDIR=$LFS install</userinput></screen> - <para>Install the package:</para> + <para>Move the excutable to its final expected location:</para> -<screen><userinput remap="install">make install</userinput></screen> +<screen><userinput remap="install">mv -v $LFS/usr/bin/find $LFS/bin +sed -i 's|find:=${BINDIR}|find:=/bin|' $LFS/usr/bin/updatedb</userinput></screen> </sect2> |