mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
net-mail/notmuch: Fix tests to work with >=app-crypt/gnupg-2.1.16
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
This commit is contained in:
16
net-mail/notmuch/files/fix-gpg-tests.patch
Normal file
16
net-mail/notmuch/files/fix-gpg-tests.patch
Normal file
@@ -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
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user