From d812a96a7be8e15dcaee3c4486c7e31caca68cd3 Mon Sep 17 00:00:00 2001 From: q66 Date: Sun, 1 Dec 2019 23:37:49 +0100 Subject: [PATCH] pidgin-gpg: fix on musl --- srcpkgs/pidgin-gpg/patches/musl-encrypt.patch | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 srcpkgs/pidgin-gpg/patches/musl-encrypt.patch diff --git a/srcpkgs/pidgin-gpg/patches/musl-encrypt.patch b/srcpkgs/pidgin-gpg/patches/musl-encrypt.patch new file mode 100644 index 00000000000..70ac9ed053d --- /dev/null +++ b/srcpkgs/pidgin-gpg/patches/musl-encrypt.patch @@ -0,0 +1,22 @@ +Musl provides encrypt() with different signature in unistd.h. + +--- src/pidgin-gpg.c ++++ src/pidgin-gpg.c +@@ -458,7 +458,7 @@ static char* verify(const char* sig_str) + /* ------------------ + * encrypt a plain string with the key found with fingerprint fpr + * ------------------ */ +-static char* encrypt(const char* plain_str, const char* fpr) ++static char* p_encrypt(const char* plain_str, const char* fpr) + { + gpgme_error_t error; + gpgme_ctx_t ctx; +@@ -829,7 +829,7 @@ void jabber_send_signal_cb(PurpleConnection *pc, xmlnode **packet, + free(bare_jid); + + // encrypt message +- enc_str = encrypt(message,fpr_to); ++ enc_str = p_encrypt(message,fpr_to); + if (enc_str != NULL) + { + // remove message from body