aboutsummaryrefslogtreecommitdiffstats
path: root/main/claws-mail
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2014-09-05 11:30:19 +0300
committerTimo Teräs <timo.teras@iki.fi>2014-09-05 11:30:19 +0300
commit9655d9e8c7ca193707ae9f15f60174e3e25602fb (patch)
tree8543c8f7d2c589bde61e0bf629b774b2384281be /main/claws-mail
parent12ec771a118487c04ac88783d982851f091bb445 (diff)
downloadaports-9655d9e8c7ca193707ae9f15f60174e3e25602fb.tar.bz2
aports-9655d9e8c7ca193707ae9f15f60174e3e25602fb.tar.xz
main/claws-mail: fix stdio locking issue
Diffstat (limited to 'main/claws-mail')
-rw-r--r--main/claws-mail/APKBUILD15
-rw-r--r--main/claws-mail/procmime-stdio-locking.patch13
2 files changed, 23 insertions, 5 deletions
diff --git a/main/claws-mail/APKBUILD b/main/claws-mail/APKBUILD
index 85104a727f..dd4ae11b55 100644
--- a/main/claws-mail/APKBUILD
+++ b/main/claws-mail/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=claws-mail
pkgver=3.10.1
-pkgrel=2
+pkgrel=3
pkgdesc="A GTK+ based e-mail client."
url="http://www.claws-mail.org"
arch="all"
@@ -36,7 +36,9 @@ makedepends="gtk+-dev openssl-dev startup-notification-dev enchant-dev
"
depends="aspell-en"
install=
-source="http://downloads.sourceforge.net/project/claws-mail/Claws%20Mail/$pkgver/claws-mail-$pkgver.tar.xz"
+source="http://downloads.sourceforge.net/project/claws-mail/Claws%20Mail/$pkgver/claws-mail-$pkgver.tar.xz
+ procmime-stdio-locking.patch
+ "
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
@@ -180,6 +182,9 @@ _vcalendar () {
}
-md5sums="ab2b5a98c3c4e4341dfe563a4a8384e8 claws-mail-3.10.1.tar.xz"
-sha256sums="4cb7c42995b1a5d7567a0909ce2080c05eec74a4d966da7a7a872f5eba018459 claws-mail-3.10.1.tar.xz"
-sha512sums="b001683522a9a2bb9b1680f8ff608172a3fe9c4f556c8aa818b4259801bc92f722093850218377aba3a5fe549f0f09164c2e7623042bca0dbf3fd1071436dc80 claws-mail-3.10.1.tar.xz"
+md5sums="ab2b5a98c3c4e4341dfe563a4a8384e8 claws-mail-3.10.1.tar.xz
+6b1ef7df957b229f3fd16d5fab481530 procmime-stdio-locking.patch"
+sha256sums="4cb7c42995b1a5d7567a0909ce2080c05eec74a4d966da7a7a872f5eba018459 claws-mail-3.10.1.tar.xz
+c02ad48ca2504f855ad088a149321f7241f8f2bd0ed5417d1fc0aa2be4c277aa procmime-stdio-locking.patch"
+sha512sums="b001683522a9a2bb9b1680f8ff608172a3fe9c4f556c8aa818b4259801bc92f722093850218377aba3a5fe549f0f09164c2e7623042bca0dbf3fd1071436dc80 claws-mail-3.10.1.tar.xz
+4b97f719435f6fa0fa54423e8eec9fd4f5923bd40d831939ec571bfcfa9987841fb9535b6d00ed52d90e6442001610e6d1dcd9182f88f4372dc734f163ea3b49 procmime-stdio-locking.patch"
diff --git a/main/claws-mail/procmime-stdio-locking.patch b/main/claws-mail/procmime-stdio-locking.patch
new file mode 100644
index 0000000000..69577da9aa
--- /dev/null
+++ b/main/claws-mail/procmime-stdio-locking.patch
@@ -0,0 +1,13 @@
+diff -ru claws-mail-3.10.1.orig/src/procmime.c claws-mail-3.10.1/src/procmime.c
+--- claws-mail-3.10.1.orig/src/procmime.c 2014-06-09 11:24:17.000000000 -0300
++++ claws-mail-3.10.1/src/procmime.c 2014-09-05 11:26:59.268768631 -0300
+@@ -371,6 +371,9 @@
+ procmime_fclose(infp);
+ return FALSE;
+ }
++#ifdef HAVE_FGETS_UNLOCKED
++ flockfile(outfp);
++#endif
+ tmp_file = TRUE;
+ readend = mimeinfo->offset + mimeinfo->length;
+