gvfs-1.4.0-libsoup-gnome.patch 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. diff -ur gvfs-1.4.0-orig/configure gvfs-1.4.0/configure
  2. --- gvfs-1.4.0-orig/configure 2009-09-21 16:33:27.000000000 +0200
  3. +++ gvfs-1.4.0/configure 2009-10-18 13:28:02.000000000 +0200
  4. @@ -17056,8 +17056,8 @@
  5. if test "x$enable_http" != "xno"; then
  6. if test -n "$PKG_CONFIG" && \
  7. - { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-gnome-2.4 >= 2.25.1\"") >&5
  8. - ($PKG_CONFIG --exists --print-errors "libsoup-gnome-2.4 >= 2.25.1") 2>&5
  9. + { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4 >= 2.25.1\"") >&5
  10. + ($PKG_CONFIG --exists --print-errors "libsoup-2.4 >= 2.25.1") 2>&5
  11. ac_status=$?
  12. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13. (exit $ac_status); }; then
  14. @@ -17074,12 +17074,12 @@
  15. pkg_cv_HTTP_CFLAGS="$HTTP_CFLAGS"
  16. elif test -n "$PKG_CONFIG"; then
  17. if test -n "$PKG_CONFIG" && \
  18. - { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-gnome-2.4 libxml-2.0\"") >&5
  19. - ($PKG_CONFIG --exists --print-errors "libsoup-gnome-2.4 libxml-2.0") 2>&5
  20. + { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4 libxml-2.0\"") >&5
  21. + ($PKG_CONFIG --exists --print-errors "libsoup-2.4 libxml-2.0") 2>&5
  22. ac_status=$?
  23. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24. (exit $ac_status); }; then
  25. - pkg_cv_HTTP_CFLAGS=`$PKG_CONFIG --cflags "libsoup-gnome-2.4 libxml-2.0" 2>/dev/null`
  26. + pkg_cv_HTTP_CFLAGS=`$PKG_CONFIG --cflags "libsoup-2.4 libxml-2.0" 2>/dev/null`
  27. else
  28. pkg_failed=yes
  29. fi
  30. @@ -17090,12 +17090,12 @@
  31. pkg_cv_HTTP_LIBS="$HTTP_LIBS"
  32. elif test -n "$PKG_CONFIG"; then
  33. if test -n "$PKG_CONFIG" && \
  34. - { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-gnome-2.4 libxml-2.0\"") >&5
  35. - ($PKG_CONFIG --exists --print-errors "libsoup-gnome-2.4 libxml-2.0") 2>&5
  36. + { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4 libxml-2.0\"") >&5
  37. + ($PKG_CONFIG --exists --print-errors "libsoup-2.4 libxml-2.0") 2>&5
  38. ac_status=$?
  39. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40. (exit $ac_status); }; then
  41. - pkg_cv_HTTP_LIBS=`$PKG_CONFIG --libs "libsoup-gnome-2.4 libxml-2.0" 2>/dev/null`
  42. + pkg_cv_HTTP_LIBS=`$PKG_CONFIG --libs "libsoup-2.4 libxml-2.0" 2>/dev/null`
  43. else
  44. pkg_failed=yes
  45. fi
  46. @@ -17113,14 +17113,14 @@
  47. _pkg_short_errors_supported=no
  48. fi
  49. if test $_pkg_short_errors_supported = yes; then
  50. - HTTP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libsoup-gnome-2.4 libxml-2.0" 2>&1`
  51. + HTTP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libsoup-2.4 libxml-2.0" 2>&1`
  52. else
  53. - HTTP_PKG_ERRORS=`$PKG_CONFIG --print-errors "libsoup-gnome-2.4 libxml-2.0" 2>&1`
  54. + HTTP_PKG_ERRORS=`$PKG_CONFIG --print-errors "libsoup-2.4 libxml-2.0" 2>&1`
  55. fi
  56. # Put the nasty error message in config.log where it belongs
  57. echo "$HTTP_PKG_ERRORS" >&5
  58. - { { $as_echo "$as_me:$LINENO: error: Package requirements (libsoup-gnome-2.4 libxml-2.0) were not met:
  59. + { { $as_echo "$as_me:$LINENO: error: Package requirements (libsoup-2.4 libxml-2.0) were not met:
  60. $HTTP_PKG_ERRORS
  61. @@ -17131,7 +17131,7 @@
  62. and HTTP_LIBS to avoid the need to call pkg-config.
  63. See the pkg-config man page for more details.
  64. " >&5
  65. -$as_echo "$as_me: error: Package requirements (libsoup-gnome-2.4 libxml-2.0) were not met:
  66. +$as_echo "$as_me: error: Package requirements (libsoup-2.4 libxml-2.0) were not met:
  67. $HTTP_PKG_ERRORS
  68. diff -ur gvfs-1.4.0-orig/daemon/gvfsbackendhttp.c gvfs-1.4.0/daemon/gvfsbackendhttp.c
  69. --- gvfs-1.4.0-orig/daemon/gvfsbackendhttp.c 2009-04-20 12:41:37.000000000 +0200
  70. +++ gvfs-1.4.0/daemon/gvfsbackendhttp.c 2009-10-18 13:28:02.000000000 +0200
  71. @@ -33,7 +33,7 @@
  72. #include <glib/gi18n.h>
  73. #include <gio/gio.h>
  74. -#include <libsoup/soup-gnome.h>
  75. +#include <libsoup/soup.h>
  76. #include "gvfsbackendhttp.h"
  77. #include "gvfsjobopenforread.h"
  78. #include "gvfsjobread.h"
  79. @@ -80,7 +80,6 @@
  80. g_vfs_backend_http_init (GVfsBackendHttp *backend)
  81. {
  82. const char *debug;
  83. - SoupSessionFeature *proxy_resolver;
  84. g_vfs_backend_set_user_visible (G_VFS_BACKEND (backend), FALSE);
  85. @@ -92,12 +91,6 @@
  86. "gvfs/" VERSION,
  87. NULL);
  88. - /* Proxy handling */
  89. - proxy_resolver = g_object_new (SOUP_TYPE_PROXY_RESOLVER_GNOME, NULL);
  90. - soup_session_add_feature (backend->session, proxy_resolver);
  91. - soup_session_add_feature (backend->session_async, proxy_resolver);
  92. - g_object_unref (proxy_resolver);
  93. -
  94. /* Logging */
  95. debug = g_getenv ("GVFS_HTTP_DEBUG");
  96. if (debug)