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 DDEEE1382C5 for ; Tue, 1 May 2018 16:26:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 914B8E09CE; Tue, 1 May 2018 16:26:04 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 6FB4EE09CE for ; Tue, 1 May 2018 16:26:04 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 7545E335C92 for ; Tue, 1 May 2018 16:26:03 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 40ECE2A9 for ; Tue, 1 May 2018 16:26:00 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <1525191907.716f69482ffabf1a8e0e3496942a00ee5cdfa229.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/_emerge/ X-VCS-Repository: proj/portage X-VCS-Files: pym/_emerge/main.py X-VCS-Directories: pym/_emerge/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 716f69482ffabf1a8e0e3496942a00ee5cdfa229 X-VCS-Branch: master Date: Tue, 1 May 2018 16:26:00 +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: 32bbed8f-e7b6-4f55-bad9-3367348670ed X-Archives-Hash: 74828eeb06215c3889d0c9e62461af4c commit: 716f69482ffabf1a8e0e3496942a00ee5cdfa229 Author: James Le Cuirot gentoo org> AuthorDate: Tue Apr 3 20:31:38 2018 +0000 Commit: Zac Medico gentoo org> CommitDate: Tue May 1 16:25:07 2018 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=716f6948 emerge: Add --sysroot option to set SYSROOT environment variable Closes: https://github.com/gentoo/portage/pull/276 pym/_emerge/main.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py index e1b949b92..e8b2c2e13 100644 --- a/pym/_emerge/main.py +++ b/pym/_emerge/main.py @@ -732,6 +732,11 @@ def parse_opts(tmpcmdline, silent=False): "action" : "append", }, + "--sysroot": { + "help":"specify the location for build dependencies specified in DEPEND", + "action":"store" + }, + "--use-ebuild-visibility": { "help" : "use unbuilt ebuild metadata for visibility checks on built packages", "choices" : true_y_or_n @@ -1201,6 +1206,8 @@ def emerge_main(args=None): os.environ["PORTAGE_DEBUG"] = "1" if "--config-root" in myopts: os.environ["PORTAGE_CONFIGROOT"] = myopts["--config-root"] + if "--sysroot" in myopts: + os.environ["SYSROOT"] = myopts["--sysroot"] if "--root" in myopts: os.environ["ROOT"] = myopts["--root"] if "--prefix" in myopts: