source: chapter05/tcl.xml@ 289207b

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 7.4 7.5 7.6 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 289207b was 289207b, checked in by Bruce Dubbs <bdubbs@…>, 11 years ago

I hesitate to make a commit today, but the changes are ready.

Upgrade to Linux-3.8.5
Upgrade to Systemd-200
Expand tcl space for regular expressions needed for some tests
Disable a g++ libmudflap test that always fails

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10237 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 5.7 KB
Line 
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-tools-tcl" role="wrap">
9 <?dbhtml filename="tcl.html"?>
10
11 <sect1info condition="script">
12 <productname>tcl</productname>
13 <productnumber>&tcl-version;</productnumber>
14 <address>&tcl-url;</address>
15 </sect1info>
16
17 <title>Tcl-&tcl-version;</title>
18
19 <indexterm zone="ch-tools-tcl">
20 <primary sortas="a-Tcl">Tcl</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
25
26 <para>The Tcl package contains the Tool Command Language.</para>
27
28 <segmentedlist>
29 <segtitle>&buildtime;</segtitle>
30 <segtitle>&diskspace;</segtitle>
31
32 <seglistitem>
33 <seg>&tcl-ch5-sbu;</seg>
34 <seg>&tcl-ch5-du;</seg>
35 </seglistitem>
36 </segmentedlist>
37
38 </sect2>
39
40 <sect2 role="installation">
41 <title>Installation of Tcl</title>
42
43 <para>This package and the next three (Expect, DejaGNU, and Check) are
44 installed to support running the test suites for GCC and Binutils and other
45 packages. Installing four packages for testing purposes may seem
46 excessive, but it is very reassuring, if not essential, to know that the
47 most important tools are working properly. Even if the test suites are not
48 run in this chapter (they are not mandatory), these packages are required
49 to run the test suites in <xref linkend="chapter-building-system"/>.</para>
50
51 <para>First increase the amount of space needed by some regular expressions
52 in regression tests.</para>
53
54<screen><userinput remap="pre">sed -i s/500/5000/ generic/regc_nfa.c</userinput></screen>
55
56 <para>Prepare Tcl for compilation:</para>
57
58<screen><userinput remap="configure">cd unix
59./configure --prefix=/tools</userinput></screen>
60
61 <para>Build the package:</para>
62
63<screen><userinput remap="make">make</userinput></screen>
64
65 <para>Compilation is now complete. As discussed earlier, running the test
66 suite is not mandatory for the temporary tools here in this chapter. To run
67 the Tcl test suite anyway, issue the following command:</para>
68
69<screen><userinput remap="test">TZ=UTC make test</userinput></screen>
70
71 <para>The Tcl test suite may experience failures under certain host
72 conditions that are not fully understood. Therefore, test suite failures
73 here are not surprising, and are not considered critical. The
74 <parameter>TZ=UTC</parameter> parameter sets the time zone to Coordinated
75 Universal Time (UTC), also known as Greenwich Mean Time (GMT), but only
76 for the duration of the test suite run. This ensures that the clock tests
77 are exercised correctly. Details on the <envar>TZ</envar> environment
78 variable are provided in <xref linkend="chapter-bootscripts"/>.</para>
79
80 <para>Install the package:</para>
81
82<screen><userinput remap="install">make install</userinput></screen>
83
84 <para>Make the installed library writable so debugging symbols can
85 be removed later:</para>
86
87<screen><userinput remap="install">chmod -v u+w /tools/lib/libtcl&tcl-major-version;.so</userinput></screen>
88
89 <para>Install Tcl's headers. The next package, Expect, requires them
90 to build.</para>
91
92<screen><userinput remap="install">make install-private-headers</userinput></screen>
93
94 <para>Now make a necessary symbolic link:</para>
95
96<screen><userinput remap="install">ln -sv tclsh&tcl-major-version; /tools/bin/tclsh</userinput></screen>
97
98 </sect2>
99
100 <sect2 id="contents-tcl" role="content">
101 <title>Contents of Tcl</title>
102
103 <segmentedlist>
104 <segtitle>Installed programs</segtitle>
105 <segtitle>Installed library</segtitle>
106
107 <seglistitem>
108 <seg>tclsh (link to tclsh&tcl-major-version;) and tclsh&tcl-major-version;</seg>
109 <seg>libtcl&tcl-major-version;.so, libtclstub&tcl-major-version;.a</seg>
110 </seglistitem>
111 </segmentedlist>
112
113 <variablelist>
114 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
115 <?dbfo list-presentation="list"?>
116 <?dbhtml list-presentation="table"?>
117
118 <varlistentry id="tclsh&tcl-major-version;">
119 <term><command>tclsh&tcl-major-version;</command></term>
120 <listitem>
121 <para>The Tcl command shell</para>
122 <indexterm zone="ch-tools-tcl tclsh&tcl-major-version;">
123 <primary sortas="b-tclsh&tcl-major-version;">tclsh&tcl-major-version;</primary>
124 </indexterm>
125 </listitem>
126 </varlistentry>
127
128 <varlistentry id="tclsh">
129 <term><command>tclsh</command></term>
130 <listitem>
131 <para>A link to tclsh&tcl-major-version;</para>
132 <indexterm zone="ch-tools-tcl tclsh">
133 <primary sortas="b-tclsh">tclsh</primary>
134 </indexterm>
135 </listitem>
136 </varlistentry>
137
138 <varlistentry id="libtcl&tcl-major-version;.so">
139 <term><filename class="libraryfile">libtcl&tcl-major-version;.so</filename></term>
140 <listitem>
141 <para>The Tcl library</para>
142 <indexterm zone="ch-tools-tcl libtcl&tcl-major-version;.so">
143 <primary sortas="c-libtcl&tcl-major-version;.so">libtcl&tcl-major-version;.so</primary>
144 </indexterm>
145 </listitem>
146 </varlistentry>
147
148 <varlistentry id="libtclstub&tcl-major-version;.a">
149 <term><filename class="libraryfile">libtclstub&tcl-major-version;.a</filename></term>
150 <listitem>
151 <para>The Tcl Stub library</para>
152 <indexterm zone="ch-tools-tcl libtclstub&tcl-major-version;.a">
153 <primary sortas="c-libtclstub&tcl-major-version;.a">libtclstub&tcl-major-version;.a</primary>
154 </indexterm>
155 </listitem>
156 </varlistentry>
157
158 </variablelist>
159
160 </sect2>
161
162</sect1>
Note: See TracBrowser for help on using the repository browser.