Gentoo Archives: gentoo-commits

From: Alon Bar-Lev <alonbl@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/gpgme/
Date: Sun, 07 Jan 2018 18:11:50
Message-Id: 1515348655.0a4d9e09377bf103f34eb3ae945cd1e2d181df8b.alonbl@gentoo
1 commit: 0a4d9e09377bf103f34eb3ae945cd1e2d181df8b
2 Author: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 7 18:10:39 2018 +0000
4 Commit: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 7 18:10:55 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a4d9e09
7
8 app-crypt/gpgme: skip tests when WORKDIR is too long
9
10 Closes: https://bugs.gentoo.org/643696
11 Package-Manager: Portage-2.3.13, Repoman-2.3.3
12
13 app-crypt/gpgme/gpgme-1.10.0.ebuild | 16 +++++++++-------
14 1 file changed, 9 insertions(+), 7 deletions(-)
15
16 diff --git a/app-crypt/gpgme/gpgme-1.10.0.ebuild b/app-crypt/gpgme/gpgme-1.10.0.ebuild
17 index 110e0e94550..ce5b9f1ca70 100644
18 --- a/app-crypt/gpgme/gpgme-1.10.0.ebuild
19 +++ b/app-crypt/gpgme/gpgme-1.10.0.ebuild
20 @@ -44,15 +44,14 @@ do_python() {
21 fi
22 }
23
24 -pkg_pretend() {
25 - local MAX_WORKDIR=66
26 -
27 - [[ "${#WORKDIR}" -le "${MAX_WORKDIR}" ]] ||
28 - die "Cannot build package as WORKDIR '${WORKDIR}' is longer than ${MAX_WORKDIR} which will fail build"
29 -}
30 -
31 pkg_setup() {
32 addpredict /run/user/$(id -u)/gnupg
33 +
34 + local MAX_WORKDIR=66
35 + if [[ "${#WORKDIR}" -gt "${MAX_WORKDIR}" ]]; then
36 + ewarn "Disabling tests as WORKDIR '${WORKDIR}' is longer than ${MAX_WORKDIR} which will fail tests"
37 + SKIP_TESTS=1
38 + fi
39 }
40
41 src_prepare() {
42 @@ -76,6 +75,7 @@ src_configure() {
43 fi
44
45 econf \
46 + $([[ -n "${SKIP_TESTS}" ]] && echo "--disable-gpg-test --disable-gpgsm-test") \
47 --enable-languages="${languages[*]}" \
48 $(use_enable static-libs static)
49
50 @@ -90,6 +90,8 @@ src_compile() {
51 }
52
53 src_test() {
54 + [[ -z "${SKIP_TESTS}" ]] || return
55 +
56 default
57 if use python; then
58 test_python() {