1 |
commit: c932649c01ff95cdc89b328548de7f44ee1384da |
2 |
Author: Amadeusz Żołnowski <aidecoe <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Feb 5 10:29:51 2017 +0000 |
4 |
Commit: Amadeusz Piotr Żołnowski <aidecoe <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 5 11:17:27 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c932649c |
7 |
|
8 |
net-mail/notmuch: Fix tests to work with >=app-crypt/gnupg-2.1.16 |
9 |
|
10 |
Tests have been failing because path for Unix socket was too long. |
11 |
Socket had been created in temporary directory within workdir. Create |
12 |
temporary directory in /tmp instead. |
13 |
|
14 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
15 |
|
16 |
net-mail/notmuch/files/fix-gpg-tests.patch | 16 ++++++++++++++++ |
17 |
net-mail/notmuch/notmuch-0.23.3.ebuild | 1 + |
18 |
net-mail/notmuch/notmuch-0.23.5.ebuild | 1 + |
19 |
3 files changed, 18 insertions(+) |
20 |
|
21 |
diff --git a/net-mail/notmuch/files/fix-gpg-tests.patch b/net-mail/notmuch/files/fix-gpg-tests.patch |
22 |
new file mode 100644 |
23 |
index 00000000..e674f18 |
24 |
--- /dev/null |
25 |
+++ b/net-mail/notmuch/files/fix-gpg-tests.patch |
26 |
@@ -0,0 +1,16 @@ |
27 |
+diff --git a/test/test-lib-common.sh b/test/test-lib-common.sh |
28 |
+index 03ef1d2d..178820bd 100644 |
29 |
+--- a/test/test-lib-common.sh |
30 |
++++ b/test/test-lib-common.sh |
31 |
+@@ -139,10 +139,7 @@ export PATH MANPATH |
32 |
+ # Test repository |
33 |
+ test="tmp.$(basename "$0" .sh)" |
34 |
+ test -n "$root" && test="$root/$test" |
35 |
+-case "$test" in |
36 |
+-/*) TMP_DIRECTORY="$test" ;; |
37 |
+- *) TMP_DIRECTORY="$TEST_DIRECTORY/$test" ;; |
38 |
+-esac |
39 |
++TMP_DIRECTORY="$(mktemp -d)" |
40 |
+ test ! -z "$debug" || remove_tmp=$TMP_DIRECTORY |
41 |
+ rm -fr "$test" || { |
42 |
+ GIT_EXIT_OK=t |
43 |
|
44 |
diff --git a/net-mail/notmuch/notmuch-0.23.3.ebuild b/net-mail/notmuch/notmuch-0.23.3.ebuild |
45 |
index 8a372a9..9799558 100644 |
46 |
--- a/net-mail/notmuch/notmuch-0.23.3.ebuild |
47 |
+++ b/net-mail/notmuch/notmuch-0.23.3.ebuild |
48 |
@@ -57,6 +57,7 @@ RDEPEND="${CDEPEND} |
49 |
" |
50 |
|
51 |
DOCS=( AUTHORS NEWS README ) |
52 |
+PATCHES=( "${FILESDIR}/fix-gpg-tests.patch" ) |
53 |
SITEFILE="50${PN}-gentoo.el" |
54 |
MY_LD_LIBRARY_PATH="${WORKDIR}/${P}/lib" |
55 |
|
56 |
|
57 |
diff --git a/net-mail/notmuch/notmuch-0.23.5.ebuild b/net-mail/notmuch/notmuch-0.23.5.ebuild |
58 |
index b448318..86e50bb 100644 |
59 |
--- a/net-mail/notmuch/notmuch-0.23.5.ebuild |
60 |
+++ b/net-mail/notmuch/notmuch-0.23.5.ebuild |
61 |
@@ -57,6 +57,7 @@ RDEPEND="${CDEPEND} |
62 |
" |
63 |
|
64 |
DOCS=( AUTHORS NEWS README ) |
65 |
+PATCHES=( "${FILESDIR}/fix-gpg-tests.patch" ) |
66 |
SITEFILE="50${PN}-gentoo.el" |
67 |
MY_LD_LIBRARY_PATH="${WORKDIR}/${P}/lib" |