From mkb@luzifer.incubus.de  Mon Jan 15 11:24:10 2007
Return-Path: <mkb@luzifer.incubus.de>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id A198016A416
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 15 Jan 2007 11:24:10 +0000 (UTC)
	(envelope-from mkb@luzifer.incubus.de)
Received: from luzifer.incubus.de (incubus.de [80.237.207.83])
	by mx1.freebsd.org (Postfix) with ESMTP id 6FE2C13C457
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 15 Jan 2007 11:24:08 +0000 (UTC)
	(envelope-from mkb@luzifer.incubus.de)
Received: by luzifer.incubus.de (Postfix, from userid 1002)
	id 1084735E77; Mon, 15 Jan 2007 11:54:53 +0100 (CET)
Message-Id: <20070115105453.1084735E77@luzifer.incubus.de>
Date: Mon, 15 Jan 2007 11:54:53 +0100 (CET)
From: Matthias Buelow <mkb@incubus.de>
Reply-To: Matthias Buelow <mkb@incubus.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: pass fetch(1)-specific options to FETCH_CMD
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         107948
>Category:       ports
>Synopsis:       pass fetch(1)-specific options to FETCH_CMD
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    portmgr
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 15 11:30:18 GMT 2007
>Closed-Date:    Wed Mar 14 03:48:58 GMT 2007
>Last-Modified:  Wed Mar 14 03:48:58 GMT 2007
>Originator:     Matthias Buelow
>Release:        FreeBSD 5.5-STABLE i386
>Organization:
Haters of Ports
>Environment:
System: FreeBSD none-of-your-business FreeBSD 5.5-STABLE #3: Tue Oct 31 06:51:02 CET 2006 ... i386


	
>Description:

	The fetch(1) command is using passive ftp by default, which doesn't
	seem to work with all ftp servers (for example, ftp.xemacs.org).
	The ports system is using an env variable FETCH_CMD to allow one
	to specify the command being used to fetch files (for example,
	wget --no-passive-ftp).
	However, in its inane design brokenness, ports passes fetch(1)-
	specific options to FETCH_CMD (-S ...), which makes the direct
	use of wget or ftp impossible. The mechanism should be fixed to
	allow for specifying other downloading commands.

>How-To-Repeat:
>Fix:
	A workaround is to use a small script as FETCH_CMD, which filters
	out unwanted options, like: wget ... $(echo $@|sed 's/-S *[0-9]*//')

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->portmgr 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Mon Jan 15 21:16:49 UTC 2007 
Responsible-Changed-Why:  
bsd.port.mk is port manager territory 

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

From: Pav Lucistnik <pav@FreeBSD.org>
To: bug-followup@FreeBSD.org, mkb@incubus.de
Cc:  
Subject: Re: ports/107948: pass fetch(1)-specific options to FETCH_CMD
Date: Mon, 15 Jan 2007 22:59:32 +0100

 Few notes:
 
 - what wget gives you fetch can't?
 - you can disable passive mode in fetch, place 
 
   FETCH_CMD=/usr/bin/fetch -ARr
 
   into your /etc/make.conf, that's the supported way of doing that
 - ftp.xemacs.org works for me in active mode
 
 -- 
 Pav Lucistnik <pav@oook.cz>
               <pav@FreeBSD.org>
 
 Alignment: Neutral Greedy

From: "Matthias Buelow" <mkb@incubus.de>
To: pav@freebsd.org
Cc: bug-followup@freebsd.org
Subject: Re: ports/107948: pass fetch(1)-specific options to FETCH_CMD
Date: Tue, 16 Jan 2007 06:26:27 +0100

 On Mon, 15 Jan 2007 22:59:32 +0100, Pav Lucistnik <pav@FreeBSD.org> wrot=
 e:
 
 > - you can disable passive mode in fetch, place
 >   FETCH_CMD=3D/usr/bin/fetch -ARr
 
 Aha.. there's nothing in the manpage that indicates that this disables
 passive mode...
 
 > - ftp.xemacs.org works for me in active mode
 
 Well, good for you, here it doesn't. It's a 5.5 system, maybe you're  =
 
 running
 6.x and there it works better?
 
 The problem of ports depending on fetch is independent of the particular=
 
 issue presented above. It should be allowed to use any downloading comma=
 nd,
 without having to filter out fetch-specific options.

