Gentoo Archives: gentoo-commits

From: "Gilles Dartiguelongue (eva)" <eva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in gnome-base/gnome-vfs/files: gnome-vfs-2.24.4-home_dir_fakeroot.patch gnome-vfs-2.24.4-build-tests-asneeded.patch gnome-vfs-2.24.0-uuid-mount.patch gnome-vfs-2.24.4-disable-test-async-cancel.patch
Date: Sat, 02 Oct 2010 11:55:12
Message-Id: 20101002115503.8A71620051@flycatcher.gentoo.org
1 eva 10/10/02 11:55:03
2
3 Modified: gnome-vfs-2.24.0-uuid-mount.patch
4 Added: gnome-vfs-2.24.4-home_dir_fakeroot.patch
5 gnome-vfs-2.24.4-build-tests-asneeded.patch
6 gnome-vfs-2.24.4-disable-test-async-cancel.patch
7 Log:
8 Version bump. Do not build tests if not needed, bug #226221. Disable broken test, bug #285706. Do not install *.la files for gnome-vfs modules.
9
10 (Portage version: 2.2_rc88/cvs/Linux x86_64)
11
12 Revision Changes Path
13 1.2 gnome-base/gnome-vfs/files/gnome-vfs-2.24.0-uuid-mount.patch
14
15 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gnome-vfs/files/gnome-vfs-2.24.0-uuid-mount.patch?rev=1.2&view=markup
16 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gnome-vfs/files/gnome-vfs-2.24.0-uuid-mount.patch?rev=1.2&content-type=text/plain
17 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gnome-vfs/files/gnome-vfs-2.24.0-uuid-mount.patch?r1=1.1&r2=1.2
18
19 Index: gnome-vfs-2.24.0-uuid-mount.patch
20 ===================================================================
21 RCS file: /var/cvsroot/gentoo-x86/gnome-base/gnome-vfs/files/gnome-vfs-2.24.0-uuid-mount.patch,v
22 retrieving revision 1.1
23 retrieving revision 1.2
24 diff -u -r1.1 -r1.2
25 --- gnome-vfs-2.24.0-uuid-mount.patch 8 Mar 2009 21:52:08 -0000 1.1
26 +++ gnome-vfs-2.24.0-uuid-mount.patch 2 Oct 2010 11:55:03 -0000 1.2
27 @@ -1,11 +1,28 @@
28 -# Prevent gnome-vfs to show duplicate volumes due to LABEL and UUID in /etc/fstab
29 -#
30 -# Upstream: http://bugzilla.gnome.org/show_bug.cgi?id=357156
31 -# Gentoo: https://bugs.gentoo.org/attachment.cgi?id=131308
32 -# Similar to http://patches.ubuntu.com/by-release/extracted/ubuntu/g/gnome-vfs/1:2.24.0-1ubuntu2/15_uuid_mount.patch
33 ---- a/libgnomevfs/gnome-vfs-unix-mounts.c 2007-04-10 15:03:59.000000000 +0300
34 -+++ b/libgnomevfs/gnome-vfs-unix-mounts.c 2007-09-18 17:48:49.000000000 +0300
35 -@@ -290,6 +290,15 @@ _gnome_vfs_get_current_unix_mounts (GLis
36 +From 8427c2daf543353f42b932b5137b6ec590f6589b Mon Sep 17 00:00:00 2001
37 +From: Gilles Dartiguelongue <eva@g.o>
38 +Date: Sat, 2 Oct 2010 00:42:31 +0200
39 +Subject: [PATCH 7/9] Prevent duplicated volumes, bug #193083
40 +
41 +---
42 + libgnomevfs/gnome-vfs-unix-mounts.c | 39 +++++++++++++++++++++++++++++++++-
43 + 1 files changed, 37 insertions(+), 2 deletions(-)
44 +
45 +diff --git a/libgnomevfs/gnome-vfs-unix-mounts.c b/libgnomevfs/gnome-vfs-unix-mounts.c
46 +index 51a009b..3eee305 100644
47 +--- a/libgnomevfs/gnome-vfs-unix-mounts.c
48 ++++ b/libgnomevfs/gnome-vfs-unix-mounts.c
49 +@@ -40,6 +40,10 @@
50 + #ifdef HAVE_POLL_H
51 + #include <poll.h>
52 + #endif
53 ++
54 ++#include <limits.h>
55 ++#include <stdlib.h>
56 ++
57 + #include <stdio.h>
58 + #include <unistd.h>
59 + #include <sys/time.h>
60 +@@ -290,6 +294,15 @@ _gnome_vfs_get_current_unix_mounts (GList **return_list)
61
62 mount_entry->mount_path = g_strdup (mntent->mnt_dir);
63 mount_entry->device_path = g_strdup (mntent->mnt_fsname);
64 @@ -21,7 +38,7 @@
65 mount_entry->filesystem_type = g_strdup (mntent->mnt_type);
66
67 g_hash_table_insert (mounts_hash,
68 -@@ -571,9 +580,31 @@ _gnome_vfs_get_unix_mount_table (GList *
69 +@@ -571,9 +584,31 @@ _gnome_vfs_get_unix_mount_table (GList **return_list)
70 }
71
72 mount_entry = g_new0 (GnomeVFSUnixMountPoint, 1);
73 @@ -55,3 +72,6 @@
74 mount_entry->filesystem_type = g_strdup (mntent->mnt_type);
75
76 #ifdef HAVE_HASMNTOPT
77 +--
78 +1.7.3
79 +
80
81
82
83 1.1 gnome-base/gnome-vfs/files/gnome-vfs-2.24.4-home_dir_fakeroot.patch
84
85 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gnome-vfs/files/gnome-vfs-2.24.4-home_dir_fakeroot.patch?rev=1.1&view=markup
86 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gnome-vfs/files/gnome-vfs-2.24.4-home_dir_fakeroot.patch?rev=1.1&content-type=text/plain
87
88 Index: gnome-vfs-2.24.4-home_dir_fakeroot.patch
89 ===================================================================
90 From 01dba45f0d15b7e23f21d19776d64f69879cd27a Mon Sep 17 00:00:00 2001
91 From: Gilles Dartiguelongue <eva@g.o>
92 Date: Sat, 2 Oct 2010 00:41:01 +0200
93 Subject: [PATCH 5/9] Fix to identify ${HOME} (#200897)
94
95 Thanks to debian folks.
96 ---
97 libgnomevfs/gnome-vfs-application-registry.c | 2 +-
98 libgnomevfs/gnome-vfs-init.c | 3 +-
99 libgnomevfs/gnome-vfs-private-utils.c | 52 ++++++++++++++++++++++++++
100 libgnomevfs/gnome-vfs-private-utils.h | 2 +
101 modules/file-method.c | 6 +-
102 5 files changed, 60 insertions(+), 5 deletions(-)
103
104 diff --git a/libgnomevfs/gnome-vfs-application-registry.c b/libgnomevfs/gnome-vfs-application-registry.c
105 index 0b11cc5..051ea44 100644
106 --- a/libgnomevfs/gnome-vfs-application-registry.c
107 +++ b/libgnomevfs/gnome-vfs-application-registry.c
108 @@ -965,7 +965,7 @@ gnome_vfs_application_registry_init (void)
109 NULL);
110 gnome_registry_dir.system_dir = TRUE;
111
112 - user_registry_dir.dirname = g_build_filename (g_get_home_dir(),
113 + user_registry_dir.dirname = g_build_filename (gnome_vfs_get_home_dir(),
114 ".gnome",
115 "application-info",
116 NULL);
117 diff --git a/libgnomevfs/gnome-vfs-init.c b/libgnomevfs/gnome-vfs-init.c
118 index e3fd5d9..c07cf06 100644
119 --- a/libgnomevfs/gnome-vfs-init.c
120 +++ b/libgnomevfs/gnome-vfs-init.c
121 @@ -118,7 +118,8 @@ gnome_vfs_init (void)
122 char *bogus_argv[2] = { "dummy", NULL };
123 */
124
125 - if (!ensure_dot_gnome_exists ()) {
126 + /* The first call also checks that ~/.gnome2 is writable. */
127 + if (!gnome_vfs_get_home_dir ()) {
128 return FALSE;
129 }
130
131 diff --git a/libgnomevfs/gnome-vfs-private-utils.c b/libgnomevfs/gnome-vfs-private-utils.c
132 index 7fafde3..7ad8fbc 100644
133 --- a/libgnomevfs/gnome-vfs-private-utils.c
134 +++ b/libgnomevfs/gnome-vfs-private-utils.c
135 @@ -34,6 +34,7 @@
136 #include "gnome-vfs-uri.h"
137 #include <errno.h>
138 #include <glib.h>
139 +#include <glib/gstdio.h>
140 #include <gconf/gconf-client.h>
141 #include <stdlib.h>
142 #include <string.h>
143 @@ -1085,3 +1086,54 @@ _gnome_vfs_winsock_strerror (int error)
144 }
145 #endif
146
147 +static gboolean
148 +ensure_dot_gnome_exists (gchar *home_dir)
149 +{
150 + gboolean retval = TRUE;
151 + gchar *dirname;
152 +
153 + dirname = g_build_filename (home_dir, ".gnome2", NULL);
154 +
155 + if (!g_file_test (dirname, G_FILE_TEST_EXISTS)) {
156 + if (g_mkdir (dirname, S_IRWXU) != 0) {
157 + g_warning ("Unable to create ~/.gnome2 directory: %s",
158 + g_strerror (errno));
159 + retval = FALSE;
160 + }
161 + } else if (!g_file_test (dirname, G_FILE_TEST_IS_DIR)) {
162 + g_warning ("Error: ~/.gnome2 must be a directory.");
163 + retval = FALSE;
164 + }
165 +
166 + g_free (dirname);
167 + return retval;
168 +}
169 +
170 +/**
171 + * gnome_vfs_get_home_dir:
172 + *
173 + * If ~/.gnome2 is writable, return the home directory
174 + * Otherwise, return the contents of the HOME environment variable
175 + *
176 + * Return value: home directory if successful, NULL otherwise.
177 + * Do not free the value returned.
178 + */
179 +const gchar *
180 +gnome_vfs_get_home_dir (void)
181 +{
182 + static gchar *home = NULL;
183 +
184 + if (home == NULL) {
185 + gchar *tmp = g_get_home_dir ();
186 + if (ensure_dot_gnome_exists (tmp)) {
187 + home = g_strdup (tmp);
188 + } else {
189 + gchar *tmp2 = g_getenv ("HOME");
190 + if (!g_str_equal (tmp, tmp2) && ensure_dot_gnome_exists (tmp2)) {
191 + home = g_strdup (tmp2);
192 + }
193 + }
194 + }
195 +
196 + return home;
197 +}
198 diff --git a/libgnomevfs/gnome-vfs-private-utils.h b/libgnomevfs/gnome-vfs-private-utils.h
199 index 981c6d9..fe282a2 100644
200 --- a/libgnomevfs/gnome-vfs-private-utils.h
201 +++ b/libgnomevfs/gnome-vfs-private-utils.h
202 @@ -124,6 +124,8 @@ const char *_gnome_vfs_winsock_strerror (int error);
203
204 #endif
205
206 +const gchar *gnome_vfs_get_home_dir (void);
207 +
208 G_END_DECLS
209
210 #endif /* _GNOME_VFS_PRIVATE_UTILS_H */
211 diff --git a/modules/file-method.c b/modules/file-method.c
212 index 37e4853..7265e58 100644
213 --- a/modules/file-method.c
214 +++ b/modules/file-method.c
215 @@ -1531,7 +1531,7 @@ save_trash_entry_cache (void)
216 GList *p;
217 char *buffer, *escaped_path, *escaped_mount_point;
218
219 - cache_file_parent = append_to_path (g_get_home_dir (), TRASH_ENTRY_CACHE_PARENT);
220 + cache_file_parent = append_to_path (gnome_vfs_get_home_dir (), TRASH_ENTRY_CACHE_PARENT);
221 cache_file_path = append_to_path (cache_file_parent, TRASH_ENTRY_CACHE_NAME);
222
223 if (mkdir_recursive (cache_file_parent, 0777) != 0) {
224 @@ -1670,7 +1670,7 @@ read_saved_cached_trash_entries (void)
225 cached_trash_directories = NULL;
226
227 /* read in the entries from disk */
228 - cache_file_path = g_build_filename (g_get_home_dir (),
229 + cache_file_path = g_build_filename (gnome_vfs_get_home_dir (),
230 TRASH_ENTRY_CACHE_PARENT,
231 TRASH_ENTRY_CACHE_NAME,
232 NULL);
233 @@ -1942,7 +1942,7 @@ do_find_directory (GnomeVFSMethod *method,
234 return GNOME_VFS_ERROR_INVALID_URI;
235
236 /* We will need the URI and the stat structure for the home directory. */
237 - home_directory = g_get_home_dir ();
238 + home_directory = gnome_vfs_get_home_dir ();
239
240 if (gnome_vfs_context_check_cancellation (context)) {
241 g_free (full_name_near);
242 --
243 1.7.3
244
245
246
247
248 1.1 gnome-base/gnome-vfs/files/gnome-vfs-2.24.4-build-tests-asneeded.patch
249
250 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gnome-vfs/files/gnome-vfs-2.24.4-build-tests-asneeded.patch?rev=1.1&view=markup
251 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gnome-vfs/files/gnome-vfs-2.24.4-build-tests-asneeded.patch?rev=1.1&content-type=text/plain
252
253 Index: gnome-vfs-2.24.4-build-tests-asneeded.patch
254 ===================================================================
255 From b7dabab33e00bdbd8b566ca058a1bce7dec2b77d Mon Sep 17 00:00:00 2001
256 From: Gilles Dartiguelongue <eva@g.o>
257 Date: Sat, 2 Oct 2010 01:45:21 +0200
258 Subject: [PATCH 8/9] Do not build tests unless required
259
260 ---
261 test/Makefile.am | 2 +-
262 1 files changed, 1 insertions(+), 1 deletions(-)
263
264 diff --git a/test/Makefile.am b/test/Makefile.am
265 index 5b0992e..a1aefa0 100644
266 --- a/test/Makefile.am
267 +++ b/test/Makefile.am
268 @@ -14,7 +14,7 @@ else
269 platform_only_programs = test-dns-sd test-symlinks test-parse-ls-lga
270 endif
271
272 -noinst_PROGRAMS = \
273 +check_PROGRAMS = \
274 test-acl \
275 test-address \
276 test-async \
277 --
278 1.7.3
279
280
281
282
283 1.1 gnome-base/gnome-vfs/files/gnome-vfs-2.24.4-disable-test-async-cancel.patch
284
285 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gnome-vfs/files/gnome-vfs-2.24.4-disable-test-async-cancel.patch?rev=1.1&view=markup
286 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gnome-vfs/files/gnome-vfs-2.24.4-disable-test-async-cancel.patch?rev=1.1&content-type=text/plain
287
288 Index: gnome-vfs-2.24.4-disable-test-async-cancel.patch
289 ===================================================================
290 From 390c1f6c06917f54cfacd5f85834d02c231cc2ea Mon Sep 17 00:00:00 2001
291 From: Gilles Dartiguelongue <eva@g.o>
292 Date: Sat, 2 Oct 2010 01:46:31 +0200
293 Subject: [PATCH 9/9] Disable broken test, bug #285706, upstream #618089
294
295 ---
296 test/Makefile.am | 1 -
297 1 files changed, 0 insertions(+), 1 deletions(-)
298
299 diff --git a/test/Makefile.am b/test/Makefile.am
300 index a1aefa0..c18f2e4 100644
301 --- a/test/Makefile.am
302 +++ b/test/Makefile.am
303 @@ -62,7 +62,6 @@ TESTS_ENVIRONMENT = GNOME_VFS_MODULE_PATH=$(top_builddir)/modules/.libs \
304 SRCDIR=$(srcdir)
305 TESTS = test-acl \
306 test-address \
307 - test-async-cancel \
308 test-escape \
309 test-uri \
310 $(srcdir)/auto-test
311 --
312 1.7.3