OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

158 lines
5.3 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../sylpheed/gpgme-update.patch.disabled
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. # Copyright (C) 1998 - 2003 Clifford Wolf
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This patch file is dual-licensed. It is available under the license the
  11. # patched project is licensed under, as long as it is an OpenSource license
  12. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  13. # of the GNU General Public License as published by the Free Software
  14. # Foundation; either version 2 of the License, or (at your option) any later
  15. # version.
  16. # --- T2-COPYRIGHT-NOTE-END ---
  17. Written by Rene Rebe <rene@exactcode.de> to make sylpheed compile
  18. with recent gpgme, since noone seems to care about this ...
  19. --- sylpheed-0.9.0/src/rfc2015.c.orig 2003-08-03 02:15:15.000000000 +0200
  20. +++ sylpheed-0.9.0/src/rfc2015.c 2003-08-03 02:28:09.000000000 +0200
  21. @@ -340,7 +340,7 @@
  22. goto leave;
  23. }
  24. - err = gpgme_op_verify (ctx, sig, text, &status);
  25. + err = gpgme_op_verify (ctx, sig, text, NULL, &status);
  26. if (err) {
  27. debug_print ("gpgme_op_verify failed: %s\n", gpgme_strerror (err));
  28. goto leave;
  29. @@ -395,11 +395,11 @@
  30. if (err)
  31. debug_print ("gpgme_data_rewind failed: %s\n", gpgme_strerror (err));
  32. - while (!(err = gpgme_data_read (data, buf, 100, &nread))) {
  33. + while ((nread = gpgme_data_read (data, buf, 100)) > 0) {
  34. fwrite ( buf, nread, 1, fp );
  35. }
  36. - if (err != GPGME_EOF)
  37. + if (nread != GPGME_EOF)
  38. debug_print ("gpgme_data_read failed: %s\n", gpgme_strerror (err));
  39. fclose (fp);
  40. @@ -666,11 +666,11 @@
  41. if (err)
  42. debug_print ("gpgme_data_rewind failed: %s\n", gpgme_strerror (err));
  43. - while (!(err = gpgme_data_read (plain, buf, sizeof(buf), &nread))) {
  44. + while ((nread = gpgme_data_read (plain, buf, sizeof(buf))) > 0) {
  45. fwrite (buf, nread, 1, dstfp);
  46. }
  47. - if (err != GPGME_EOF) {
  48. + if (nread != GPGME_EOF) {
  49. debug_print ("gpgme_data_read failed: %s\n", gpgme_strerror (err));
  50. }
  51. @@ -885,10 +885,10 @@
  52. debug_print ("gpgme_data_rewind failed: %s\n", gpgme_strerror (err));
  53. goto failure;
  54. }
  55. - while (!(err = gpgme_data_read (header, buf, BUFFSIZE, &nread))) {
  56. + while ((nread = gpgme_data_read (header, buf, BUFFSIZE)) > 0) {
  57. fwrite (buf, nread, 1, fp);
  58. }
  59. - if (err != GPGME_EOF) {
  60. + if (nread != GPGME_EOF) {
  61. debug_print ("gpgme_data_read failed: %s\n", gpgme_strerror (err));
  62. goto failure;
  63. }
  64. @@ -931,10 +931,10 @@
  65. goto failure;
  66. }
  67. - while (!(err = gpgme_data_read (cipher, buf, BUFFSIZE, &nread))) {
  68. + while ((nread = gpgme_data_read (cipher, buf, BUFFSIZE)) > 0) {
  69. fwrite (buf, nread, 1, fp);
  70. }
  71. - if (err != GPGME_EOF) {
  72. + if (nread != GPGME_EOF) {
  73. debug_print ("** gpgme_data_read failed: %s\n", gpgme_strerror (err));
  74. goto failure;
  75. }
  76. @@ -1204,10 +1204,10 @@
  77. err = gpgme_data_rewind (header);
  78. if (err)
  79. debug_print ("gpgme_data_rewind failed: %s\n", gpgme_strerror (err));
  80. - while (!(err = gpgme_data_read (header, buf, BUFFSIZE, &nread))) {
  81. + while ((nread = gpgme_data_read (header, buf, BUFFSIZE)) > 0) {
  82. fwrite (buf, nread, 1, fp);
  83. }
  84. - if (err != GPGME_EOF) {
  85. + if (nread != GPGME_EOF) {
  86. debug_print ("gpgme_data_read failed: %s\n", gpgme_strerror (err));
  87. goto failure;
  88. }
  89. @@ -1236,10 +1236,10 @@
  90. gpgme_strerror (err));
  91. goto failure;
  92. }
  93. - while (!(err = gpgme_data_read (plain, buf, BUFFSIZE, &nread))) {
  94. + while ((nread = gpgme_data_read (plain, buf, BUFFSIZE)) > 0) {
  95. fwrite (buf, nread, 1, fp);
  96. }
  97. - if (err != GPGME_EOF) {
  98. + if (nread != GPGME_EOF) {
  99. debug_print ("gpgme_data_read failed: %s\n", gpgme_strerror (err));
  100. goto failure;
  101. }
  102. @@ -1258,10 +1258,10 @@
  103. goto failure;
  104. }
  105. - while (!(err = gpgme_data_read (sigdata, buf, BUFFSIZE, &nread))) {
  106. + while ((nread = gpgme_data_read (sigdata, buf, BUFFSIZE)) > 0) {
  107. fwrite (buf, nread, 1, fp);
  108. }
  109. - if (err != GPGME_EOF) {
  110. + if (nread != GPGME_EOF) {
  111. debug_print ("gpgme_data_read failed: %s\n", gpgme_strerror (err));
  112. goto failure;
  113. }
  114. @@ -1356,10 +1356,10 @@
  115. goto failure;
  116. }
  117. - while (!(err = gpgme_data_read(sigdata, buf, sizeof(buf), &nread))) {
  118. + while ((nread = gpgme_data_read(sigdata, buf, sizeof(buf))) > 0) {
  119. fwrite(buf, nread, 1, fp);
  120. }
  121. - if (err != GPGME_EOF) {
  122. + if (nread != GPGME_EOF) {
  123. debug_print("gpgme_data_read failed: %s\n", gpgme_strerror(err));
  124. goto failure;
  125. }
  126. --- sylpheed-0.9.0/src/main.c.orig 2003-08-03 02:40:06.000000000 +0200
  127. +++ sylpheed-0.9.0/src/main.c 2003-08-03 02:34:24.000000000 +0200
  128. @@ -231,7 +231,7 @@
  129. prefs_common_read_config();
  130. #if USE_GPGME
  131. - if (gpgme_check_engine()) { /* Also does some gpgme init */
  132. + /*if (gpgme_check_engine()) { */ /* Also does some gpgme init */
  133. rfc2015_disable_all();
  134. debug_print("gpgme_engine_version:\n%s\n",
  135. gpgme_get_engine_info());
  136. @@ -246,7 +246,7 @@
  137. if (val & G_ALERTDISABLE)
  138. prefs_common.gpg_warning = FALSE;
  139. }
  140. - }
  141. + /* } */
  142. gpgme_register_idle(idle_function_for_gpgme);
  143. #endif