From nobody@FreeBSD.org  Tue Jun  6 12:54:49 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id D139B16B13B
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  6 Jun 2006 12:54:49 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 9353C43D49
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  6 Jun 2006 12:54:49 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k56Csn5g003527
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 6 Jun 2006 12:54:49 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k56Csn1v003524;
	Tue, 6 Jun 2006 12:54:49 GMT
	(envelope-from nobody)
Message-Id: <200606061254.k56Csn1v003524@www.freebsd.org>
Date: Tue, 6 Jun 2006 12:54:49 GMT
From: Geoff Buckingham <geoff.buckingham@reuters.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: portsnap fails through proxy
X-Send-Pr-Version: www-2.3

>Number:         98593
>Category:       bin
>Synopsis:       portsnap fails through proxy
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    cperciva
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 06 13:00:45 GMT 2006
>Closed-Date:    Fri Jun 09 10:32:24 GMT 2006
>Last-Modified:  Tue Jun  5 17:00:11 GMT 2007
>Originator:     Geoff Buckingham
>Release:        6.1
>Organization:
Reuters
>Environment:
FreeBSD k11-dl380g3.si.reuters.com 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Thu May 25 08:46:33 BST 2006     root@k11-dl380g3.si.reuters.com:/usr/obj/usr/src/sys/SMP  i386

>Description:
portsnap fetch fails as shown. I suspect this relates to our virus-scanning proxy which required DISABLE_SIZE=YES to be added to make.conf to prevent false corruption reports in port builds.

k11-dl380g3# portsnap fetch
Looking up portsnap.FreeBSD.org mirrors... none found.
Fetching public key... done.
Fetching snapshot tag... done.
Fetching snapshot metadata... done.
Fetching snapshot generated at Tue Jun  6 01:07:42 BST 2006:
4854fbff51a69006799458faafceeb5ef00dda5fcb04fa100% of   41 MB  116 kBps 00m00s
Extracting snapshot... done.
Verifying snapshot integrity... done.
Fetching snapshot tag... done.
Fetching snapshot metadata... done.
Updating from Tue Jun  6 01:07:42 BST 2006 to Tue Jun  6 12:11:45 BST 2006.
Fetching 4 metadata patches. done.
Applying metadata patches... done.
Fetching 4 metadata files... /usr/sbin/portsnap: cannot open 92cd3cc4ec8edcb1bffce5ce384ce493e6c505e8453a80b1ae2eae07a9bc1974.gz: No such file or directory
metadata is corrupt.


k11-dl380g3# env
USER=root
LOGNAME=root
HOME=/root
MAIL=/var/mail/root
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/root/bin
TERM=xterm
BLOCKSIZE=K
FTP_PASSIVE_MODE=YES
SHELL=/bin/csh
SSH_TTY=/dev/ttyp1
HOSTTYPE=FreeBSD
VENDOR=intel
OSTYPE=FreeBSD
MACHTYPE=i386
SHLVL=1
PWD=/usr/ports/sysutils/gpart
GROUP=wheel
HOST=k11-dl380g3.si.reuters.com
REMOTEHOST=x.x.x.x
http_proxy=x.x.x.x:80
EDITOR=vi
PAGER=more

k11-dl380g3# more /etc/make.conf
DISABLE_SIZE=YES

>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->cperciva 
Responsible-Changed-By: itetcu 
Responsible-Changed-When: Tue Jun 6 13:09:55 UTC 2006 
Responsible-Changed-Why:  
portsnap is Colin's 

http://www.freebsd.org/cgi/query-pr.cgi?pr=98593 
State-Changed-From-To: open->closed 
State-Changed-By: cperciva 
State-Changed-When: Fri Jun 9 10:29:55 UTC 2006 
State-Changed-Why:  
The version of portsnap in FreeBSD 6.1-RELEASE only accepts "HTTP_PROXY" 
as an environment variable to indicate a proxy to use, not "http_proxy". 
This was fixed in HEAD five weeks ago and MFCed two weeks ago -- until 
FreeBSD 6.2 is released, I recommend setting the upper-case version of 
the environment variable. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=98593 

From: "Andrew Pantyukhin" <infofarmer@FreeBSD.org>
To: bug-followup@FreeBSD.org, geoff.buckingham@reuters.com, 
	"Colin Percival" <cperciva@FreeBSD.org>
Cc:  
Subject: Re: bin/98593: portsnap fails through proxy
Date: Thu, 24 Aug 2006 16:09:01 +0400

 I get similar errors from time to time when portsnap is
 working through a transparent proxy (squid 2.5/2.6,
 forwarding via pf/ipfw/wccp2). I get around it by simply
 rerunning portsnap (2-3 times are sufficient in most
 cases), but it sure annoys me because I need to
 invent some elaborate scripts to automate it.

From: George Donnelly <me@georgedonnelly.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/98593: portsnap fails through proxy
Date: Mon, 21 May 2007 12:04:34 -0500

 still seeing this with freebsd 6.2-p3, default portnsap, squid 2.6.
 
 
 George Donnelly
 

From: Dylan Alex Simon <dylan@dylex.net>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: bin/98593: portsnap fails through proxy
Date: Tue, 5 Jun 2007 12:25:42 -0400

 I'm seeing this as well on both 6.1 and 6.2 going through a corporate
 transparent firewall (don't know the details).  I have to rerun portsnap for
 every two new patches or files (e.g., 25 times if there are 50 patches).
>Unformatted:
