diff options
author | Alon Bar-Lev <alonbl@gentoo.org> | 2018-01-06 22:44:52 +0200 |
---|---|---|
committer | Alon Bar-Lev <alonbl@gentoo.org> | 2018-01-06 22:46:45 +0200 |
commit | 667661ef848cdf373d55784a00158c630135fedb (patch) | |
tree | 12e987e685e0091565278498266a60c57466e0c2 /app-crypt | |
parent | sci-chemistry/gperiodic: Test LINGUAS rather than linguas_* USE flags. (diff) | |
download | gentoo-667661ef848cdf373d55784a00158c630135fedb.tar.gz gentoo-667661ef848cdf373d55784a00158c630135fedb.tar.bz2 gentoo-667661ef848cdf373d55784a00158c630135fedb.zip |
app-crypt/gpgme: fail pretend if workdir is too long
Bug: https://bugs.gentoo.org/643696
Package-Manager: Portage-2.3.13, Repoman-2.3.3
Diffstat (limited to 'app-crypt')
-rw-r--r-- | app-crypt/gpgme/gpgme-1.10.0.ebuild | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/app-crypt/gpgme/gpgme-1.10.0.ebuild b/app-crypt/gpgme/gpgme-1.10.0.ebuild index 34e7e743665a..81ca9ecddb2f 100644 --- a/app-crypt/gpgme/gpgme-1.10.0.ebuild +++ b/app-crypt/gpgme/gpgme-1.10.0.ebuild @@ -44,10 +44,26 @@ do_python() { fi } +pkg_pretend() { + local MAX_WORKDIR=66 + + [[ "${#WORKDIR}" -le "${MAX_WORKDIR}" ]] || + die "Cannot build package as WORKDIR '${WORKDIR}' is longer than ${MAX_WORKDIR} which will fail build" +} + pkg_setup() { addpredict /run/user/$(id -u)/gnupg } +src_prepare() { + default + + # Make best effort to allow longer PORTAGE_TMPDIR + # as usock limitation fails build/tests + ln -s "${P}" "${WORKDIR}/b" + S="${WORKDIR}/b" +} + src_configure() { local languages=() use common-lisp && languages+=( "cl" ) |