diff options
author | Milan Crha <mcrha@redhat.com> | 2014-09-06 01:13:56 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2014-09-06 01:13:56 +0800 |
commit | 1dc1cf0b81b4e7f16fdd8f27bd3971d6c4ab4606 (patch) | |
tree | 9ca3a2bb4b70a35359d04d1382be197e998f30b6 /win32/patches | |
parent | f863aa6d6c6728f7c66d6531c971b09ad4f10932 (diff) | |
download | gsoc2013-evolution-1dc1cf0b81b4e7f16fdd8f27bd3971d6c4ab4606.tar gsoc2013-evolution-1dc1cf0b81b4e7f16fdd8f27bd3971d6c4ab4606.tar.gz gsoc2013-evolution-1dc1cf0b81b4e7f16fdd8f27bd3971d6c4ab4606.tar.bz2 gsoc2013-evolution-1dc1cf0b81b4e7f16fdd8f27bd3971d6c4ab4606.tar.lz gsoc2013-evolution-1dc1cf0b81b4e7f16fdd8f27bd3971d6c4ab4606.tar.xz gsoc2013-evolution-1dc1cf0b81b4e7f16fdd8f27bd3971d6c4ab4606.tar.zst gsoc2013-evolution-1dc1cf0b81b4e7f16fdd8f27bd3971d6c4ab4606.zip |
Miscellaneous Win32 related changes
* use e_util_win32_initialize() in main() to avoid code duplication
* e-spinner - correct image path build under win32
* export WIN32_SERVICELIBEXECDIR when building eds, which relies on it now
* update D-Bus patch and session-local.conf creation, thus D-Bus
can actually autostart services
Diffstat (limited to 'win32/patches')
-rw-r--r-- | win32/patches/dbus.patch | 45 |
1 files changed, 31 insertions, 14 deletions
diff --git a/win32/patches/dbus.patch b/win32/patches/dbus.patch index c876f2fce0..6d1bee3678 100644 --- a/win32/patches/dbus.patch +++ b/win32/patches/dbus.patch @@ -1,6 +1,6 @@ -diff -upr -x .deps -x .libs -x '*.la' dbus-1.8.0.old/dbus/Makefile.am dbus-1.8.0/dbus/Makefile.am ---- dbus-1.8.0.old/dbus/Makefile.am 2014-01-20 13:40:21 +0000 -+++ dbus-1.8.0/dbus/Makefile.am 2014-08-09 12:50:47 +0000 +diff -upr -x .deps -x .libs -x '*.la' -x '*.lo' dbus-1.8.0.old/dbus/Makefile.am dbus-1.8.0/dbus/Makefile.am +--- dbus-1.8.0.old/dbus/Makefile.am 2014-09-05 16:09:18 +0000 ++++ dbus-1.8.0/dbus/Makefile.am 2014-09-05 16:09:40 +0000 @@ -304,8 +304,8 @@ if DBUS_WIN # this code is used, we don't actually need libstdc++. noinst_LTLIBRARIES += libdbus-init-win.la @@ -12,9 +12,30 @@ diff -upr -x .deps -x .libs -x '*.la' dbus-1.8.0.old/dbus/Makefile.am dbus-1.8.0 endif noinst_PROGRAMS = -diff -upr -x .deps -x .libs -x '*.la' dbus-1.8.0.old/dbus/dbus-sysdeps-win.c dbus-1.8.0/dbus/dbus-sysdeps-win.c ---- dbus-1.8.0.old/dbus/dbus-sysdeps-win.c 2014-01-07 11:32:53 +0000 -+++ dbus-1.8.0/dbus/dbus-sysdeps-win.c 2014-08-09 13:35:34 +0000 +diff -upr -x .deps -x .libs -x '*.la' -x '*.lo' dbus-1.8.0.old/dbus/dbus-sysdeps-util-win.c dbus-1.8.0/dbus/dbus-sysdeps-util-win.c +--- dbus-1.8.0.old/dbus/dbus-sysdeps-util-win.c 2014-09-05 16:09:18 +0000 ++++ dbus-1.8.0/dbus/dbus-sysdeps-util-win.c 2014-09-05 16:09:28 +0000 +@@ -1555,13 +1555,12 @@ _dbus_replace_install_prefix (const char + if ((!_dbus_get_install_root(runtime_prefix, len) || + strncmp (configure_time_path, DBUS_PREFIX "/", + strlen (DBUS_PREFIX) + 1))) { +- strcat (retval, configure_time_path); +- return retval; ++ strcpy (retval, configure_time_path); ++ } else { ++ strcpy (retval, runtime_prefix); ++ strcat (retval, configure_time_path + strlen (DBUS_PREFIX) + 1); + } + +- strcpy (retval, runtime_prefix); +- strcat (retval, configure_time_path + strlen (DBUS_PREFIX) + 1); +- + /* Somehow, in some situations, backslashes get collapsed in the string. + * Since windows C library accepts both forward and backslashes as + * path separators, convert all backslashes to forward slashes. +diff -upr -x .deps -x .libs -x '*.la' -x '*.lo' dbus-1.8.0.old/dbus/dbus-sysdeps-win.c dbus-1.8.0/dbus/dbus-sysdeps-win.c +--- dbus-1.8.0.old/dbus/dbus-sysdeps-win.c 2014-09-05 16:09:18 +0000 ++++ dbus-1.8.0/dbus/dbus-sysdeps-win.c 2014-09-05 16:09:40 +0000 @@ -55,6 +55,7 @@ #include <ws2tcpip.h> #include <wincrypt.h> @@ -172,7 +193,7 @@ diff -upr -x .deps -x .libs -x '*.la' dbus-1.8.0.old/dbus/dbus-sysdeps-win.c dbu _dbus_assert (credentials != NULL); _dbus_assert (!_dbus_credentials_are_anonymous (credentials)); -@@ -3407,18 +3539,16 @@ _dbus_append_keyring_directory_for_crede +@@ -3407,18 +3539,12 @@ _dbus_append_keyring_directory_for_crede if (!_dbus_string_init (&homedir)) return FALSE; @@ -181,14 +202,10 @@ diff -upr -x .deps -x .libs -x '*.la' dbus-1.8.0.old/dbus/dbus-sysdeps-win.c dbu - { - _dbus_string_append(&homedir,homedrive); - } -+ _dbus_set_homedir_from_drive_and_path_env(&homedir); -+ /* It's a default folder, like X:\, try to use a better one, in user's home directory */ -+ if (_dbus_string_get_length(&homedir) <= 3) { ++ _dbus_string_set_length(&homedir, 0); ++ if (!_dbus_set_user_home(&homedir)) { + _dbus_string_set_length(&homedir, 0); -+ if (!_dbus_set_user_home(&homedir)) { -+ _dbus_string_set_length(&homedir, 0); -+ _dbus_set_homedir_from_drive_and_path_env(&homedir); -+ } ++ _dbus_set_homedir_from_drive_and_path_env(&homedir); + } - homepath = _dbus_getenv("HOMEPATH"); |