source: general/prog/tk.xml@ b112f043

11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since b112f043 was 1d37b08d, checked in by Bruce Dubbs <bdubbs@…>, 17 months ago

Update to tk8.6.13.

  • Property mode set to 100644
File size: 7.1 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 <!ENTITY tk-download-http "&sourceforge-dl;/tcl/tk&tk-version;-src.tar.gz">
8 <!ENTITY tk-download-ftp " ">
9 <!ENTITY tk-md5sum "95adc33d55a133ee29bc9f81efdf31b2">
10 <!ENTITY tk-size "4.3 MB">
11 <!ENTITY tk-buildsize "25 MB">
12 <!ENTITY tk-time "0.3 SBU (add 2.0 SBU for tests)">
13
14 <!-- Ensure this is updated when Tk moves from the 8.6.x branch -->
15 <!ENTITY tk-ver "8.6">
16]>
17
18<sect1 id="tk" xreflabel="Tk-&tk-version;">
19 <?dbhtml filename="tk.html"?>
20
21
22 <title>Tk-&tk-version;</title>
23
24 <indexterm zone="tk">
25 <primary sortas="a-Tk">Tk</primary>
26 </indexterm>
27
28 <sect2 role="package">
29 <title>Introduction to Tk</title>
30
31 <para>
32 The <application>Tk</application> package contains a
33 TCL GUI Toolkit.
34 </para>
35
36 &lfs112_checked;
37
38 <bridgehead renderas="sect3">Package Information</bridgehead>
39 <itemizedlist spacing="compact">
40 <listitem>
41 <para>
42 Download (HTTP): <ulink url="&tk-download-http;"/>
43 </para>
44 </listitem>
45 <listitem>
46 <para>
47 Download (FTP): <ulink url="&tk-download-ftp;"/>
48 </para>
49 </listitem>
50 <listitem>
51 <para>
52 Download MD5 sum: &tk-md5sum;
53 </para>
54 </listitem>
55 <listitem>
56 <para>
57 Download size: &tk-size;
58 </para>
59 </listitem>
60 <listitem>
61 <para>
62 Estimated disk space required: &tk-buildsize;
63 </para>
64 </listitem>
65 <listitem>
66 <para>
67 Estimated build time: &tk-time;
68 </para>
69 </listitem>
70 </itemizedlist>
71
72 <bridgehead renderas="sect3">Tk Dependencies</bridgehead>
73
74 <bridgehead renderas="sect4">Required</bridgehead>
75 <para role="required">
76 <!-- <xref linkend="tcl"/> and -->
77 <xref linkend="xorg7-lib"/>
78 </para>
79
80 <para condition="html" role="usernotes">User Notes:
81 <ulink url="&blfs-wiki;/tk"/>
82 </para>
83 </sect2>
84
85 <sect2 role="installation">
86 <title>Installation of Tk</title>
87
88 <para>
89 Install <application>Tk</application> by running the following
90 commands:
91 </para>
92
93<screen><userinput>cd unix &amp;&amp;
94./configure --prefix=/usr \
95 --mandir=/usr/share/man \
96 $([ $(uname -m) = x86_64 ] &amp;&amp; echo --enable-64bit) &amp;&amp;
97
98make &amp;&amp;
99
100sed -e "s@^\(TK_SRC_DIR='\).*@\1/usr/include'@" \
101 -e "/TK_B/s@='\(-L\)\?.*unix@='\1/usr/lib@" \
102 -i tkConfig.sh</userinput></screen>
103
104 <para>
105 Running the tests is not recommended. Failures will be reported during the
106 tests, depending on the screen resolution/capabilities, fonts installed
107 and other X related parameters, but the end report can show 0 failures.
108 Some tests will steal focus and some might crash your X Server. To test
109 the results anyway, issue: <command>make test</command>. Ensure you run
110 it from an X Window display device with the GLX extensions loaded, but
111 even so, tests might hang.
112 <!-- Test Statistics (tk8.6.9 - renodr):
113 Total: 466
114 Passed: 447
115 Skipped: 17
116 Failed: 2
117 The two tests that fail have to do with ttk.test
118
119 tk8.6.10 - bdubbs 11/25/2019
120 Total 480 Passed 463 Skipped 17 Failed 0
121
122 tk8.6.11.1 - pierre 01/16/2021 There are two summary lines apparently:
123 Total 9650 Passed 8847 Skipped 708 Failed 95
124 Total 488 Passed 470 Skipped 17 Failed 1
125 -->
126 </para>
127
128 <para>
129 Now, as the <systemitem class="username">root</systemitem> user:
130 </para>
131
132<screen role="root"><userinput>make install &amp;&amp;
133make install-private-headers &amp;&amp;
134ln -v -sf wish&tk-ver; /usr/bin/wish &amp;&amp;
135chmod -v 755 /usr/lib/libtk&tk-ver;.so</userinput></screen>
136
137 </sect2>
138
139 <sect2 role="commands">
140 <title>Command Explanations</title>
141
142 <para>
143 <parameter>$([ $(uname -m) = x86_64 ] &amp;&amp; echo
144 --enable-64bit)</parameter>: This switch is used to enable 64 bit
145 support in <application>Tk</application> on 64 bit operating
146 systems.
147 </para>
148
149 <para>
150 <command>make install-private-headers</command>: This command is
151 used to install the <application>Tk</application> library interface
152 headers used by other packages if they link to the
153 <application>Tk</application> library.
154 </para>
155
156 <para>
157 <command>ln -v -sf wish&tk-ver; /usr/bin/wish</command>: This
158 command is used to create a compatibility symbolic link to the
159 <command>wish&tk-ver;</command> file as many packages expect a file
160 named <command>wish</command>.
161 </para>
162
163 <para>
164 <command>sed -e ... tkConfig.sh</command>: The
165 <application>Tk</application> package expects that its source tree is
166 preserved so that packages depending on it for their compilation
167 can utilize it. This <command>sed</command> removes the references to the
168 build directory and replaces them with saner system-wide locations.
169 </para>
170
171 </sect2>
172
173 <sect2 role="content">
174 <title>Contents</title>
175
176 <segmentedlist>
177 <segtitle>Installed Programs</segtitle>
178 <segtitle>Installed Libraries</segtitle>
179 <segtitle>Installed Directory</segtitle>
180
181 <seglistitem>
182 <seg>
183 wish and wish&tk-ver;
184 </seg>
185 <seg>
186 libtk&tk-ver;.so and libtkstub&tk-ver;.a
187 </seg>
188 <seg>
189 /usr/lib/tk&tk-ver;
190 </seg>
191 </seglistitem>
192 </segmentedlist>
193
194 <variablelist>
195 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
196 <?dbfo list-presentation="list"?>
197 <?dbhtml list-presentation="table"?>
198
199 <varlistentry id="wish">
200 <term><command>wish</command></term>
201 <listitem>
202 <para>
203 is a symlink to the <command>wish&tk-ver;</command> program
204 </para>
205 <indexterm zone="tk wish">
206 <primary sortas="b-wish">wish</primary>
207 </indexterm>
208 </listitem>
209 </varlistentry>
210
211 <varlistentry id="wish-eight">
212 <term><command>wish&tk-ver;</command></term>
213 <listitem>
214 <para>
215 is a simple shell containing the
216 <application>Tk</application> toolkit that creates a main window and
217 then processes <application>Tcl</application> commands
218 </para>
219 <indexterm zone="tk wish-eight">
220 <primary sortas="b-wish&tk-ver;">wish&tk-ver;</primary>
221 </indexterm>
222 </listitem>
223 </varlistentry>
224
225 <varlistentry id="libtk">
226 <term><filename class="libraryfile">libtk&tk-ver;.so</filename></term>
227 <listitem>
228 <para>
229 contains the API functions required
230 by <application>Tk</application>
231 </para>
232 <indexterm zone="tk libtk">
233 <primary sortas="c-libtk">libtk&tk-ver;.so</primary>
234 </indexterm>
235 </listitem>
236 </varlistentry>
237
238 </variablelist>
239
240 </sect2>
241
242</sect1>
Note: See TracBrowser for help on using the repository browser.