Skip to content

Commit

Permalink
app-crypt/gpgme: fail pretend if workdir is too long
Browse files Browse the repository at this point in the history
Bug: https://bugs.gentoo.org/643696
Package-Manager: Portage-2.3.13, Repoman-2.3.3
  • Loading branch information
alonbl committed Jan 6, 2018
1 parent 33b323a commit 667661e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions app-crypt/gpgme/gpgme-1.10.0.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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" )
Expand Down

0 comments on commit 667661e

Please sign in to comment.