From owner-freebsd-stable@FreeBSD.ORG Tue Nov 27 09:36:47 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9D796BE8 for ; Tue, 27 Nov 2012 09:36:47 +0000 (UTC) (envelope-from lars@e-new.0x20.net) Received: from mail.0x20.net (mail.0x20.net [IPv6:2001:aa8:fffb:1::3]) by mx1.freebsd.org (Postfix) with ESMTP id 26C718FC08 for ; Tue, 27 Nov 2012 09:36:44 +0000 (UTC) Received: from e-new.0x20.net (mail.0x20.net [IPv6:2001:aa8:fffb:1::3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.0x20.net (Postfix) with ESMTPS id 37C326A6004; Tue, 27 Nov 2012 10:36:43 +0100 (CET) Received: from e-new.0x20.net (localhost [127.0.0.1]) by e-new.0x20.net (8.14.5/8.14.5) with ESMTP id qAR9agNo019755; Tue, 27 Nov 2012 10:36:42 +0100 (CET) (envelope-from lars@e-new.0x20.net) Received: (from lars@localhost) by e-new.0x20.net (8.14.5/8.14.5/Submit) id qAR9agx8019447; Tue, 27 Nov 2012 10:36:42 +0100 (CET) (envelope-from lars) Date: Tue, 27 Nov 2012 10:36:42 +0100 From: Lars Engels To: Alexander Yerenkow Subject: Re: simple patch for portsnap to use wget Message-ID: <20121127093642.GD96846@e-new.0x20.net> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="4X8KWh4JEk7YXJIe" Content-Disposition: inline In-Reply-To: X-Editor: VIM - Vi IMproved 7.3 X-Operation-System: FreeBSD 8.3-RELEASE-p4 User-Agent: Mutt/1.5.21 (2010-09-15) Cc: cpervica@freebsd.org, freebsd-stable@freebsd.org, Luca Ferrari X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Nov 2012 09:36:47 -0000 --4X8KWh4JEk7YXJIe Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Nov 27, 2012 at 10:22:09AM +0200, Alexander Yerenkow wrote: > Do you aware that if wget tries download from https, and there is > self-signed certificate, then it fails, and ask for --no-check-certificate > option? > How do your patch deal in that case? >=20 > 2012/11/27 Luca Ferrari >=20 > > Hi all, > > I was in trouble for a while because I was using FreeBSD behind an > > http proxy (a palo alto for what it means) and the portsnap command > > was unable to handle updates reporting always "file does not exist". > > After digging I found that the problem was in the phttpget command > > used internally from portsnap: phttpget is not able to handle an > > http_proxy variable in the form of http://user:password@proxy:port > > since the first colon is understood as a port separator and therefore > > phttpget tries to connect to the host "user" on port > > "password@proxy:port". Since I did not found much documentation about > > how to solve the problem, and nobody on the forum was able to point me > > in any direction (see > > http://forums.freebsd.org/showthread.php?t=3D28849) I wrote a simple > > patch to modify portsnap to use wget instead of phttpget. > > Of course, this means you have to install wget first, and also the > > laminating of the files to download has slightly changed within > > portsnap, but I'm using it from several days and updates now and it > > seems to work well. > > Now the question is: should this patch, or better the idea of using > > wget or another alike substitute to phttpget, be integrated into the > > system? > > I've tested it on FreeBSD-9-STABLE. > > This should really be fixed in portsnap / phttpget itself. (cpervica CC'ed). wget is not part of the base system. --4X8KWh4JEk7YXJIe Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlC0iaoACgkQKc512sD3afh27wCfcR5V06n5k/O9iti3L8HGXQV1 BHkAoII9fhuSYgzrq2li3e6g0HqruLbQ =dICs -----END PGP SIGNATURE----- --4X8KWh4JEk7YXJIe--