r5344 - in branches/cross-lfs/BOOK/temp-system: . multilib

jhuntwork at linuxfromscratch.org jhuntwork at linuxfromscratch.org
Fri May 13 11:28:39 PDT 2005


Author: jhuntwork
Date: 2005-05-13 12:28:39 -0600 (Fri, 13 May 2005)
New Revision: 5344

Added:
   branches/cross-lfs/BOOK/temp-system/multilib/ncurses-64bit.xml
Modified:
   branches/cross-lfs/BOOK/temp-system/sparc64-chapter.xml
Log:
Added 64bit ncurses instructions to multilib in temp-system

Copied: branches/cross-lfs/BOOK/temp-system/multilib/ncurses-64bit.xml (from rev 5343, branches/cross-lfs/BOOK/temp-system/multilib/ncurses.xml)
===================================================================
--- branches/cross-lfs/BOOK/temp-system/multilib/ncurses.xml	2005-05-13 18:24:53 UTC (rev 5343)
+++ branches/cross-lfs/BOOK/temp-system/multilib/ncurses-64bit.xml	2005-05-13 18:28:39 UTC (rev 5344)
@@ -0,0 +1,95 @@
+<?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-temp-system-ncurses-64bit" role="wrap">
+<title>Ncurses-&ncurses-versioni; 64-Bit</title>
+<?dbhtml filename="ncurses-64.html"?>
+
+<indexterm zone="ch-temp-system-ncurses-64bit">
+<primary sortas="a-Ncurses-64bit">Ncurses</primary>
+<secondary>temporary system</secondary></indexterm>
+
+<sect2 role="package"><title/>
+<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../../final-system/common/ncurses.xml" xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
+
+<segmentedlist>
+<segtitle>&buildtime;</segtitle>
+<segtitle>&diskspace;</segtitle>
+<seglistitem><seg>0.7 SBU</seg><seg>26 MB</seg></seglistitem>
+</segmentedlist>
+
+<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../../final-system/common/ncurses.xml" xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/>
+
+</sect2>
+
+<sect2 role="installation">
+<title>Installation of Ncurses</title>
+
+<para>When cross-compiling, Ncurses doesn't always properly create
+the file ncurses/comp_captab.c which results in build failures. Fix
+this issue by updating ncurses with a rollup patch released on 2005/03/19:</para>
+
+<screen><userinput>bzcat ../&ncurses-update-patch; > update.sh
+sh update.sh</userinput></screen>
+
+<para>The Ncurses package will use the environment variables CC and CXX in preference
+to variables you may pass to the configure script. To force ncurses to use our build flags
+we temporarily set CC and CXX:</para>
+
+<screen><userinput>export CC="${LFS_TARGET}-gcc ${BUILD64}"
+export CXX="${LFS_TARGET}-g++ ${BUILD64}"</userinput></screen>
+
+<para>Prepare Ncurses for compilation:</para>
+
+<screen><userinput>./configure --prefix=/tools --with-shared \
+   --host=${LFS_TARGET} --without-debug --without-ada \
+   --enable-overwrite --with-build-cc=gcci --libdir=/tools/lib64</userinput></screen>
+
+<para>The meaning of the configure options:</para>
+
+<variablelist>
+<varlistentry>
+<term><parameter>--without-ada</parameter></term>
+<listitem><para>This tells Ncurses not to build its Ada bindings, even
+if an Ada compiler is installed on the host. This needs to be done
+because once we enter the chroot environment, Ada will no longer be
+available.</para></listitem>
+</varlistentry>
+
+<varlistentry>
+<term><parameter>--enable-overwrite</parameter></term>
+<listitem><para>This tells Ncurses to install its header files into
+<filename class="directory">/tools/include</filename>, instead of
+<filename class="directory">/tools/include/ncurses</filename>, to
+ensure that other packages can find the Ncurses headers
+successfully.</para></listitem>
+</varlistentry>
+</variablelist>
+
+
+<para>Compile the package:</para>
+
+<screen><userinput>make</userinput></screen>
+
+<para>Install the package:</para>
+
+<screen><userinput>make install</userinput></screen>
+
+<para>Now restore your original environment variables:</para>
+
+<screen><userinput>source ~/.bash_profile</userinput></screen>
+
+</sect2>
+
+<sect2 role="content"><title/>
+<para>Details on this package are located in <xref
+linkend="contents-ncurses" role="."/></para>
+</sect2>
+
+</sect1>
+

Modified: branches/cross-lfs/BOOK/temp-system/sparc64-chapter.xml
===================================================================
--- branches/cross-lfs/BOOK/temp-system/sparc64-chapter.xml	2005-05-13 18:24:53 UTC (rev 5343)
+++ branches/cross-lfs/BOOK/temp-system/sparc64-chapter.xml	2005-05-13 18:28:39 UTC (rev 5344)
@@ -30,6 +30,7 @@
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="multilib/gettext.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="multilib/gettext-64bit.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="multilib/ncurses.xml"/>
+<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="multilib/ncurses-64bit.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/patch.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/tar.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/bash.xml"/>




More information about the lfs-book mailing list