r5392 - in branches/cross-lfs/BOOK/chroot: . common multilib

jhuntwork at linuxfromscratch.org jhuntwork at linuxfromscratch.org
Sun May 22 14:43:57 PDT 2005


Author: jhuntwork
Date: 2005-05-22 15:43:57 -0600 (Sun, 22 May 2005)
New Revision: 5392

Added:
   branches/cross-lfs/BOOK/chroot/multilib/
   branches/cross-lfs/BOOK/chroot/multilib/util-linux.xml
Modified:
   branches/cross-lfs/BOOK/chroot/common/util-linux.xml
Log:
Fixed seds for util-linux, and added multilib commands for multilib archs in util-linux

Modified: branches/cross-lfs/BOOK/chroot/common/util-linux.xml
===================================================================
--- branches/cross-lfs/BOOK/chroot/common/util-linux.xml	2005-05-22 21:17:46 UTC (rev 5391)
+++ branches/cross-lfs/BOOK/chroot/common/util-linux.xml	2005-05-22 21:43:57 UTC (rev 5392)
@@ -34,7 +34,9 @@
 libraries from the <filename class="directory">/tools</filename>
 directory. This is fixed by altering the configure script:</para>
 
-<screen><userinput>sed -i 's@/usr/include@/tools/include at g' configure</userinput></screen>
+<screen><userinput>mv configure configure.orig
+sed 's@/usr/include@/tools/include at g' configure.orig > configure
+chmod 755 configure</userinput></screen>
 
 <para>Prepare Util-linux for compilation:</para>
 

Copied: branches/cross-lfs/BOOK/chroot/multilib/util-linux.xml (from rev 5387, branches/cross-lfs/BOOK/chroot/common/util-linux.xml)
===================================================================
--- branches/cross-lfs/BOOK/chroot/common/util-linux.xml	2005-05-22 20:04:31 UTC (rev 5387)
+++ branches/cross-lfs/BOOK/chroot/multilib/util-linux.xml	2005-05-22 21:43:57 UTC (rev 5392)
@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
+  <!ENTITY % general-entities SYSTEM "../../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../../patches.ent">
+  %general-entities;
+  %patches-entities;
+]>
+
+<sect1 id="ch-chroot-util-linux" role="wrap">
+<title>Util-linux-&util-linux-version;</title>
+<?dbhtml filename="util-linux.html"?>
+
+<indexterm zone="ch-chroot-util-linux">
+<primary sortas="a-Util-linux">Util-linux</primary>
+<secondary>chroot</secondary></indexterm>
+
+<sect2 role="package"><title/>
+<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../../final-system/common/util-linux.xml" xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
+
+<segmentedlist>
+<segtitle>&buildtime;</segtitle>
+<segtitle>&diskspace;</segtitle>
+<seglistitem><seg>0.2 SBU</seg><seg>16 MB</seg></seglistitem>
+</segmentedlist>
+
+<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../../final-system/common/util-linux.xml" xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/>
+
+</sect2>
+
+<sect2 role="installation">
+<title>Installation of Util-linux</title>
+
+<para>Util-linux does not use the freshly installed headers and
+libraries from the <filename class="directory">/tools</filename>
+directory. This is fixed by altering the configure script:</para>
+
+<screen><userinput>mv configure configure.orig
+sed 's@/usr/include@/tools/include at g' configure.orig > configure
+chmod 755 configure</userinput></screen>
+
+<para>Ensure that util-linux uses the proper flags for our compile:</para>
+
+<screen><userinput>export CC="${CC} ${BUILD64}"</userinput></screen>
+
+<para>Prepare Util-linux for compilation:</para>
+
+<screen><userinput>./configure</userinput></screen>
+
+<para>Compile some support routines:</para>
+
+<screen><userinput>make ARCH="" CPU="" -C lib</userinput></screen>
+
+<para>Since only a couple of the utilities contained in this package
+are needed, build only those:</para>
+
+<screen><userinput>make ARCH="" CPU="" -C mount mount umount
+make ARCH="" CPU="" -C text-utils more</userinput></screen>
+
+<para>This package does not come with a test suite.</para>
+
+<para>Copy these programs to the temporary tools directory:</para>
+
+<screen><userinput>cp mount/{,u}mount text-utils/more /tools/bin</userinput></screen>
+
+</sect2>
+
+<sect2 role="content"><title/>
+<para>Details on this package are located in <xref
+linkend="contents-util-linux" role="."/></para>
+</sect2>
+</sect1>
+




More information about the lfs-book mailing list