From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7A839138330 for ; Sat, 6 Jan 2018 20:47:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 91DF7E0864; Sat, 6 Jan 2018 20:47:11 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6F25DE0864 for ; Sat, 6 Jan 2018 20:47:11 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AE1E0335C36 for ; Sat, 6 Jan 2018 20:47:09 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 75A9B1A2 for ; Sat, 6 Jan 2018 20:47:08 +0000 (UTC) From: "Alon Bar-Lev" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alon Bar-Lev" Message-ID: <1515271605.667661ef848cdf373d55784a00158c630135fedb.alonbl@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/gpgme/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-crypt/gpgme/gpgme-1.10.0.ebuild X-VCS-Directories: app-crypt/gpgme/ X-VCS-Committer: alonbl X-VCS-Committer-Name: Alon Bar-Lev X-VCS-Revision: 667661ef848cdf373d55784a00158c630135fedb X-VCS-Branch: master Date: Sat, 6 Jan 2018 20:47:08 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 431aa3f3-0d8d-4bf4-94e2-08f6ab3382a2 X-Archives-Hash: e4cad326c7ccd32431170973199692e5 commit: 667661ef848cdf373d55784a00158c630135fedb Author: Alon Bar-Lev gentoo org> AuthorDate: Sat Jan 6 20:44:52 2018 +0000 Commit: Alon Bar-Lev gentoo org> CommitDate: Sat Jan 6 20:46:45 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=667661ef 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 app-crypt/gpgme/gpgme-1.10.0.ebuild | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/app-crypt/gpgme/gpgme-1.10.0.ebuild b/app-crypt/gpgme/gpgme-1.10.0.ebuild index 34e7e743665..81ca9ecddb2 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" )