From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1021601-garchives=archives.gentoo.org@lists.gentoo.org> 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 A7ABE1382C5 for <garchives@archives.gentoo.org>; Tue, 1 May 2018 16:26:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C1F0BE09CA; Tue, 1 May 2018 16:26:02 +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 9A38DE09C9 for <gentoo-commits@lists.gentoo.org>; Tue, 1 May 2018 16:26:02 +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 C0B7D335C94 for <gentoo-commits@lists.gentoo.org>; Tue, 1 May 2018 16:26:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 068992A6 for <gentoo-commits@lists.gentoo.org>; Tue, 1 May 2018 16:26:00 +0000 (UTC) From: "Zac Medico" <zmedico@gentoo.org> 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" <zmedico@gentoo.org> Message-ID: <1525163323.d51ca86a44fd10b13db749a7945bba1573b76ff5.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: bin/ X-VCS-Repository: proj/portage X-VCS-Files: bin/eapi.sh bin/phase-helpers.sh X-VCS-Directories: bin/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: d51ca86a44fd10b13db749a7945bba1573b76ff5 X-VCS-Branch: master Date: Tue, 1 May 2018 16:26:00 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 4a059844-86c5-4800-be5e-e6850dac6bea X-Archives-Hash: f0b5a6acb8852739111469bb78bcd33d commit: d51ca86a44fd10b13db749a7945bba1573b76ff5 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> AuthorDate: Thu Sep 28 22:11:17 2017 +0000 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> CommitDate: Tue May 1 08:28:43 2018 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=d51ca86a econf: Pass --with-sysroot="${ESYSROOT:-/}" under EAPI 7 Bug: https://bugs.gentoo.org/317337 bin/eapi.sh | 4 ++++ bin/phase-helpers.sh | 8 +++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/bin/eapi.sh b/bin/eapi.sh index 3f4c9691b..3b6a5c1a9 100644 --- a/bin/eapi.sh +++ b/bin/eapi.sh @@ -178,6 +178,10 @@ ___eapi_econf_passes_--docdir_and_--htmldir() { [[ ! ${1-${EAPI-0}} =~ ^(0|1|2|3|4|4-python|4-slot-abi|5|5-hdepend|5-progress)$ ]] } +___eapi_econf_passes_--with-sysroot() { + [[ ! ${1-${EAPI-0}} =~ ^(0|1|2|3|4|4-python|4-slot-abi|5|5-progress|6)$ ]] +} + ___eapi_use_enable_and_use_with_support_empty_third_argument() { [[ ! ${1-${EAPI-0}} =~ ^(0|1|2|3)$ ]] } diff --git a/bin/phase-helpers.sh b/bin/phase-helpers.sh index 556d089b5..f6c9ef6fc 100644 --- a/bin/phase-helpers.sh +++ b/bin/phase-helpers.sh @@ -640,7 +640,7 @@ econf() { fi local conf_args=() - if ___eapi_econf_passes_--disable-dependency-tracking || ___eapi_econf_passes_--disable-silent-rules || ___eapi_econf_passes_--docdir_and_--htmldir; then + if ___eapi_econf_passes_--disable-dependency-tracking || ___eapi_econf_passes_--disable-silent-rules || ___eapi_econf_passes_--docdir_and_--htmldir || ___eapi_econf_passes_--with-sysroot; then local conf_help=$("${ECONF_SOURCE}/configure" --help 2>/dev/null) if ___eapi_econf_passes_--disable-dependency-tracking; then @@ -664,6 +664,12 @@ econf() { conf_args+=( --htmldir="${EPREFIX}"/usr/share/doc/${PF}/html ) fi fi + + if ___eapi_econf_passes_--with-sysroot; then + if [[ ${conf_help} == *--with-sysroot* ]]; then + conf_args+=( --with-sysroot="${ESYSROOT:-/}" ) + fi + fi fi # if the profile defines a location to install libs to aside from default, pass it on.