diff options
Diffstat (limited to 'source/xap/pan')
-rwxr-xr-x | source/xap/pan/pan.SlackBuild | 2 | ||||
-rw-r--r-- | source/xap/pan/pan.gcc11.diff | 20 |
2 files changed, 22 insertions, 0 deletions
diff --git a/source/xap/pan/pan.SlackBuild b/source/xap/pan/pan.SlackBuild index d9cacee9..a7dec169 100755 --- a/source/xap/pan/pan.SlackBuild +++ b/source/xap/pan/pan.SlackBuild @@ -81,6 +81,8 @@ zcat $CWD/pan.glib-2.68.0.diff.gz | patch -p1 --verbose || exit 1 # Build with enchant-2: zcat $CWD/pan.enchant2.diff.gz | patch -p1 --verbose || exit 1 +zcat $CWD/pan.gcc11.diff.gz | patch -p1 --verbose || exit 1 + # Configure: CFLAGS="$SLKCFLAGS" \ ./configure \ diff --git a/source/xap/pan/pan.gcc11.diff b/source/xap/pan/pan.gcc11.diff new file mode 100644 index 00000000..fe7e6b2f --- /dev/null +++ b/source/xap/pan/pan.gcc11.diff @@ -0,0 +1,20 @@ +--- ./pan/usenet-utils/mime-utils.cc.orig 2019-09-29 16:01:34.000000000 -0500 ++++ ./pan/usenet-utils/mime-utils.cc 2021-08-05 23:56:48.628393544 -0500 +@@ -1749,7 +1749,7 @@ + #ifdef HAVE_GMIME_30 + GMimeObject *gmo; + gmo = g_mime_message_get_mime_part (body); +- if (g_mime_multipart_signed_sign (gpg_ctx, gmo, uid.c_str(), &err) <0) ++ if (g_mime_multipart_signed_sign (gpg_ctx, gmo, uid.c_str(), &err) != 0) + #else + if (g_mime_multipart_signed_sign (mps, GMIME_OBJECT (part), gpg_ctx, uid.c_str(), GMIME_DIGEST_ALGO_SHA1, &err) <0) + #endif +@@ -1784,7 +1784,7 @@ + + #ifdef HAVE_GMIME_30 + if (g_mime_multipart_encrypted_encrypt(gpg_ctx, GMIME_OBJECT (part), sign, uid.c_str(), +- GMIME_ENCRYPT_NONE, rcp, &err) < 0) ++ GMIME_ENCRYPT_NONE, rcp, &err) != 0) + #else + if (g_mime_multipart_encrypted_encrypt(mpe, GMIME_OBJECT (part), gpg_ctx, sign, + uid.c_str(), GMIME_DIGEST_ALGO_SHA1, rcp, &err) < 0) |