r1734 - in branches/clfs-2.0/BOOK: . final-system/common introduction/common

jciccone at linuxfromscratch.org jciccone at linuxfromscratch.org
Tue Jun 6 14:31:29 PDT 2006


Author: jciccone
Date: 2006-06-06 15:31:29 -0600 (Tue, 06 Jun 2006)
New Revision: 1734

Modified:
   branches/clfs-2.0/BOOK/final-system/common/vim.xml
   branches/clfs-2.0/BOOK/general.ent
   branches/clfs-2.0/BOOK/introduction/common/changelog.xml
   branches/clfs-2.0/BOOK/patches.ent
Log:
Added information about cross-compiling vim

Modified: branches/clfs-2.0/BOOK/final-system/common/vim.xml
===================================================================
--- branches/clfs-2.0/BOOK/final-system/common/vim.xml	2006-06-06 19:54:26 UTC (rev 1733)
+++ branches/clfs-2.0/BOOK/final-system/common/vim.xml	2006-06-06 21:31:29 UTC (rev 1734)
@@ -33,16 +33,19 @@
   <sect2 role="installation">
     <title>Installation of Vim</title>
 
-    <important os="w1"><para>The cross-compilation of vim is currently a mystery. Help would be greatly apreciated</para></important>
-
     <para os="a">First, unpack both <filename>vim-&vim-version;.tar.bz2</filename>
     and (optionally) <filename>vim-&vim-version;-lang.tar.gz</filename>
     archives into the same directory.</para>
 
-    <para os="p1">The following patch contains updates from the maintainer. The
+    <para os="p1">The following patch fixes numerous issues with
+    cross-compiling vim</para>
+
+<screen os="p2"><userinput>patch -Np1 -i ../&vim-cross_compile-patch;</userinput></screen>
+
+    <para os="p3">The following patch contains updates from the maintainer. The
     maintainer of Vim only releases these patches to fix serious issues.</para>
 
-<screen os="p2"><userinput>patch -Np1 -i ../&vim-fixes-patch;</userinput></screen>
+<screen os="p4"><userinput>patch -Np1 -i ../&vim-fixes-patch;</userinput></screen>
 
     <para os="b">Change the default location of
     the <filename>vimrc</filename> configuration file to <filename
@@ -52,7 +55,12 @@
 
     <para os="d">Prepare Vim for compilation:</para>
 
-<screen os="e"><userinput>./configure --prefix=/usr --enable-multibyte</userinput></screen>
+<screen os="e"><userinput>./configure --prefix=/usr --host=${LFS_TARGET} \
+    --enable-multibyte --enable-gui=no \
+    --disable-gtktest --disable-xim \
+    --with-features=normal --disable-gpm \
+    --without-x --disable-netbeans \
+    --with-tlib=ncurses</userinput></screen>
 
     <variablelist os="f">
       <title>The meaning of the configure options:</title>
@@ -75,29 +83,24 @@
 
 <screen os="h"><userinput>make</userinput></screen>
 
-    <para os="i">To test the results, issue: <userinput>make test</userinput>.
-    However, this test suite outputs a lot of binary data to the
-    screen, which can cause issues with the settings of the current terminal.
-    This can be resolved by redirecting the output to a log file.</para>
+    <para os="i">Install the package:</para>
 
-    <para os="j">Install the package:</para>
+<screen os="j"><userinput>make DESTDIR=${LFS} install</userinput></screen>
 
-<screen os="k"><userinput>make install</userinput></screen>
-
-    <para os="l">Many users are used to using <command>vi</command> instead of
+    <para os="k">Many users are used to using <command>vi</command> instead of
     <command>vim</command>. To allow execution of <command>vim</command>
     when users habitually enter <command>vi</command>, create a
     symlink:</para>
 
-<screen os="m"><userinput>ln -sv vim /usr/bin/vi</userinput></screen>
+<screen os="l"><userinput>ln -sv vim ${LFS}/usr/bin/vi</userinput></screen>
 
-<para os="n">By default, Vim's documentation is installed in
+<para os="m">By default, Vim's documentation is installed in
 <filename class="directory">/usr/share/vim</filename>.  The following symlink
 allows the documentation to be accessed via
 <filename class="directory">/usr/share/doc/vim-&vim-version;</filename>, making
 it consistent with the location of documentation for other packages:</para>
 
-<screen os="o"><userinput>ln -sv ../vim/vim&vim-version2;/doc /usr/share/doc/vim-&vim-version;</userinput></screen>
+<screen os="n"><userinput>ln -sv ../vim/vim&vim-version2;/doc ${LFS}/usr/share/doc/vim-&vim-version;</userinput></screen>
 
     <para os="p">If an X Window System is going to be installed on the LFS
     system, it may be necessary to recompile Vim after installing X. Vim
@@ -126,7 +129,7 @@
     default <command>vim</command> configuration file by running the
     following:</para>
 
-<screen><userinput>cat > /etc/vimrc << "EOF"
+<screen><userinput>cat > ${LFS}/etc/vimrc << "EOF"
 <literal>" Begin /etc/vimrc
 
 set nocompatible

Modified: branches/clfs-2.0/BOOK/general.ent
===================================================================
--- branches/clfs-2.0/BOOK/general.ent	2006-06-06 19:54:26 UTC (rev 1733)
+++ branches/clfs-2.0/BOOK/general.ent	2006-06-06 21:31:29 UTC (rev 1734)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 
-<!ENTITY version "SVN-20060605">
+<!ENTITY version "SVN-20060606">
 <!ENTITY version-ARM "&version;-ARM">
 
 <!ENTITY releasedate "June 6, 2006">

Modified: branches/clfs-2.0/BOOK/introduction/common/changelog.xml
===================================================================
--- branches/clfs-2.0/BOOK/introduction/common/changelog.xml	2006-06-06 19:54:26 UTC (rev 1733)
+++ branches/clfs-2.0/BOOK/introduction/common/changelog.xml	2006-06-06 21:31:29 UTC (rev 1734)
@@ -37,6 +37,15 @@
 -->
 
     <listitem>
+      <para>June 6, 2006</para>
+      <itemizedlist>
+        <listitem>
+          <para>[jciccone] - Added information about cross-compiling vim.</para>
+        </listitem>
+      </itemizedlist>
+    </listitem>
+
+    <listitem>
       <para>May 29, 2006</para>
       <itemizedlist>
 	<listitem>

Modified: branches/clfs-2.0/BOOK/patches.ent
===================================================================
--- branches/clfs-2.0/BOOK/patches.ent	2006-06-06 19:54:26 UTC (rev 1733)
+++ branches/clfs-2.0/BOOK/patches.ent	2006-06-06 21:31:29 UTC (rev 1734)
@@ -121,6 +121,10 @@
 <!ENTITY vim-fixes-patch-md5 "ed158ebfb653b797b642fbff175addea">
 <!ENTITY vim-fixes-patch-size "20 KB">
 
+<!ENTITY vim-cross_compile-patch "vim-&vim-version;-cross_compile-1.patch">
+<!ENTITY vim-cross_compile-patch-md5 "05da89742f75fc39292fbf7c5ccc17ff">
+<!ENTITY vim-criss_compile-patch-size "28 KB">
+
 <!ENTITY zlib-fpic-patch "zlib-&zlib-version;-fPIC-1.patch">
 <!ENTITY zlib-fpic-patch-md5 "545d60b20bfde6f53023de44438cef59">
 <!ENTITY zlib-fpic-patch-size "3.2 KB">




More information about the cross-lfs mailing list