net-mail/notmuch: Fix tests to work with >=app-crypt/gnupg-2.1.16
authorAmadeusz Żołnowski <aidecoe@gentoo.org>
Sun, 5 Feb 2017 10:29:51 +0000 (10:29 +0000)
committerAmadeusz Żołnowski <aidecoe@gentoo.org>
Sun, 5 Feb 2017 11:17:27 +0000 (11:17 +0000)
Tests have been failing because path for Unix socket was too long.
Socket had been created in temporary directory within workdir. Create
temporary directory in /tmp instead.

Package-Manager: Portage-2.3.3, Repoman-2.3.1

net-mail/notmuch/files/fix-gpg-tests.patch [new file with mode: 0644]
net-mail/notmuch/notmuch-0.23.3.ebuild
net-mail/notmuch/notmuch-0.23.5.ebuild

diff --git a/net-mail/notmuch/files/fix-gpg-tests.patch b/net-mail/notmuch/files/fix-gpg-tests.patch
new file mode 100644 (file)
index 0000000..e674f18
--- /dev/null
@@ -0,0 +1,16 @@
+diff --git a/test/test-lib-common.sh b/test/test-lib-common.sh
+index 03ef1d2d..178820bd 100644
+--- a/test/test-lib-common.sh
++++ b/test/test-lib-common.sh
+@@ -139,10 +139,7 @@ export PATH MANPATH
+ # Test repository
+ test="tmp.$(basename "$0" .sh)"
+ test -n "$root" && test="$root/$test"
+-case "$test" in
+-/*) TMP_DIRECTORY="$test" ;;
+- *) TMP_DIRECTORY="$TEST_DIRECTORY/$test" ;;
+-esac
++TMP_DIRECTORY="$(mktemp -d)"
+ test ! -z "$debug" || remove_tmp=$TMP_DIRECTORY
+ rm -fr "$test" || {
+       GIT_EXIT_OK=t
index 8a372a99c338cd2ad554302834cb9aa89877523a..9799558eccc9ef79005edf71494dee4e247e6584 100644 (file)
@@ -57,6 +57,7 @@ RDEPEND="${CDEPEND}
        "
 
 DOCS=( AUTHORS NEWS README )
+PATCHES=( "${FILESDIR}/fix-gpg-tests.patch" )
 SITEFILE="50${PN}-gentoo.el"
 MY_LD_LIBRARY_PATH="${WORKDIR}/${P}/lib"
 
index b448318b12559b3232e27fb5e6b4e1a220de2dc7..86e50bb2204bdc5c114f0bb8dee69b7ace7fd951 100644 (file)
@@ -57,6 +57,7 @@ RDEPEND="${CDEPEND}
        "
 
 DOCS=( AUTHORS NEWS README )
+PATCHES=( "${FILESDIR}/fix-gpg-tests.patch" )
 SITEFILE="50${PN}-gentoo.el"
 MY_LD_LIBRARY_PATH="${WORKDIR}/${P}/lib"