Gentoo Archives: gentoo-commits

From: "Anthony G. Basile (blueness)" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-lang/tk/files: tk-8.5.11-fix-name-collision-uclibc.patch
Date: Sun, 04 Nov 2012 18:35:50
Message-Id: 20121104183532.EC4F4215F3@flycatcher.gentoo.org
1 blueness 12/11/04 18:35:32
2
3 Added: tk-8.5.11-fix-name-collision-uclibc.patch
4 Log:
5 Patch 8.5.11 to build on uclibc, bug #441630
6
7 (Portage version: 2.1.11.31/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)
8
9 Revision Changes Path
10 1.1 dev-lang/tk/files/tk-8.5.11-fix-name-collision-uclibc.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/tk/files/tk-8.5.11-fix-name-collision-uclibc.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/tk/files/tk-8.5.11-fix-name-collision-uclibc.patch?rev=1.1&content-type=text/plain
14
15 Index: tk-8.5.11-fix-name-collision-uclibc.patch
16 ===================================================================
17 diff -Naur tk8.5.11.orig/generic/ttk/ttkTreeview.c tk8.5.11/generic/ttk/ttkTreeview.c
18 --- tk8.5.11.orig/generic/ttk/ttkTreeview.c 2011-11-01 10:05:27.000000000 -0400
19 +++ tk8.5.11/generic/ttk/ttkTreeview.c 2012-11-04 13:23:41.000000000 -0500
20 @@ -485,11 +485,11 @@
21 }
22 }
23
24 -/* + unshare(objPtr) --
25 +/* + unshareObj(objPtr) --
26 * Ensure that a Tcl_Obj * has refcount 1 -- either return objPtr
27 * itself, or a duplicated copy.
28 */
29 -static Tcl_Obj *unshare(Tcl_Obj *objPtr)
30 +static Tcl_Obj *unshareObj(Tcl_Obj *objPtr)
31 {
32 if (Tcl_IsShared(objPtr)) {
33 Tcl_Obj *newObj = Tcl_DuplicateObj(objPtr);
34 @@ -2525,7 +2525,7 @@
35 } else { /* set column */
36 int length;
37
38 - item->valuesObj = unshare(item->valuesObj);
39 + item->valuesObj = unshareObj(item->valuesObj);
40
41 /* Make sure -values is fully populated:
42 */
43 @@ -2826,7 +2826,7 @@
44 */
45 for (parent = item->parent; parent; parent = parent->parent) {
46 if (!(parent->state & TTK_STATE_OPEN)) {
47 - parent->openObj = unshare(parent->openObj);
48 + parent->openObj = unshareObj(parent->openObj);
49 Tcl_SetBooleanObj(parent->openObj, 1);
50 parent->state |= TTK_STATE_OPEN;
51 TtkRedisplayWidget(&tv->core);