From: "Matthias Buelow" <mkb@incubus.de>
To: "Matthias Buelow" <mkb@incubus.de>, pav@freebsd.org
Cc: bug-followup@freebsd.org
Subject: Re: ports/107948: pass fetch(1)-specific options to FETCH_CMD
Date: Tue, 16 Jan 2007 06:29:04 +0100

 On Tue, 16 Jan 2007 06:26:27 +0100, Matthias Buelow <mkb@incubus.de> wrote:
 
 
 >> - ftp.xemacs.org works for me in active mode
 >
 > Well, good for you, here it doesn't. It's a 5.5 system, maybe you're  
 > running
 > 6.x and there it works better?
 
 Correction. It does work in _active_ mode here, but not in _passive_.
 That was the problem. I wanted to disable passive mode, which fetch
 seems to use unconditionally.

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/107948: commit references a PR
Date: Tue, 16 Jan 2007 09:03:21 +0000 (UTC)

 pav         2007-01-16 09:03:14 UTC
 
   FreeBSD ports repository
 
   Modified files:
     Mk                   bsd.sites.mk 
   Log:
   - Remove ftp.xemacs.org which is so broken it does not work at all in passive
     mode (our fetch default)
   
   PR:             ports/107948
   
   Revision  Changes    Path
   1.408     +1 -2      ports/Mk/bsd.sites.mk
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 

From: Pav Lucistnik <pav@FreeBSD.org>
To: Matthias Buelow <mkb@incubus.de>
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/107948: pass fetch(1)-specific options to FETCH_CMD
Date: Tue, 16 Jan 2007 09:59:03 +0100

 > >> - ftp.xemacs.org works for me in active mode
 > >
 > > Well, good for you, here it doesn't. It's a 5.5 system, maybe you're  
 > > running
 > > 6.x and there it works better?
 > 
 > Correction. It does work in _active_ mode here, but not in _passive_.
 > That was the problem. I wanted to disable passive mode, which fetch
 > seems to use unconditionally.
 
 Right, does not work in passive from here either. I'd say it's very
 broken site. Should be removed from any ports.
 
 -- 
 Pav Lucistnik <pav@oook.cz>
               <pav@FreeBSD.org>
 
 Video games don't affect kids, I mean if Pac Man affected us as kids, we'd all
 run around in a darkened room munching pills and listening to repetitive music.
   -- Kristian Wilson, CEO at Nintendo Gaming Corporation Inc

From: Pav Lucistnik <pav@FreeBSD.org>
To: Matthias Buelow <mkb@incubus.de>
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/107948: pass fetch(1)-specific options to FETCH_CMD
Date: Tue, 16 Jan 2007 09:57:43 +0100

 > > - you can disable passive mode in fetch, place
 > >   FETCH_CMD=/usr/bin/fetch -ARr
 > 
 > Aha.. there's nothing in the manpage that indicates that this disables
 > passive mode...
 
 It is documented, man page have:
 
      -p          Use passive FTP.  This is useful if you are behind a firewall
                  which blocks incoming connections.  Try this flag if fetch
                  seems to hang when retrieving FTP URLs.
 
 so the solution is to remove -p from the default FETCH_CMD value.
 
 > The problem of ports depending on fetch is independent of the particular
 > issue presented above. It should be allowed to use any downloading command,
 > without having to filter out fetch-specific options.
 
 Fetch works well, this is a low priority task.
 
 -- 
 Pav Lucistnik <pav@oook.cz>
               <pav@FreeBSD.org>
 
 No one expects the spanish inquisition.
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Wed Mar 14 03:48:11 UTC 2007 
State-Changed-Why:  
A patch is available in ports/109966. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=107948 
>Unformatted:
