1 |
leio 08/09/25 09:40:07 |
2 |
|
3 |
Added: glib-2.18.1-gdesktopappinfo-memleak-fix.patch |
4 |
glib-2.18.1-workaround-gio-test-failure-without-userpriv.patch |
5 |
Log: |
6 |
Major version bump. Supports latest version of shared-mime spec, emblems on icons, subparsers in GMarkup, and more |
7 |
(Portage version: 2.2_rc9/cvs/Linux 2.6.26-gentoo-r1 x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 dev-libs/glib/files/glib-2.18.1-gdesktopappinfo-memleak-fix.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/glib/files/glib-2.18.1-gdesktopappinfo-memleak-fix.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/glib/files/glib-2.18.1-gdesktopappinfo-memleak-fix.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: glib-2.18.1-gdesktopappinfo-memleak-fix.patch |
16 |
=================================================================== |
17 |
2008-09-20 Matthias Clasen |
18 |
|
19 |
* gdesktopappinfo.c (expand_macro_single): Plug a memory leak |
20 |
|
21 |
--- branches/glib-2-18/gio/gdesktopappinfo.c 2008/09/21 00:00:18 7520 |
22 |
+++ branches/glib-2-18/gio/gdesktopappinfo.c 2008/09/21 00:04:37 7521 |
23 |
@@ -480,7 +480,7 @@ |
24 |
{ |
25 |
GFile *file; |
26 |
char *result = NULL; |
27 |
- char *path; |
28 |
+ char *path, *name; |
29 |
|
30 |
file = g_file_new_for_uri (uri); |
31 |
path = g_file_get_path (file); |
32 |
@@ -500,12 +500,20 @@ |
33 |
case 'd': |
34 |
case 'D': |
35 |
if (path) |
36 |
- result = g_shell_quote (g_path_get_dirname (path)); |
37 |
+ { |
38 |
+ name = g_path_get_dirname (path); |
39 |
+ result = g_shell_quote (name); |
40 |
+ g_free (name); |
41 |
+ } |
42 |
break; |
43 |
case 'n': |
44 |
case 'N': |
45 |
if (path) |
46 |
- result = g_shell_quote (g_path_get_basename (path)); |
47 |
+ { |
48 |
+ name = g_path_get_basename (path); |
49 |
+ result = g_shell_quote (name); |
50 |
+ g_free (name); |
51 |
+ } |
52 |
break; |
53 |
} |
54 |
|
55 |
|
56 |
|
57 |
|
58 |
1.1 dev-libs/glib/files/glib-2.18.1-workaround-gio-test-failure-without-userpriv.patch |
59 |
|
60 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/glib/files/glib-2.18.1-workaround-gio-test-failure-without-userpriv.patch?rev=1.1&view=markup |
61 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/glib/files/glib-2.18.1-workaround-gio-test-failure-without-userpriv.patch?rev=1.1&content-type=text/plain |
62 |
|
63 |
Index: glib-2.18.1-workaround-gio-test-failure-without-userpriv.patch |
64 |
=================================================================== |
65 |
Temporary workaround for gio tests failure when ran without FEATURES=userpriv |
66 |
until upstream bug #552912 is fixed |
67 |
|
68 |
--- gio/tests/live-g-file.c.orig 2008-09-25 05:44:12.848556034 +0300 |
69 |
+++ gio/tests/live-g-file.c 2008-09-25 06:12:34.248726237 +0300 |
70 |
@@ -769,11 +769,14 @@ |
71 |
if (posix_compat) |
72 |
{ |
73 |
/* target directory is not accessible (no execute flag) */ |
74 |
+#if 0 |
75 |
+/* Fails when ran as root */ |
76 |
do_copy_move (root, item, TEST_DIR_NO_ACCESS, |
77 |
TEST_NO_ACCESS); |
78 |
/* target directory is readonly */ |
79 |
do_copy_move (root, item, TEST_DIR_NO_WRITE, |
80 |
TEST_NO_ACCESS); |
81 |
+#endif |
82 |
} |
83 |
} |
84 |
} |