From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1SdZKh-00025k-6P for garchives@archives.gentoo.org; Sun, 10 Jun 2012 04:00:55 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2D746E039A; Sun, 10 Jun 2012 04:00:42 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id EB68EE039A for ; Sun, 10 Jun 2012 04:00:36 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 29DD61B4084 for ; Sun, 10 Jun 2012 04:00:36 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id E4476E542E for ; Sun, 10 Jun 2012 04:00:33 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1339300052.1c8ed2a8669f4375f965c78ed37588b87cf534b1.vapier@gentoo> Subject: [gentoo-commits] proj/gcc-config:master commit in: / X-VCS-Repository: proj/gcc-config X-VCS-Files: wrapper.c X-VCS-Directories: / X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: 1c8ed2a8669f4375f965c78ed37588b87cf534b1 X-VCS-Branch: master Date: Sun, 10 Jun 2012 04:00:33 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 8bf15879-372a-4b3e-bdb3-59edee995873 X-Archives-Hash: 66d5be11e41bdbb28d0ebdf722d2face commit: 1c8ed2a8669f4375f965c78ed37588b87cf534b1 Author: Mike Frysinger gentoo org> AuthorDate: Sun Jun 10 03:47:32 2012 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Sun Jun 10 03:47:32 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/gcc-config.gi= t;a=3Dcommit;h=3D1c8ed2a8 wrapper: remove ROOT from env when looking up bin path When falling back to running gcc-config to find out the path to the real binary, make sure to clear out $ROOT. Otherwise gcc-config will try to look in $ROOT for its config files when really we're trying to execute programs in /. Signed-off-by: Mike Frysinger gentoo.org> --- wrapper.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/wrapper.c b/wrapper.c index a2e7a92..65e5317 100644 --- a/wrapper.c +++ b/wrapper.c @@ -213,7 +213,7 @@ static void find_wrapper_target(struct wrapper_data *= data) /* Only our wrapper is in PATH, so get the CC path using * gcc-config and execute the real binary in there ... */ - FILE *inpipe =3D popen(GCC_CONFIG " --get-bin-path", "r"); + FILE *inpipe =3D popen("ROOT=3D " GCC_CONFIG " --get-bin-path", "r"); if (inpipe =3D=3D NULL) wrapper_errp("could not open pipe"); =20