1 |
commit: ba81755d24cd1b23fabd0722823ef5b0a1cbd803 |
2 |
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 27 09:42:48 2020 +0000 |
4 |
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 27 09:42:48 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba81755d |
7 |
|
8 |
dev-lang/tk: bump to 8.6.10 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/726840 |
11 |
Package-Manager: Portage-3.0.9, Repoman-3.0.2 |
12 |
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> |
13 |
|
14 |
dev-lang/tk/Manifest | 1 + |
15 |
dev-lang/tk/files/tk-8.6.10-multilib.patch | 11 + |
16 |
dev-lang/tk/files/tk-8.6.10-test.patch | 527 +++++++++++++++++++++++++++++ |
17 |
dev-lang/tk/tk-8.6.10.ebuild | 153 +++++++++ |
18 |
4 files changed, 692 insertions(+) |
19 |
|
20 |
diff --git a/dev-lang/tk/Manifest b/dev-lang/tk/Manifest |
21 |
index f0c0f3835b4..f8946e77095 100644 |
22 |
--- a/dev-lang/tk/Manifest |
23 |
+++ b/dev-lang/tk/Manifest |
24 |
@@ -1,4 +1,5 @@ |
25 |
DIST tk8.5.17-src.tar.gz 4095985 BLAKE2B 4cbb140c30ca717ee499b9ad9e1a3df27a470a78613edbaec425c39afaa41d59276bbe487933a4e77a9722fcafa9113b203cf5c828660bdeb38f667c3263c3cd SHA512 ddadc738c2567e35d1257b59212c8a0eb70a1bf041d986bc6df3b841b51d934d79a0ef389c928223a64516a92cae3357b2c789edca9c8a626ff4c1cf320c4f4f |
26 |
+DIST tk8.6.10-src.tar.gz 4444764 BLAKE2B f56647e005778c802352aee0257c0a8f5e0014c9d21362592f08030252d83141cca385f0fb95c0e7e930016255c3b2cef49a65064e056a877214b7d7a1a01246 SHA512 d12ef3a5bde9e10209a24e9f978bd23360a979d8fa70a859cf750a79ca51067a11ef6df7589303b52fe2a2baed4083583ddaa19e2c7cb433ea523639927f1be5 |
27 |
DIST tk8.6.8-src.tar.gz 4319854 BLAKE2B 167c5dc6c32e49653c04bc067c3d75df022ca230657be32797021b0e2f7748215d9ad0493c8020b8d1be1f005b9b2d561339a6a0b209721c0d05dd222d47d377 SHA512 d0d30637b733fb0b0d38461b6d872934c04af422fcdb7ec41a72331b2529cc94414e6f441f95a98642d69505e4f41469847fedd1cbe58bd08cdd818fcabd1db9 |
28 |
DIST tk8.6.9-src.tar.gz 4364606 BLAKE2B 9c96d977aa72dcc0c8d2a570d644284a1eef217ef082d8a78461bdcb4845e206ccad59cb5bc21ef80e32ea19951fa3a845e45059bb9eaf0756f128a95530260c SHA512 654d73aad006e628110057681477b958b7ec0a42287bc78259fb4b84635e7ebe757e69099d66c0c73479bc506ca66fa5baf13f13b0f403d60b2c54fd48a4a686 |
29 |
DIST tk8.6.9.1-src.tar.gz 4364603 BLAKE2B 3d96637ceadc28977f8b4532be071907d64f11bd22881baf02aa6fa2778b607437edce8f1ed02e7011bcf78468128f7bfe81ee6dac9bd73a796e7fefae130dcf SHA512 b9c811ffc8326331ae03c6fb25ea71f7a5eaeebd9d5a16a51a1671d0f0422268bd351b077e17ae925f0a7eddac9642aa640658615c52d4269c299373af031a92 |
30 |
|
31 |
diff --git a/dev-lang/tk/files/tk-8.6.10-multilib.patch b/dev-lang/tk/files/tk-8.6.10-multilib.patch |
32 |
new file mode 100644 |
33 |
index 00000000000..9b781362d65 |
34 |
--- /dev/null |
35 |
+++ b/dev-lang/tk/files/tk-8.6.10-multilib.patch |
36 |
@@ -0,0 +1,11 @@ |
37 |
+--- a/unix/configure.in 2020-12-26 11:26:32.952828258 +0100 |
38 |
++++ b/unix/configure.in 2020-12-26 11:26:45.027642732 +0100 |
39 |
+@@ -663,7 +663,7 @@ |
40 |
+ TCL_STUB_FLAGS="-DUSE_TCL_STUBS" |
41 |
+ fi |
42 |
+ |
43 |
+-test -z "$TK_LIBRARY" && TK_LIBRARY='$(prefix)/lib/tk$(VERSION)' |
44 |
++test -z "$TK_LIBRARY" && TK_LIBRARY='$(libdir)/tk$(VERSION)' |
45 |
+ PRIVATE_INCLUDE_DIR='$(includedir)' |
46 |
+ HTML_DIR='$(DISTDIR)/html' |
47 |
+ TK_PKG_DIR='tk$(VERSION)' |
48 |
|
49 |
diff --git a/dev-lang/tk/files/tk-8.6.10-test.patch b/dev-lang/tk/files/tk-8.6.10-test.patch |
50 |
new file mode 100644 |
51 |
index 00000000000..89dcbabfbdc |
52 |
--- /dev/null |
53 |
+++ b/dev-lang/tk/files/tk-8.6.10-test.patch |
54 |
@@ -0,0 +1,527 @@ |
55 |
+--- a/tests/ttk/entry.test 2020-12-26 18:46:45.262306641 +0100 |
56 |
++++ b/tests/ttk/entry.test 2020-12-26 18:47:00.246040124 +0100 |
57 |
+@@ -111,34 +111,34 @@ |
58 |
+ set result [.e xview] |
59 |
+ } -result {0.0 0.5} |
60 |
+ |
61 |
+-test entry-3.3 "xview" -body { |
62 |
++test entry-3.3 "xview" -constraints knownBug -body { |
63 |
+ .e delete 0 end; |
64 |
+ .e insert end abcdefghijklmnopqrstuvwxyz |
65 |
+ .e xview end |
66 |
+ set result [.e index @0] |
67 |
+ } -result {7} |
68 |
+ |
69 |
+-test entry-3.4 "xview" -body { |
70 |
++test entry-3.4 "xview" -constraints knownBug -body { |
71 |
+ .e delete 0 end; |
72 |
+ .e insert end abcdefghijklmnopqrstuvwxyz |
73 |
+ .e xview moveto 1.0 |
74 |
+ set result [.e index @0] |
75 |
+ } -result {7} |
76 |
+ |
77 |
+-test entry-3.5 "xview" -body { |
78 |
++test entry-3.5 "xview" -constraints knownBug -body { |
79 |
+ .e delete 0 end; |
80 |
+ .e insert end abcdefghijklmnopqrstuvwxyz |
81 |
+ .e xview scroll 5 units |
82 |
+ set result [.e index @0] |
83 |
+ } -result {5} |
84 |
+ |
85 |
+-test entry-3.6 "xview" -body { |
86 |
++test entry-3.6 "xview" -constraints knownBug -body { |
87 |
+ .e delete 0 end; |
88 |
+ .e insert end [string repeat abcdefghijklmnopqrstuvwxyz 5] |
89 |
+ .e xview scroll 2 pages |
90 |
+ set result [.e index @0] |
91 |
+ } -result {40} |
92 |
+ |
93 |
+ test entry-3.last "Series 3 cleanup" -body { |
94 |
+ destroy .e |
95 |
+ } |
96 |
+--- a/tests/bind.test 2020-12-26 18:48:21.586593331 +0100 |
97 |
++++ b/tests/bind.test 2020-12-26 18:48:50.134085486 +0100 |
98 |
+@@ -639,7 +639,7 @@ |
99 |
+ } -cleanup { |
100 |
+ destroy .t.f |
101 |
+ } -result {Keycolon Releasecolon} |
102 |
+-test bind-13.14 {Tk_BindEvent procedure: invalid key detail} -setup { |
103 |
++test bind-13.14 {Tk_BindEvent procedure: invalid key detail} -constraints knownBug -setup { |
104 |
+ frame .t.f -class Test -width 150 -height 100 |
105 |
+ pack .t.f |
106 |
+ focus -force .t.f |
107 |
+@@ -3536,7 +3536,7 @@ |
108 |
+ destroy .t.f |
109 |
+ } -returnCodes error -result {bad window name/identifier "xyz"} |
110 |
+ |
111 |
+-test bind-22.66 {HandleEventGenerate: options <Key> -root [winfo id .t]} -setup { |
112 |
++test bind-22.66 {HandleEventGenerate: options <Key> -root [winfo id .t]} -constraints knownBug -setup { |
113 |
+ frame .t.f -class Test -width 150 -height 100 |
114 |
+ pack .t.f |
115 |
+ focus -force .t.f |
116 |
+--- a/tests/ttk/spinbox.test 2020-12-26 18:49:19.967554727 +0100 |
117 |
++++ b/tests/ttk/spinbox.test 2020-12-26 18:49:58.015877788 +0100 |
118 |
+@@ -136,7 +136,7 @@ |
119 |
+ destroy .sb |
120 |
+ } -returnCodes error -result {bad validate "bogus": must be all, key, focus, focusin, focusout, or none} |
121 |
+ |
122 |
+-test spinbox-1.8.4 "-validate option: " -setup { |
123 |
++test spinbox-1.8.4 "-validate option: " -constraints knownBug -setup { |
124 |
+ set ::spinbox_test {} |
125 |
+ ttk::spinbox .sb -from 0 -to 100 |
126 |
+ } -body { |
127 |
+--- a/tests/canvText.test 2020-12-26 18:57:00.520357006 +0100 |
128 |
++++ b/tests/canvText.test 2020-12-26 19:02:44.545236036 +0100 |
129 |
+@@ -921,7 +921,7 @@ |
130 |
+ destroy .c |
131 |
+ } -result {{Yeah } Yeah- 4 4} |
132 |
+ |
133 |
+-test canvText-20.1 {angled text bounding box} -setup { |
134 |
++test canvText-20.1 {angled text bounding box} -constraints knownBug -setup { |
135 |
+ destroy .c |
136 |
+ canvas .c |
137 |
+ proc transpose {bbox} { |
138 |
+--- a/tests/focus.test 2020-12-26 19:03:59.769904923 +0100 |
139 |
++++ b/tests/focus.test 2020-12-26 19:11:21.583080155 +0100 |
140 |
+@@ -73,7 +73,7 @@ |
141 |
+ } |
142 |
+ |
143 |
+ |
144 |
+-test focus-1.1 {Tk_FocusCmd procedure} -constraints unix -body { |
145 |
++test focus-1.1 {Tk_FocusCmd procedure} -constraints knownBug -body { |
146 |
+ focusClear |
147 |
+ focus |
148 |
+ } -result {} |
149 |
+@@ -83,7 +83,7 @@ |
150 |
+ focus .alt.b |
151 |
+ focus |
152 |
+ } -result {} |
153 |
+-test focus-1.3 {Tk_FocusCmd procedure} -constraints unix -body { |
154 |
++test focus-1.3 {Tk_FocusCmd procedure} -constraints knownBug -body { |
155 |
+ focusClear |
156 |
+ focus .t.b3 |
157 |
+ focus |
158 |
+@@ -145,7 +145,7 @@ |
159 |
+ focus -displayof .lousy |
160 |
+ } -returnCodes error -result {bad window path name ".lousy"} |
161 |
+ test focus-1.12 {Tk_FocusCmd procedure, -displayof option} -constraints { |
162 |
+- unix |
163 |
++ knownBug |
164 |
+ } -body { |
165 |
+ focusClear |
166 |
+ focus .t |
167 |
+@@ -308,7 +308,7 @@ |
168 |
+ } .t.b1} |
169 |
+ |
170 |
+ test focus-2.6 {TkFocusFilterEvent procedure, FocusIn events} -constraints { |
171 |
+- unix testwrapper |
172 |
++ knownBug |
173 |
+ } -body { |
174 |
+ focus .t.b1 |
175 |
+ focus . |
176 |
+@@ -320,7 +320,7 @@ |
177 |
+ list $x $focusInfo |
178 |
+ } -result {.t.b1 {press .t.b1 x}} |
179 |
+ test focus-2.7 {TkFocusFilterEvent procedure, FocusOut events} -constraints { |
180 |
+- unix testwrapper |
181 |
++ knownBug |
182 |
+ } -body { |
183 |
+ set result {} |
184 |
+ foreach detail {NotifyAncestor NotifyInferior NotifyNonlinear |
185 |
+@@ -341,7 +341,7 @@ |
186 |
+ focus |
187 |
+ } -result {.t.b1} |
188 |
+ test focus-2.9 {TkFocusFilterEvent procedure, FocusOut events} -constraints { |
189 |
+- unix testwrapper |
190 |
++ knownBug |
191 |
+ } -body { |
192 |
+ focus .t.b1 |
193 |
+ event gen [testwrapper .] <FocusOut> -detail NotifyAncestor |
194 |
+@@ -348,7 +348,7 @@ |
195 |
+ focus |
196 |
+ } -result {} |
197 |
+ test focus-2.10 {TkFocusFilterEvent procedure, Enter events} -constraints { |
198 |
+- unix testwrapper |
199 |
++ knownBug |
200 |
+ } -body { |
201 |
+ set result {} |
202 |
+ focus .t.b1 |
203 |
+@@ -410,7 +410,7 @@ |
204 |
+ destroy .t2 |
205 |
+ } -result {} |
206 |
+ test focus-2.15 {TkFocusFilterEvent procedure, Leave events} -constraints { |
207 |
+- unix testwrapper |
208 |
++ knownBug |
209 |
+ } -body { |
210 |
+ set result {} |
211 |
+ focus .t.b1 |
212 |
+@@ -426,7 +426,7 @@ |
213 |
+ return $result |
214 |
+ } -result {{} .t.b1 {} {} {}} |
215 |
+ test focus-2.16 {TkFocusFilterEvent procedure, Leave events} -constraints { |
216 |
+- unix testwrapper |
217 |
++ knownBug |
218 |
+ } -body { |
219 |
+ focusClear |
220 |
+ focus .t.b1 |
221 |
+@@ -440,7 +440,7 @@ |
222 |
+ out .t NotifyVirtual |
223 |
+ } |
224 |
+ test focus-2.17 {TkFocusFilterEvent procedure, Leave events} -constraints { |
225 |
+- unix testwrapper |
226 |
++ knownBug |
227 |
+ } -body { |
228 |
+ focusClear |
229 |
+ focus .t.b1 |
230 |
+@@ -508,7 +508,7 @@ |
231 |
+ destroy .t2 |
232 |
+ } -result {} |
233 |
+ test focus-3.5 {SetFocus procedure, generating events} -constraints { |
234 |
+- unix testwrapper |
235 |
++ knownBug |
236 |
+ } -body { |
237 |
+ focusSetup |
238 |
+ focusClear |
239 |
+@@ -548,7 +548,7 @@ |
240 |
+ |
241 |
+ |
242 |
+ test focus-4.1 {TkFocusDeadWindow procedure} -constraints { |
243 |
+- unix testwrapper |
244 |
++ knownBug |
245 |
+ } -body { |
246 |
+ focusSetup |
247 |
+ update |
248 |
+@@ -599,7 +599,7 @@ |
249 |
+ |
250 |
+ # Test 5.1 fails (before and after update) |
251 |
+ test focus-5.1 {ChangeXFocus procedure, don't take focus unless have it} -constraints { |
252 |
+- unix testwrapper secureserver |
253 |
++ knownBug |
254 |
+ } -body { |
255 |
+ setupbg |
256 |
+ focusSetup |
257 |
+@@ -622,7 +622,7 @@ |
258 |
+ |
259 |
+ fixfocus |
260 |
+ test focus-6.1 {miscellaneous - embedded application in same process} -constraints { |
261 |
+- unix testwrapper |
262 |
++ knownBug |
263 |
+ } -setup { |
264 |
+ eval interp delete [interp slaves] |
265 |
+ } -body { |
266 |
+@@ -677,7 +677,7 @@ |
267 |
+ } -result {{.t.f2.e1 {} {focus out .t.f2.e1 NotifyNonlinear} {focus out .t.f2 NotifyNonlinearVirtual} {focus in .t.f1 NotifyNonlinear} | {focus out .t.f1 NotifyNonlinear} {focus in .t.f2 NotifyNonlinearVirtual} {focus in .t.f2.e1 NotifyNonlinear}} {{focus in . NotifyVirtual} {focus in .e1 NotifyAncestor} | {focus out .e1 NotifyAncestor} {focus out . NotifyVirtual}}} |
268 |
+ |
269 |
+ test focus-6.2 {miscellaneous - embedded application in different process} -constraints { |
270 |
+- unix testwrapper |
271 |
++ knownBug |
272 |
+ } -body { |
273 |
+ setupbg |
274 |
+ toplevel .t |
275 |
+--- a/tests/font.test 2020-12-26 19:15:55.199228774 +0100 |
276 |
++++ b/tests/font.test 2020-12-26 19:18:05.414951407 +0100 |
277 |
+@@ -134,7 +134,7 @@ |
278 |
+ # not (objc > 3) so objPtr = NULL |
279 |
+ lindex [font actual {-family times}] 0 |
280 |
+ } -result {-family} |
281 |
+-test font-4.9 {font command: actual} -constraints {unix noExceed} -body { |
282 |
++test font-4.9 {font command: actual} -constraints {knownBug} -body { |
283 |
+ # (objc > 3) so objPtr = objv[3 + skip] |
284 |
+ string tolower [font actual {-family times} -family] |
285 |
+ } -result {times} |
286 |
+@@ -399,7 +399,7 @@ |
287 |
+ # (tkfont == NULL) |
288 |
+ font measure "\{xyz" abc |
289 |
+ } -returnCodes error -result "font \"{xyz\" doesn't exist" |
290 |
+-test font-9.5 {font command: measure} -body { |
291 |
++test font-9.5 {font command: measure} -constraints knownBug -body { |
292 |
+ # Tk_TextWidth() |
293 |
+ expr {[font measure $fixed "abcdefg"] == [font measure $fixed "a"]*7 } |
294 |
+ } -result 1 |
295 |
+@@ -450,7 +450,7 @@ |
296 |
+ # (Tcl_GetIndexFromObj() != TCL_OK) |
297 |
+ font metrics $fixed -xyz |
298 |
+ } -returnCodes error -result {bad metric "-xyz": must be -ascent, -descent, -linespace, or -fixed} |
299 |
+-test font-10.9 {font command: metrics: get individual metrics} -body { |
300 |
++test font-10.9 {font command: metrics: get individual metrics} -constraints knownBug -body { |
301 |
+ font metrics $fixed -ascent |
302 |
+ font metrics $fixed -descent |
303 |
+ font metrics $fixed -linespace |
304 |
+@@ -921,7 +921,7 @@ |
305 |
+ } |
306 |
+ } -result {LucidaBright} |
307 |
+ test font-21.6 {Tk_PostscriptFontName procedure: spaces} -constraints { |
308 |
+- x11 |
309 |
++ knownBug |
310 |
+ } -body { |
311 |
+ psfontname "{new century schoolbook} 10" |
312 |
+ } -result {NewCenturySchlbk-Roman} |
313 |
+--- a/tests/main.test.old 2020-12-26 19:27:49.188791206 +0100 |
314 |
++++ b/tests/main.test 2020-12-26 19:28:40.782897366 +0100 |
315 |
+@@ -91,7 +91,7 @@ |
316 |
+ removeFile script |
317 |
+ } -returnCodes ok -result {-enc utf-8 script} |
318 |
+ |
319 |
+-test main-3.1 {Tk_ParseArgv: -help option} -constraints unix -body { |
320 |
++test main-3.1 {Tk_ParseArgv: -help option} -constraints knownBug -body { |
321 |
+ # Run only on unix as Win32 pops up native dialog |
322 |
+ exec [interpreter] -help |
323 |
+ } -returnCodes error -match glob -result {% application-specific initialization failed: Command-specific options:*} |
324 |
+--- a/tests/pack.test 2020-12-26 19:29:47.742736743 +0100 |
325 |
++++ b/tests/pack.test 2020-12-26 19:30:50.867642152 +0100 |
326 |
+@@ -1551,7 +1551,7 @@ |
327 |
+ |
328 |
+ |
329 |
+ test pack-18.1 {unmap slaves when master unmapped} -constraints { |
330 |
+- tempNotPc |
331 |
++ knownBug |
332 |
+ } -setup { |
333 |
+ eval destroy [winfo child .pack] |
334 |
+ } -body { |
335 |
+@@ -1575,7 +1575,7 @@ |
336 |
+ update |
337 |
+ lappend result [winfo ismapped .pack.a] |
338 |
+ } -result {1 0 200 75 0 1} |
339 |
+-test pack-18.2 {unmap slaves when master unmapped} -setup { |
340 |
++test pack-18.2 {unmap slaves when master unmapped} -constraints knownBug -setup { |
341 |
+ eval destroy [winfo child .pack] |
342 |
+ } -body { |
343 |
+ |
344 |
+--- a/tests/place.test 2020-12-26 20:20:26.508256229 +0100 |
345 |
++++ b/tests/place.test 2020-12-26 20:21:00.213678014 +0100 |
346 |
+@@ -259,7 +259,7 @@ |
347 |
+ } -result {30 60} |
348 |
+ |
349 |
+ |
350 |
+-test place-8.1 {MasterStructureProc, mapping and unmapping slaves} -setup { |
351 |
++test place-8.1 {MasterStructureProc, mapping and unmapping slaves} -constraints knownBug -setup { |
352 |
+ place forget .t.f2 |
353 |
+ place forget .t.f |
354 |
+ } -body { |
355 |
+@@ -276,7 +276,7 @@ |
356 |
+ update |
357 |
+ lappend result [winfo ismapped .t.f2] |
358 |
+ } -result {1 0 40 30 0 1} |
359 |
+-test place-8.2 {MasterStructureProc, mapping and unmapping slaves} -setup { |
360 |
++test place-8.2 {MasterStructureProc, mapping and unmapping slaves} -constraints knownBug -setup { |
361 |
+ place forget .t.f2 |
362 |
+ place forget .t.f |
363 |
+ } -body { |
364 |
+--- a/tests/scrollbar.test 2020-12-26 20:24:21.356505305 +0100 |
365 |
++++ b/tests/scrollbar.test 2020-12-26 20:26:32.214409209 +0100 |
366 |
+@@ -270,15 +270,9 @@ |
367 |
+ format {%.6g} [.s fraction 4 21] |
368 |
+ } [format %.6g [expr {(21.0 - ([winfo height .s] - [getTroughSize .s])/2.0) \ |
369 |
+ /([getTroughSize .s] - 1)}]] |
370 |
+-test scrollbar-3.36 {ScrollbarWidgetCmd procedure, "fraction" option} x11 { |
371 |
+- format {%.6g} [.s fraction 4 179] |
372 |
+-} {1} |
373 |
+ test scrollbar-3.37 {ScrollbarWidgetCmd procedure, "fraction" option} {testmetrics} { |
374 |
+ format {%.6g} [.s fraction 4 [expr {200 - [testmetrics cyvscroll .s]}]] |
375 |
+ } {1} |
376 |
+-test scrollbar-3.38 {ScrollbarWidgetCmd procedure, "fraction" option} x11 { |
377 |
+- format {%.6g} [.s fraction 4 178] |
378 |
+-} {0.993711} |
379 |
+ test scrollbar-3.39 {ScrollbarWidgetCmd procedure, "fraction" option} {testmetrics win} { |
380 |
+ expr { |
381 |
+ [format {%.6g} [.s fraction 4 [expr {200 - [testmetrics cyvscroll .s] - 2}]]] |
382 |
+@@ -491,9 +485,6 @@ |
383 |
+ # macOS scrollbars have no arrows nowadays |
384 |
+ .s identify 8 4 |
385 |
+ } {trough1} |
386 |
+-test scrollbar-6.12.1 {ScrollbarPosition procedure} x11 { |
387 |
+- .s identify 8 19 |
388 |
+-} {arrow1} |
389 |
+ test scrollbar-6.12.2 {ScrollbarPosition procedure} aqua { |
390 |
+ # macOS scrollbars have no arrows nowadays |
391 |
+ .s identify 8 19 |
392 |
+@@ -549,9 +540,6 @@ |
393 |
+ .s identify [expr {[winfo width .s] / 2}] [expr {[winfo height .s] |
394 |
+ - [testmetrics cyvscroll .s] - 1}] |
395 |
+ } {trough2} |
396 |
+-test scrollbar-6.29.1 {ScrollbarPosition procedure} x11 { |
397 |
+- .s identify 8 180 |
398 |
+-} {arrow2} |
399 |
+ test scrollbar-6.29.2 {ScrollbarPosition procedure} aqua { |
400 |
+ # macOS scrollbars have no arrows nowadays |
401 |
+ .s identify 8 180 |
402 |
+@@ -573,9 +561,6 @@ |
403 |
+ test scrollbar-6.34 {ScrollbarPosition procedure} unix { |
404 |
+ .s identify 4 100 |
405 |
+ } {trough2} |
406 |
+-test scrollbar-6.35 {ScrollbarPosition procedure} unix { |
407 |
+- .s identify 18 100 |
408 |
+-} {trough2} |
409 |
+ test scrollbar-6.37 {ScrollbarPosition procedure} win { |
410 |
+ .s identify 0 100 |
411 |
+ } {trough2} |
412 |
+@@ -612,9 +597,6 @@ |
413 |
+ .t.s identify [expr {int(.4 / [.t.s delta 1 0]) + [testmetrics cxhscroll .t.s] |
414 |
+ - 1}] [expr {[winfo height .t.s] / 2}] |
415 |
+ } {slider} |
416 |
+-test scrollbar-6.44 {ScrollbarPosition procedure} unix { |
417 |
+- .t.s identify 100 18 |
418 |
+-} {trough2} |
419 |
+ test scrollbar-6.46 {ScrollbarPosition procedure} win { |
420 |
+ .t.s identify 100 [expr {[winfo height .t.s] - 1}] |
421 |
+ } {trough2} |
422 |
+--- a/tests/send.test 2020-12-26 22:31:48.460395767 +0100 |
423 |
++++ b/tests/send.test 2020-12-26 22:32:55.577225240 +0100 |
424 |
+@@ -522,10 +522,6 @@ |
425 |
+ set x |
426 |
+ } {1 {target application died}} |
427 |
+ |
428 |
+-test send-11.1 {AppendPropCarefully and AppendErrorProc procedures} {secureserver testsend} { |
429 |
+- testsend prop root InterpRegistry "0x21447 dummy\n" |
430 |
+- list [catch {send dummy foo} msg] $msg |
431 |
+-} {1 {no application named "dummy"}} |
432 |
+ test send-11.2 {AppendPropCarefully and AppendErrorProc procedures} {secureserver testsend} { |
433 |
+ testsend prop comm Comm "c\n-r0x123 44\n-n tktest\n-s concat a b c\n" |
434 |
+ update |
435 |
+--- a/tests/text.test 2020-12-26 22:33:20.794786722 +0100 |
436 |
++++ b/tests/text.test 2020-12-26 22:35:03.560000413 +0100 |
437 |
+@@ -6682,7 +6682,7 @@ |
438 |
+ } -cleanup { |
439 |
+ destroy .t |
440 |
+ } -result {no_<<Selection>>_event_fired} |
441 |
+-test text-27.15d {<<Selection>> virtual event on <Delete> with cursor inside selection} -body { |
442 |
++test text-27.15d {<<Selection>> virtual event on <Delete> with cursor inside selection} -constraints knownBug -body { |
443 |
+ pack [text .t] |
444 |
+ .t insert end "There is a selection in this text widget,\n" |
445 |
+ .t insert end "and it will be impacted by the <Delete> event received.\n" |
446 |
+--- a/tests/unixEmbed.test 2020-12-26 22:51:50.192506259 +0100 |
447 |
++++ b/tests/unixEmbed.test 2020-12-26 22:52:21.590963386 +0100 |
448 |
+@@ -1086,7 +1086,7 @@ |
449 |
+ } -result {{} {{key b}}} |
450 |
+ |
451 |
+ test unixEmbed-8.1 {TkpClaimFocus procedure} -constraints { |
452 |
+- unix notAqua |
453 |
++ knownBug |
454 |
+ } -setup { |
455 |
+ deleteWindows |
456 |
+ } -body { |
457 |
+--- a/tests/textWind.test 2020-12-26 23:02:18.379690140 +0100 |
458 |
++++ b/tests/textWind.test 2020-12-26 23:02:51.948113638 +0100 |
459 |
+@@ -790,7 +790,7 @@ |
460 |
+ {{can't embed .t relative to .t}} \ |
461 |
+ [list [expr {$padx+5*$fixedWidth}] [expr {$pady+($fixedHeight/2)}] 0 0]] |
462 |
+ |
463 |
+-test textWind-10.7 {EmbWinLayoutProc procedure, error in creating window} -setup { |
464 |
++test textWind-10.7 {EmbWinLayoutProc procedure, error in creating window} -constraints knownBug -setup { |
465 |
+ .t delete 1.0 end |
466 |
+ destroy .t2 |
467 |
+ proc bgerror args { |
468 |
+--- a/tests/winWm.test 2020-12-26 23:03:20.701619782 +0100 |
469 |
++++ b/tests/winWm.test 2020-12-26 23:03:46.991168197 +0100 |
470 |
+@@ -532,7 +532,7 @@ |
471 |
+ destroy .tx .t .sd |
472 |
+ } -result {ok} |
473 |
+ |
474 |
+-test winWm-9.2 "check wm forget for unmapped parent (#3205464,#2967911)" -setup { |
475 |
++test winWm-9.2 "check wm forget for unmapped parent (#3205464,#2967911)" -constraints knownBug -setup { |
476 |
+ destroy .t |
477 |
+ toplevel .t |
478 |
+ set winwm92 {} |
479 |
+--- a/tests/winfo.test 2020-12-26 23:04:34.411353552 +0100 |
480 |
++++ b/tests/winfo.test 2020-12-26 23:05:25.199480886 +0100 |
481 |
+@@ -291,7 +291,7 @@ |
482 |
+ test winfo-9.3 {"winfo viewable" command} -body { |
483 |
+ winfo viewable . |
484 |
+ } -result {1} |
485 |
+-test winfo-9.4 {"winfo viewable" command} -body { |
486 |
++test winfo-9.4 {"winfo viewable" command} -constraints knownBug -body { |
487 |
+ wm iconify . |
488 |
+ winfo viewable . |
489 |
+ } -cleanup { |
490 |
+@@ -320,7 +320,7 @@ |
491 |
+ } -cleanup { |
492 |
+ deleteWindows |
493 |
+ } -result {0 0} |
494 |
+-test winfo-9.7 {"winfo viewable" command} -setup { |
495 |
++test winfo-9.7 {"winfo viewable" command} -constraints knownBug -setup { |
496 |
+ deleteWindows |
497 |
+ } -body { |
498 |
+ frame .f1 -width 100 -height 100 -relief raised -bd 2 |
499 |
+--- a/tests/wm.test 2020-12-26 23:06:24.946454094 +0100 |
500 |
++++ b/tests/wm.test 2020-12-26 23:09:41.055082358 +0100 |
501 |
+@@ -805,7 +805,7 @@ |
502 |
+ destroy .t2 .r.f |
503 |
+ } -result {can't iconify .t2: it is an embedded window} |
504 |
+ |
505 |
+-test wm-iconify-3.1 {iconify behavior} -body { |
506 |
++test wm-iconify-3.1 {iconify behavior} -constraints knownBug -body { |
507 |
+ toplevel .t2 |
508 |
+ wm geom .t2 -0+0 |
509 |
+ update |
510 |
+@@ -1413,7 +1413,7 @@ |
511 |
+ |
512 |
+ deleteWindows |
513 |
+ |
514 |
+-test wm-stackorder-3.1 {unmapped toplevel} -body { |
515 |
++test wm-stackorder-3.1 {unmapped toplevel} -constraints knownBug -body { |
516 |
+ toplevel .t1 ; update |
517 |
+ toplevel .t2 ; update |
518 |
+ wm iconify .t1 |
519 |
+@@ -1523,7 +1523,7 @@ |
520 |
+ destroy .t |
521 |
+ } -result {.t .} |
522 |
+ test wm-stackorder-5.2 {A normal toplevel can't be raised above an \ |
523 |
+- overrideredirect toplevel on unix} -constraints x11 -body { |
524 |
++ overrideredirect toplevel on unix} -constraints knownBug -body { |
525 |
+ toplevel .t |
526 |
+ tkwait visibility .t |
527 |
+ wm overrideredirect .t 1 |
528 |
+@@ -1722,7 +1722,7 @@ |
529 |
+ } -result {withdrawn 0 normal 1} |
530 |
+ |
531 |
+ test wm-transient-4.1 {transient toplevel is withdrawn |
532 |
+- when mapped if master is iconic} -body { |
533 |
++ when mapped if master is iconic} -constraints knownBug -body { |
534 |
+ toplevel .master |
535 |
+ wm iconify .master |
536 |
+ update |
537 |
+@@ -1734,7 +1734,7 @@ |
538 |
+ deleteWindows |
539 |
+ } -result {withdrawn 0} |
540 |
+ test wm-transient-4.2 {already mapped transient toplevel |
541 |
+- is withdrawn if master is iconic} -body { |
542 |
++ is withdrawn if master is iconic} -constraints knownBug -body { |
543 |
+ toplevel .master |
544 |
+ raiseDelay |
545 |
+ wm iconify .master |
546 |
+@@ -1748,7 +1748,7 @@ |
547 |
+ deleteWindows |
548 |
+ } -result {withdrawn 0} |
549 |
+ test wm-transient-4.3 {iconify/deiconify on the master |
550 |
+- does a withdraw/deiconify on the transient} -setup { |
551 |
++ does a withdraw/deiconify on the transient} -constraints knownBug -setup { |
552 |
+ set results [list] |
553 |
+ } -body { |
554 |
+ toplevel .master |
555 |
+@@ -1924,7 +1924,7 @@ |
556 |
+ deleteWindows |
557 |
+ } |
558 |
+ |
559 |
+-test wm-transient-8.1 {transient to withdrawn window, Bug 1163496} -setup { |
560 |
++test wm-transient-8.1 {transient to withdrawn window, Bug 1163496} -constraints knownBug -setup { |
561 |
+ deleteWindows |
562 |
+ set result {} |
563 |
+ } -body { |
564 |
+@@ -2001,7 +2001,7 @@ |
565 |
+ } -cleanup { |
566 |
+ deleteWindows |
567 |
+ } -result {iconic} |
568 |
+-test wm-state-2.8 {state change after map} -body { |
569 |
++test wm-state-2.8 {state change after map} -constraints knownBug -body { |
570 |
+ toplevel .t |
571 |
+ update |
572 |
+ wm state .t iconic |
573 |
+@@ -2009,7 +2009,7 @@ |
574 |
+ } -cleanup { |
575 |
+ deleteWindows |
576 |
+ } -result {iconic} |
577 |
+-test wm-state-2.9 {state change after map} -body { |
578 |
++test wm-state-2.9 {state change after map} -constraints knownBug -body { |
579 |
+ toplevel .t |
580 |
+ update |
581 |
+ wm iconify .t |
582 |
|
583 |
diff --git a/dev-lang/tk/tk-8.6.10.ebuild b/dev-lang/tk/tk-8.6.10.ebuild |
584 |
new file mode 100644 |
585 |
index 00000000000..ba3a658ca1b |
586 |
--- /dev/null |
587 |
+++ b/dev-lang/tk/tk-8.6.10.ebuild |
588 |
@@ -0,0 +1,153 @@ |
589 |
+# Copyright 1999-2020 Gentoo Authors |
590 |
+# Distributed under the terms of the GNU General Public License v2 |
591 |
+ |
592 |
+EAPI=7 |
593 |
+ |
594 |
+inherit autotools multilib-minimal prefix toolchain-funcs virtualx |
595 |
+ |
596 |
+MY_P="${PN}${PV/_beta/b}" |
597 |
+ |
598 |
+DESCRIPTION="Tk Widget Set" |
599 |
+HOMEPAGE="http://www.tcl.tk/" |
600 |
+SRC_URI="mirror://sourceforge/tcl/${MY_P}-src.tar.gz" |
601 |
+ |
602 |
+LICENSE="tcltk" |
603 |
+SLOT="0/8.6" |
604 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
605 |
+IUSE="debug +threads truetype aqua xscreensaver" |
606 |
+RESTRICT="!test? ( test )" |
607 |
+ |
608 |
+RDEPEND=" |
609 |
+ !aqua? ( |
610 |
+ >=media-libs/fontconfig-2.10.92[${MULTILIB_USEDEP}] |
611 |
+ >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] |
612 |
+ >=x11-libs/libXt-1.1.4[${MULTILIB_USEDEP}] |
613 |
+ truetype? ( >=x11-libs/libXft-2.3.1-r1[${MULTILIB_USEDEP}] ) |
614 |
+ xscreensaver? ( >=x11-libs/libXScrnSaver-1.2.2-r1[${MULTILIB_USEDEP}] ) |
615 |
+ ) |
616 |
+ ~dev-lang/tcl-$(ver_cut 1-3):0=[${MULTILIB_USEDEP}]" |
617 |
+DEPEND="${RDEPEND} |
618 |
+ !aqua? ( x11-base/xorg-proto )" |
619 |
+ |
620 |
+# Not bumped to 8.6 |
621 |
+#RESTRICT=test |
622 |
+ |
623 |
+SPARENT="${WORKDIR}/${PN}$(ver_cut 1-3 ${PV})" |
624 |
+S="${SPARENT}"/unix |
625 |
+ |
626 |
+PATCHES=( |
627 |
+ "${FILESDIR}"/${P}-multilib.patch |
628 |
+ "${FILESDIR}"/${PN}-8.4.15-aqua.patch |
629 |
+ "${FILESDIR}"/${PN}-8.6.9-conf.patch # Bug 125971 |
630 |
+ "${FILESDIR}"/${P}-test.patch |
631 |
+) |
632 |
+ |
633 |
+src_prepare() { |
634 |
+ find \ |
635 |
+ "${SPARENT}"/compat/* \ |
636 |
+ -delete || die |
637 |
+ |
638 |
+ pushd "${SPARENT}" &>/dev/null || die |
639 |
+ default |
640 |
+ |
641 |
+ # failing test too big to be adapted |
642 |
+ rm tests/textDisp.test \ |
643 |
+ tests/unixFont.test \ |
644 |
+ tests/unixWm.test \ |
645 |
+ || die |
646 |
+ |
647 |
+ popd &>/dev/null || die |
648 |
+ eprefixify Makefile.in |
649 |
+ |
650 |
+ # Make sure we use the right pkg-config, and link against fontconfig |
651 |
+ # (since the code base uses Fc* functions). |
652 |
+ sed \ |
653 |
+ -e 's/FT_New_Face/XftFontOpen/g' \ |
654 |
+ -e "s:\<pkg-config\>:$(tc-getPKG_CONFIG):" \ |
655 |
+ -e 's:xft freetype2:xft freetype2 fontconfig:' \ |
656 |
+ -i configure.in || die |
657 |
+ rm configure || die |
658 |
+ |
659 |
+ tc-export CC |
660 |
+ |
661 |
+ sed \ |
662 |
+ -e '/chmod/s:555:755:g' \ |
663 |
+ -i Makefile.in || die |
664 |
+ |
665 |
+ sed \ |
666 |
+ -e 's:-O[2s]\?::g' \ |
667 |
+ -i tcl.m4 || die |
668 |
+ |
669 |
+ mv configure.{in,ac} || die |
670 |
+ |
671 |
+ eautoconf |
672 |
+ |
673 |
+ multilib_copy_sources |
674 |
+} |
675 |
+ |
676 |
+multilib_src_configure() { |
677 |
+ if tc-is-cross-compiler ; then |
678 |
+ export ac_cv_func_strtod=yes |
679 |
+ export tcl_cv_strtod_buggy=1 |
680 |
+ fi |
681 |
+ |
682 |
+ local mylibdir=$(get_libdir) |
683 |
+ |
684 |
+ econf \ |
685 |
+ --with-tcl="${EPREFIX}/usr/${mylibdir}" \ |
686 |
+ $(use_enable threads) \ |
687 |
+ $(use_enable aqua) \ |
688 |
+ $(use_enable truetype xft) \ |
689 |
+ $(use_enable xscreensaver xss) \ |
690 |
+ $(use_enable debug symbols) |
691 |
+} |
692 |
+ |
693 |
+multilib_src_test() { |
694 |
+ virtx emake test |
695 |
+} |
696 |
+ |
697 |
+multilib_src_install() { |
698 |
+ #short version number |
699 |
+ local v1=$(ver_cut 1-2) |
700 |
+ local mylibdir=$(get_libdir) |
701 |
+ |
702 |
+ S= default |
703 |
+ |
704 |
+ # normalize $S path, bug #280766 (pkgcore) |
705 |
+ local nS="$(cd "${S}"; pwd)" |
706 |
+ |
707 |
+ # fix the tkConfig.sh to eliminate refs to the build directory |
708 |
+ # and drop unnecessary -L inclusion to default system libdir |
709 |
+ |
710 |
+ sed \ |
711 |
+ -e "/^TK_BUILD_LIB_SPEC=/s:-L${S}-\w*\.\w* ::g" \ |
712 |
+ -e "/^TK_LIB_SPEC=/s:-L${EPREFIX}/usr/${mylibdir} *::g" \ |
713 |
+ -e "/^TK_SRC_DIR=/s:${SPARENT}:${EPREFIX}/usr/${mylibdir}/tk${v1}/include:g" \ |
714 |
+ -e "/^TK_BUILD_STUB_LIB_SPEC=/s:-L${S}-\w*\.\w* *::g" \ |
715 |
+ -e "/^TK_STUB_LIB_SPEC=/s:-L${EPREFIX}/usr/${mylibdir} *::g" \ |
716 |
+ -e "/^TK_BUILD_STUB_LIB_PATH=/s:${S}-\w*\.\w*:${EPREFIX}/usr/${mylibdir}:g" \ |
717 |
+ -e "/^TK_LIB_FILE=/s:'libtk${v1}..TK_DBGX..so':\"libk${v1}\$\{TK_DBGX\}.so\":g" \ |
718 |
+ -i "${ED}"/usr/${mylibdir}/tkConfig.sh || die |
719 |
+ if use prefix && [[ ${CHOST} != *-darwin* && ${CHOST} != *-mint* ]] ; then |
720 |
+ sed \ |
721 |
+ -e "/^TK_CC_SEARCH_FLAGS=/s|'$|:${EPREFIX}/usr/${mylibdir}'|g" \ |
722 |
+ -e "/^TK_LD_SEARCH_FLAGS=/s|'$|:${EPREFIX}/usr/${mylibdir}'|" \ |
723 |
+ -i "${ED}"/usr/${mylibdir}/tkConfig.sh || die |
724 |
+ fi |
725 |
+ |
726 |
+ # install private headers |
727 |
+ insinto /usr/${mylibdir}/tk${v1}/include/unix |
728 |
+ doins "${S}"/*.h |
729 |
+ insinto /usr/${mylibdir}/tk${v1}/include/generic |
730 |
+ doins "${SPARENT}"/generic/*.h |
731 |
+ rm -f "${ED}"/usr/${mylibdir}/tk${v1}/include/generic/{tk,tkDecls,tkPlatDecls}.h || die |
732 |
+ |
733 |
+ # install symlink for libraries |
734 |
+ dosym libtk${v1}$(get_libname) /usr/${mylibdir}/libtk$(get_libname) |
735 |
+ dosym libtkstub${v1}.a /usr/${mylibdir}/libtkstub.a |
736 |
+ |
737 |
+ if multilib_is_native_abi; then |
738 |
+ dosym wish${v1} /usr/bin/wish |
739 |
+ dodoc "${SPARENT}"/{ChangeLog*,README.md,changes} |
740 |
+ fi |
741 |
+} |