From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Jun 24 12:27:39 2014 Return-Path: Delivered-To: freebsd-ports-bugs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9C759453; Tue, 24 Jun 2014 12:27:39 +0000 (UTC) Received: from smtp-out.sentor.se (smtp-out.sentor.se [176.124.225.2]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 617C72342; Tue, 24 Jun 2014 12:27:38 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by farmermaggot.shire.sentor.se (Postfix) with ESMTP id 78DFAB61D412; Tue, 24 Jun 2014 14:27:35 +0200 (CEST) Date: Tue, 24 Jun 2014 14:27:35 +0200 (CEST) From: elof2@sentor.se Subject: Re: Bug in poudriere: can't download via proxy In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-ports-bugs@freebsd.org, bdrewery@FreeBSD.org X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Jun 2014 12:27:39 -0000 Doh! I didn't see that you have to add "export" in front of the variables in poudriere.conf. It's working now. /Elof On Mon, 23 Jun 2014, elof2@sentor.se wrote: > > I run 'poudriere ports -c' to download and create a new ports tree. > Instead of using my specified HTTP_PROXY, poudriere (via portsnap via fetch) > tries to access the internet directly. This is prohibited by my firewall, a > web proxy must be used. > > After some debugging I see that when the script > /usr/local/share/poudriere/ports.sh executes the command '/usr/sbin/portsnap > -d ${PTMNT}/.snap -p ${PTMNT} fetch extract' (on line 165), this command is > executed with the following environment: > > PATH=/usr/local/share/poudriere/../../libexec/poudriere:/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin:/sbin:/usr/sbin > PWD=/root > POUDRIERE_VERSION=3.0.16 > > Nothing more! The environment consist only of these three variables. > Therefore portsnap will try to download the portstree without using any > proxy. > > > > I think poudriere should pass along the exported HTTP_PROXY variable or set > it according to poudriere.conf, if unset. > > Right now neither the exported variable nor the one I set in poudriere.conf > make it to the execution of portsnap. ...and neither portsnap nor fetch can > be configured to use a proxy, so the environment variable seem to be the only > way. > > > By modifying line 165 to 'HTTP_PROXY="http://10.10.10.10:3128" > /usr/sbin/portsnap -d ${PTMNT}/.snap -p ${PTMNT} fetch extract', the ports > tree will download just fine. > > System: > FreeBSD 9.1 -p15 amd64 > > /Elof >