source: BOOK/temp-system/common/vim.xml@ c64abcb

clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since c64abcb was 01672b8, checked in by Chris Staub <chris@…>, 12 years ago

Do not use sed -i in temp-system as the host cannot be guaranteed to have GNU sed

  • Property mode set to 100644
File size: 3.9 KB
RevLine 
[ffbc9152]1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-temp-system-vim" role="wrap">
9 <?dbhtml filename="vim.html"?>
10
11 <title>Vim-&vim-version;</title>
12
13 <indexterm zone="ch-temp-system-vim">
14 <primary sortas="a-Vim">Vim</primary>
15 <secondary>temporary system</secondary>
16 </indexterm>
17
[dabbced]18 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[ffbc9152]19 href="../../final-system/common/vim.xml"
20 xpointer="xpointer(//*[@role='package'])"/>
21
22 <sect2 role="installation">
23 <title>Installation of VIM</title>
24
[dabbced]25 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[ffbc9152]26 href="../../final-system/common/vim.xml"
27 xpointer="xpointer(//*[@os='p1'])"/>
28
[dabbced]29 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[ffbc9152]30 href="../../final-system/common/vim.xml"
31 xpointer="xpointer(//*[@os='p2'])"/>
32
[6c5a343]33 <para os="s1">The configure script has a single hard coded test that
34 cannot be bypassed with a cache entry. Disable this test with the
35 following command:</para>
36
[01672b8]37<screen os="s2"><userinput>cp -v src/auto/configure{,.orig}
38sed "/using uint32_t/s/as_fn_error/#&amp;/" src/auto/configure.orig > src/auto/configure</userinput></screen>
[6c5a343]39
[878afd8]40 <para os="c1">The <command>configure</command> script is full of logic
[58598c1]41 that aborts at the first sign of cross compiling. Work around this by
42 setting the cached values of several tests with the following
43 command:</para>
[ffbc9152]44
45<screen os="c2"><userinput>cat &gt; src/auto/config.cache &lt;&lt; "EOF"
46vim_cv_getcwd_broken=no
47vim_cv_memmove_handles_overlap=yes
48vim_cv_stat_ignores_slash=no
49vim_cv_terminfo=yes
50vim_cv_tgent=zero
51vim_cv_toupper_broken=no
52vim_cv_tty_group=world
53ac_cv_sizeof_int=4
[6c5a343]54ac_cv_sizeof_long=4
55ac_cv_sizeof_time_t=4
56ac_cv_sizeof_off_t=4
[ffbc9152]57EOF</userinput></screen>
58
[878afd8]59 <para os="b">Change the default location of
60 the <filename>vimrc</filename> configuration file to <filename
61 class="directory">/tools/etc</filename>:</para>
[ffbc9152]62
63<screen os="c"><userinput>echo '#define SYS_VIMRC_FILE "/tools/etc/vimrc"' &gt;&gt; src/feature.h</userinput></screen>
64
[dabbced]65 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[ffbc9152]66 href="../../final-system/common/vim.xml"
67 xpointer="xpointer(//*[@os='d'])"/>
68
[6c5a343]69<screen os="e"><userinput>./configure \
[c3cd569a]70 --build=${CLFS_HOST} --host=${CLFS_TARGET} \
71 --prefix=/tools --enable-multibyte --enable-gui=no \
72 --disable-gtktest --disable-xim --with-features=normal \
73 --disable-gpm --without-x --disable-netbeans \
74 --with-tlib=ncurses</userinput></screen>
[ffbc9152]75
[dabbced]76 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[ffbc9152]77 href="../../final-system/common/vim.xml"
78 xpointer="xpointer(//*[@os='g'])"/>
79
[dabbced]80 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[ffbc9152]81 href="../../final-system/common/vim.xml"
82 xpointer="xpointer(//*[@os='h'])"/>
83
[dabbced]84 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[ffbc9152]85 href="../../final-system/common/vim.xml"
86 xpointer="xpointer(//*[@os='j'])"/>
87
[dabbced]88 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[ffbc9152]89 href="../../final-system/common/vim.xml"
90 xpointer="xpointer(//*[@os='k'])"/>
91
[dabbced]92 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[ffbc9152]93 href="../../final-system/common/vim.xml"
94 xpointer="xpointer(//*[@os='l'])"/>
95
96<screen os="m"><userinput>ln -sv vim /tools/bin/vi</userinput></screen>
97
[0f90f2f]98 <para os="tv1" >Create a temporary vimrc to make it function more the way you may
99 expect it to. This is explained more in the final system:</para>
100
101<screen os="tv2"><userinput>cat &gt; /tools/etc/vimrc &lt;&lt; "EOF"
102<literal>" Begin /etc/vimrc
103
104set nocompatible
105set backspace=2
106set ruler
107syntax on
108
109" End /etc/vimrc</literal>
110EOF</userinput></screen>
111
[ffbc9152]112 </sect2>
113
114 <sect2 role="content">
115 <title/>
116
117 <para>Details on this package are located in <xref
118 linkend="contents-vim" role="."/></para>
119
120 </sect2>
121
122</sect1>
Note: See TracBrowser for help on using the repository browser.