mirror of the now-defunct rocklinux.org
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.

163 lines
5.5 KiB

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