Ticket #22009: mutt-devel-1.5.20.fix-gpgme.diff

File mutt-devel-1.5.20.fix-gpgme.diff, 1.9 KB (added by ludwig@…, 15 years ago)

patch to mutt 1.5.20 that calls gpgme_check_version(NULL) if required

  • mutt-devel

    diff -u -r -N mutt-devel.orig/Portfile mutt-devel/Portfile
    old new  
    44
    55name                mutt-devel
    66version             1.5.20
    7 revision            1
     7revision            2
    88categories          mail
    99platforms           darwin
    1010maintainers         simon openmaintainer
     
    177177variant gpgme description {Enable GPGME crypto support} {
    178178    configure.args-append   --enable-gpgme --with-gpgme-prefix=${prefix}
    179179    depends_lib-append      port:gpgme
     180    # the following patch makes mutt 1.5.20 compatible with gpgme 1.2.0,
     181    # cf. http://bugs.gentoo.org/show_bug.cgi?id=278394
     182    # and http://dev.mutt.org/trac/ticket/3300
     183    patchfiles-append         patch-1.5.20.gpgme.diff
     184    checksums-append       patch-1.5.20.gpgme.diff md5 \
     185                                 6faa84e2520dad7c603e8a8b9e0a9b30
    180186}
    181187
    182188livecheck.type      regex
  • files/patch-1.5.20.gpgme.diff

    diff -u -r -N mutt-devel.orig/files/patch-1.5.20.gpgme.diff mutt-devel/files/patch-1.5.20.gpgme.diff
    old new  
     1--- mutt-1.5.20/init.c.orig     2009-07-21 17:54:59 +0200
     2+++ mutt-1.5.20/init.c  2009-07-21 17:59:47 +0200
     3@@ -37,7 +37,6 @@
     4 #endif
     5 
     6 
     7-
     8 #include "mx.h"
     9 #include "init.h"
     10 #include "mailbox.h"
     11@@ -50,6 +49,10 @@
     12 #include <errno.h>
     13 #include <sys/wait.h>
     14 
     15+#if defined(CRYPT_BACKEND_GPGME)
     16+#include <gpgme.h>
     17+#endif
     18+
     19 #define CHECK_PAGER \
     20   if ((CurrentMenu == MENU_PAGER) && (idx >= 0) &&     \
     21            (MuttVars[idx].flags & R_RESORT)) \
     22@@ -3262,6 +3265,11 @@
     23 
     24   mutt_read_histfile ();
     25 
     26+#ifdef CRYPT_BACKEND_GPGME
     27+  /* needed since version 1.2.0, ticket #3300 */
     28+  gpgme_check_version (NULL);
     29+#endif
     30+
     31 #if 0
     32   set_option (OPTWEED); /* turn weeding on by default */
     33 #endif