r12441 - in /desktop/experimental/gnome-vfs2/debian: changelog control patches/24_gnome_vfs_home_dir.patch
slomo at users.alioth.debian.org
slomo at users.alioth.debian.org
Sun Sep 9 06:56:10 UTC 2007
Author: slomo
Date: Sun Sep 9 06:56:10 2007
New Revision: 12441
URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=12441
Log:
* New upstream release - no ABI and API changes.
* Merge 1:2.18.3-4:
+ debian/patches/24_gnome_vfs_home_dir.patch:
- Add a new environment variable GNOME_VFS_HOME to specify the home
directory that GnomeVFS should use. Currently it only uses the value
from g_get_home_dir() which can be changed easily.
Setting this environment variable to a writable directory is necessary
to use GnomeVFS in the buildd chroots.
* Build-dep on linux-libc-dev instead of linux-kernel-headers; keep the
version intact (Closes: #439097).
* debian/patches/24_gnome_vfs_home_dir.patch:
+ Add a new environment variable GNOME_VFS_HOME to specify the home
directory that GnomeVFS should use. Currently it only uses the value
from g_get_home_dir() which can be changed easily.
Setting this environment variable to a writable directory is necessary
to use GnomeVFS in the buildd chroots.
Added:
desktop/experimental/gnome-vfs2/debian/patches/24_gnome_vfs_home_dir.patch
Modified:
desktop/experimental/gnome-vfs2/debian/changelog
desktop/experimental/gnome-vfs2/debian/control
Modified: desktop/experimental/gnome-vfs2/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/gnome-vfs2/debian/changelog?rev=12441&op=diff
==============================================================================
--- desktop/experimental/gnome-vfs2/debian/changelog (original)
+++ desktop/experimental/gnome-vfs2/debian/changelog Sun Sep 9 06:56:10 2007
@@ -1,3 +1,16 @@
+gnome-vfs2 (1:2.19.91-1) experimental; urgency=low
+
+ * New upstream release - no ABI and API changes.
+ * Merge 1:2.18.3-4:
+ + debian/patches/24_gnome_vfs_home_dir.patch:
+ - Add a new environment variable GNOME_VFS_HOME to specify the home
+ directory that GnomeVFS should use. Currently it only uses the value
+ from g_get_home_dir() which can be changed easily.
+ Setting this environment variable to a writable directory is necessary
+ to use GnomeVFS in the buildd chroots.
+
+ -- Sebastian Dröge <slomo at debian.org> Sun, 09 Sep 2007 08:51:33 +0200
+
gnome-vfs2 (1:2.19.3-1) experimental; urgency=low
[ Loic Minier ]
@@ -15,6 +28,22 @@
when dbus isn't running.
-- Marc 'HE' Brockschmidt <he at debian.org> Fri, 03 Aug 2007 17:22:58 +0200
+
+gnome-vfs2 (1:2.18.1-4) unstable; urgency=low
+
+ [ Loic Minier ]
+ * Build-dep on linux-libc-dev instead of linux-kernel-headers; keep the
+ version intact (Closes: #439097).
+
+ [ Sebastian Dröge ]
+ * debian/patches/24_gnome_vfs_home_dir.patch:
+ + Add a new environment variable GNOME_VFS_HOME to specify the home
+ directory that GnomeVFS should use. Currently it only uses the value
+ from g_get_home_dir() which can be changed easily.
+ Setting this environment variable to a writable directory is necessary
+ to use GnomeVFS in the buildd chroots.
+
+ -- Sebastian Dröge <slomo at debian.org> Fri, 07 Sep 2007 15:10:37 +0200
gnome-vfs2 (1:2.18.1-3) unstable; urgency=low
Modified: desktop/experimental/gnome-vfs2/debian/control
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/gnome-vfs2/debian/control?rev=12441&op=diff
==============================================================================
--- desktop/experimental/gnome-vfs2/debian/control (original)
+++ desktop/experimental/gnome-vfs2/debian/control Sun Sep 9 06:56:10 2007
@@ -2,7 +2,7 @@
Section: libs
Priority: optional
Maintainer: Josselin Mouette <joss at debian.org>
-Uploaders: Debian GNOME Maintainers <pkg-gnome-maintainers at lists.alioth.debian.org>, Loic Minier <lool at dooz.org>, Marc 'HE' Brockschmidt <he at debian.org>, Sebastian Dröge <slomo at debian.org>
+Uploaders: Debian GNOME Maintainers <pkg-gnome-maintainers at lists.alioth.debian.org>, Marc 'HE' Brockschmidt <he at debian.org>, Sebastian Dröge <slomo at debian.org>
Build-Depends: cdbs,
quilt,
type-handling,
Added: desktop/experimental/gnome-vfs2/debian/patches/24_gnome_vfs_home_dir.patch
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/gnome-vfs2/debian/patches/24_gnome_vfs_home_dir.patch?rev=12441&op=file
==============================================================================
--- desktop/experimental/gnome-vfs2/debian/patches/24_gnome_vfs_home_dir.patch (added)
+++ desktop/experimental/gnome-vfs2/debian/patches/24_gnome_vfs_home_dir.patch Sun Sep 9 06:56:10 2007
@@ -1,0 +1,232 @@
+diff -Naur gnome-vfs2-2.19.91.old/libgnomevfs/gnome-vfs-application-registry.c gnome-vfs2-2.19.91/libgnomevfs/gnome-vfs-application-registry.c
+--- gnome-vfs2-2.19.91.old/libgnomevfs/gnome-vfs-application-registry.c 2007-04-02 16:16:47.000000000 +0200
++++ gnome-vfs2-2.19.91/libgnomevfs/gnome-vfs-application-registry.c 2007-09-07 14:56:12.000000000 +0200
+@@ -944,6 +944,8 @@
+ static void
+ gnome_vfs_application_registry_init (void)
+ {
++ char *home_dir;
++
+ if (gnome_vfs_application_registry_initialized)
+ return;
+
+@@ -964,8 +966,12 @@
+ "application-registry",
+ NULL);
+ gnome_registry_dir.system_dir = TRUE;
++
++ home_dir = getenv ("GNOME_VFS_HOME");
++ if (home_dir == NULL)
++ home_dir = g_get_home_dir ();
+
+- user_registry_dir.dirname = g_build_filename (g_get_home_dir(),
++ user_registry_dir.dirname = g_build_filename (home_dir,
+ ".gnome",
+ "application-info",
+ NULL);
+diff -Naur gnome-vfs2-2.19.91.old/libgnomevfs/gnome-vfs-cancellable-ops.c gnome-vfs2-2.19.91/libgnomevfs/gnome-vfs-cancellable-ops.c
+--- gnome-vfs2-2.19.91.old/libgnomevfs/gnome-vfs-cancellable-ops.c 2007-08-21 11:26:49.000000000 +0200
++++ gnome-vfs2-2.19.91/libgnomevfs/gnome-vfs-cancellable-ops.c 2007-09-07 14:56:44.000000000 +0200
+@@ -298,8 +298,13 @@
+ gnome_vfs_uri_ref (near_uri);
+ } else {
+ char *text_uri;
++ char *home_dir;
+
+- text_uri = gnome_vfs_get_uri_from_local_path (g_get_home_dir ());
++ home_dir = getenv ("GNOME_VFS_HOME");
++ if (home_dir == NULL)
++ home_dir = g_get_home_dir ();
++
++ text_uri = gnome_vfs_get_uri_from_local_path (home_dir);
+ g_assert (text_uri != NULL);
+ /* assume file: method and the home directory */
+ near_uri = gnome_vfs_uri_new (text_uri);
+diff -Naur gnome-vfs2-2.19.91.old/libgnomevfs/gnome-vfs-configuration.c gnome-vfs2-2.19.91/libgnomevfs/gnome-vfs-configuration.c
+--- gnome-vfs2-2.19.91.old/libgnomevfs/gnome-vfs-configuration.c 2007-04-02 16:16:48.000000000 +0200
++++ gnome-vfs2-2.19.91/libgnomevfs/gnome-vfs-configuration.c 2007-09-07 14:46:49.000000000 +0200
+@@ -507,7 +507,9 @@
+ install_path_list (environment_path);
+ }
+
+- home_dir = g_get_home_dir ();
++ home_dir = getenv ("GNOME_VFS_HOME");
++ if (home_dir == NULL)
++ home_dir = g_get_home_dir ();
+ if (home_dir != NULL) {
+ home_config = g_build_filename (home_dir,
+ ".gnome2", "vfs", "modules",
+diff -Naur gnome-vfs2-2.19.91.old/libgnomevfs/gnome-vfs-init.c gnome-vfs2-2.19.91/libgnomevfs/gnome-vfs-init.c
+--- gnome-vfs2-2.19.91.old/libgnomevfs/gnome-vfs-init.c 2007-04-02 16:16:48.000000000 +0200
++++ gnome-vfs2-2.19.91/libgnomevfs/gnome-vfs-init.c 2007-09-07 14:57:47.000000000 +0200
+@@ -64,8 +64,13 @@
+ {
+ gboolean retval = TRUE;
+ gchar *dirname;
++ gchar *home_dir;
+
+- dirname = g_build_filename (g_get_home_dir (), ".gnome2", NULL);
++ home_dir = getenv ("GNOME_VFS_HOME");
++ if (home_dir == NULL)
++ home_dir = g_get_home_dir ();
++
++ dirname = g_build_filename (home_dir, ".gnome2", NULL);
+
+ if (!g_file_test (dirname, G_FILE_TEST_EXISTS)) {
+ if (g_mkdir (dirname, S_IRWXU) != 0) {
+diff -Naur gnome-vfs2-2.19.91.old/libgnomevfs/gnome-vfs-utils.c gnome-vfs2-2.19.91/libgnomevfs/gnome-vfs-utils.c
+--- gnome-vfs2-2.19.91.old/libgnomevfs/gnome-vfs-utils.c 2007-04-02 16:16:48.000000000 +0200
++++ gnome-vfs2-2.19.91/libgnomevfs/gnome-vfs-utils.c 2007-09-07 14:59:01.000000000 +0200
+@@ -417,6 +417,7 @@
+ #ifndef G_OS_WIN32
+ char *slash_after_user_name, *user_name;
+ struct passwd *passwd_file_entry;
++ char *home_dir;
+
+ g_return_val_if_fail (path != NULL, NULL);
+
+@@ -424,8 +425,12 @@
+ return g_strdup (path);
+ }
+
++ home_dir = getenv ("GNOME_VFS_HOME");
++ if (home_dir == NULL)
++ home_dir = g_get_home_dir ();
++
+ if (path[1] == '/' || path[1] == '\0') {
+- return g_strconcat (g_get_home_dir (), &path[1], NULL);
++ return g_strconcat (home_dir, &path[1], NULL);
+ }
+
+ slash_after_user_name = strchr (&path[1], '/');
+@@ -1538,7 +1543,13 @@
+
+ if (uri == NULL &&
+ dirs & GNOME_VFS_MAKE_URI_DIR_HOMEDIR) {
+- path = g_build_filename (g_get_home_dir (), location, NULL);
++ char *home_dir;
++
++ home_dir = getenv ("GNOME_VFS_HOME");
++ if (home_dir == NULL)
++ home_dir = g_get_home_dir ();
++
++ path = g_build_filename (home_dir, location, NULL);
+
+ if (g_file_test (path, G_FILE_TEST_EXISTS)) {
+ uri = gnome_vfs_make_uri_from_input (path);
+diff -Naur gnome-vfs2-2.19.91.old/modules/computer-method.c gnome-vfs2-2.19.91/modules/computer-method.c
+--- gnome-vfs2-2.19.91.old/modules/computer-method.c 2007-04-02 16:16:44.000000000 +0200
++++ gnome-vfs2-2.19.91/modules/computer-method.c 2007-09-07 14:59:16.000000000 +0200
+@@ -550,8 +550,13 @@
+ {
+ char *data;
+ char *uri;
++ char *home_dir;
+
+- uri = gnome_vfs_get_uri_from_local_path (g_get_home_dir ());
++ home_dir = getenv ("GNOME_VFS_HOME");
++ if (home_dir == NULL)
++ home_dir = g_get_home_dir ();
++
++ uri = gnome_vfs_get_uri_from_local_path (home_dir);
+ data = g_strdup_printf ("[Desktop Entry]\n"
+ "Encoding=UTF-8\n"
+ "Name=%s\n"
+diff -Naur gnome-vfs2-2.19.91.old/modules/file-method.c gnome-vfs2-2.19.91/modules/file-method.c
+--- gnome-vfs2-2.19.91.old/modules/file-method.c 2007-04-02 16:16:44.000000000 +0200
++++ gnome-vfs2-2.19.91/modules/file-method.c 2007-09-07 15:00:31.000000000 +0200
+@@ -1529,8 +1529,13 @@
+ char *cache_file_parent, *cache_file_path;
+ GList *p;
+ char *buffer, *escaped_path, *escaped_mount_point;
++ char *home_dir;
++
++ home_dir = getenv ("GNOME_VFS_HOME");
++ if (home_dir == NULL)
++ home_dir = g_get_home_dir ();
+
+- cache_file_parent = append_to_path (g_get_home_dir (), TRASH_ENTRY_CACHE_PARENT);
++ cache_file_parent = append_to_path (home_dir, TRASH_ENTRY_CACHE_PARENT);
+ cache_file_path = append_to_path (cache_file_parent, TRASH_ENTRY_CACHE_NAME);
+
+ if (mkdir_recursive (cache_file_parent, 0777) != 0) {
+@@ -1661,6 +1666,7 @@
+ char *mount_point, *trash_path;
+ struct stat stat_buffer;
+ gboolean removed_item;
++ char *home_dir;
+
+ /* empty the old locally cached entries */
+ g_list_foreach (cached_trash_directories,
+@@ -1669,7 +1675,11 @@
+ cached_trash_directories = NULL;
+
+ /* read in the entries from disk */
+- cache_file_path = g_build_filename (g_get_home_dir (),
++ home_dir = getenv ("GNOME_VFS_HOME");
++ if (home_dir == NULL)
++ home_dir = g_get_home_dir ();
++
++ cache_file_path = g_build_filename (home_dir,
+ TRASH_ENTRY_CACHE_PARENT,
+ TRASH_ENTRY_CACHE_NAME,
+ NULL);
+@@ -1941,7 +1951,9 @@
+ return GNOME_VFS_ERROR_INVALID_URI;
+
+ /* We will need the URI and the stat structure for the home directory. */
+- home_directory = g_get_home_dir ();
++ home_directory = getenv ("GNOME_VFS_HOME");
++ if (home_directory == NULL)
++ home_directory = g_get_home_dir ();
+
+ if (gnome_vfs_context_check_cancellation (context)) {
+ g_free (full_name_near);
+diff -Naur gnome-vfs2-2.19.91.old/modules/smb-method.c gnome-vfs2-2.19.91/modules/smb-method.c
+--- gnome-vfs2-2.19.91.old/modules/smb-method.c 2007-08-21 11:27:08.000000000 +0200
++++ gnome-vfs2-2.19.91/modules/smb-method.c 2007-09-07 15:00:46.000000000 +0200
+@@ -659,6 +659,7 @@
+ GConfClient *gclient;
+ gchar *workgroup;
+ struct stat statbuf;
++ gchar *home_dir;
+
+ LOCK_SMB();
+
+@@ -666,7 +667,11 @@
+ * default settings, but this breaks a lot of smb.conf
+ * configurations, so we remove this again. If you really
+ * need an empty smb.conf, put a newline in it */
+- path = g_build_filename (G_DIR_SEPARATOR_S, g_get_home_dir (),
++ home_dir = getenv ("GNOME_VFS_HOME");
++ if (home_dir == NULL)
++ home_dir = g_get_home_dir ();
++
++ path = g_build_filename (G_DIR_SEPARATOR_S, home_dir,
+ ".smb", "smb.conf", NULL);
+
+ if (stat (path, &statbuf) == 0) {
+diff -Naur gnome-vfs2-2.19.91.old/test/test-async-cancel.c gnome-vfs2-2.19.91/test/test-async-cancel.c
+--- gnome-vfs2-2.19.91.old/test/test-async-cancel.c 2007-04-02 16:16:53.000000000 +0200
++++ gnome-vfs2-2.19.91/test/test-async-cancel.c 2007-09-07 15:01:16.000000000 +0200
+@@ -644,6 +644,11 @@
+ {
+ GnomeVFSAsyncHandle *handle;
+ GList *vfs_uri_as_list = NULL;
++ gchar *home_dir;
++
++ home_dir = getenv ("GNOME_VFS_HOME");
++ if (home_dir == NULL)
++ home_dir = g_get_home_dir ();
+
+
+ #ifndef G_OS_WIN32
+@@ -651,7 +656,7 @@
+ #else
+ vfs_uri_as_list = g_list_append (vfs_uri_as_list,
+ gnome_vfs_uri_new (g_strconcat ("file://",
+- g_get_home_dir (),
++ home_dir,
+ NULL)));
+ #endif
+ vfs_uri_as_list = g_list_append (vfs_uri_as_list, gnome_vfs_uri_new ("file:///ace_of_spades"));
More information about the pkg-gnome-commits
mailing list