Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Aug 2010 10:56:10 -0700
From:      Jeremy Chadwick <freebsd@jdc.parodius.com>
To:        "Julian H. Stacey" <jhs@berklix.com>
Cc:        ports@freebsd.org, FreeBSD-gnats-submit@freebsd.org
Subject:   Re: current ports Mk make fetch calls wget fails to support schemes
Message-ID:  <20100831175610.GA76534@icarus.home.lan>
In-Reply-To: <201008311739.o7VHdWDY048477@fire.js.berklix.net>
References:  <201008311739.o7VHdWDY048477@fire.js.berklix.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Aug 31, 2010 at 07:39:32PM +0200, Julian H. Stacey wrote:
> >Submitter-Id:	current-users
> >Originator:	Julian H. Stacey
> >Organization:	http://berklix.com BSD Linux Unix Consultancy, Munich/Muenchen.
> >Confidential:	no 
> >Synopsis:	current ports Mk make fetch calls wget fails to support schemes
> >Severity:	serious 
> >Priority:	high 
> >Category:	ports
> >Class:		sw-bug
> >Release:	current
> >Environment:
> System: FreeBSD fire.js.berklix.net 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Mon Jul 12 00:59:43 CEST 2010 jhs@fire.js.berklix.net:/usr1/src/sys/amd64/compile/FIRE64.small amd64
> 
> 
> 	
> >Description:
> 
> Using a base of 8.0-RELEASE & 
> cd /pri/FreeBSD/branches/-current/ports
> setenv PORTSDIR `/bin/pwd`
> cd sysutils/tarsnap
> make fetch
> 
> Mk/ has regressed in current & now fails to fetch URLS of type 
> 	file:///usr/bla/
> 	/usr/bla/
> with error:
> 	/usr/home/jhs/tmp/tarsnap-autoconf-1.0.27.tgz: Unsupported scheme.
> 	file:///host/gate/usr/home/jhs/tmp/tarsnap-autoconf-1.0.27.tgz: \
> 		 Unsupported scheme.
> 
> >From make.conf fragment:
> 	DIS_LOCAL+= /usr/home/jhs/tmp/distfiles/
> 	DIS_LOCAL+= file:///usr/home/jhs/tmp/distfiles/
> 	MASTER_SITE_OVERRIDE= ${DIS_LOCAL}
> 
> make fetch used to call src/ BSD licensed fetch
> it now calls FSF GNU licensed wget,
> You can see why it fails with 
> 	cd sysutils/tarsnap ; make fetch-list
> 
> Even after one has found where 
> 	Unsupported scheme
> comes from & tried to work round it with make.conf assertion of
> 	FETCH_BINARY=/usr/bin/fetch
> as shown in bsd.port.mk
> /usr/src/usr.bin/fetch is still not used.
> 
> 	
> >How-To-Repeat:
> 	See above
> 	
> >Fix:
> 
> 	Revert Mk invocation back to longer invoke FSF/GNU licensed
> 	wget & instead again invoke BSD licensed src/ provided fetch,
> 	until such time as wget might be capable of offering all
> 	schemes BSD fetch already does.

Hmm... Can't reproduce it here, but this is now the 2nd report of this
problem to hit -ports.

# uname -a
FreeBSD icarus.home.lan 8.1-STABLE FreeBSD 8.1-STABLE #0: Mon Aug  2 07:35:23 PDT 2010     root@icarus.home.lan:/usr/obj/usr/src/sys/X7SBA_RELENG_8_amd64  amd64
# cd /usr/ports/sysutils/tarsnap
# make fetch
===>  License check disabled, port has not defined LICENSE
===>   tarsnap-1.0.27 depends on file: /usr/local/bin/wget - found
=> tarsnap-autoconf-1.0.27.tgz doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch from https://www.tarsnap.com/download/.
--2010-08-31 10:54:32--  https://www.tarsnap.com/download/tarsnap-autoconf-1.0.27.tgz
Resolving www.tarsnap.com... 208.79.82.75
Connecting to www.tarsnap.com|208.79.82.75|:443... connected.
WARNING: cannot verify www.tarsnap.com's certificate, issued by `/C=US/ST=Arizona/L=Scottsdale/O=GoDaddy.com, Inc./OU=http://certificates.godaddy.com/repository/CN=Go Daddy Secure Certification Authority/serialNumber=07969287':
  Self-signed certificate encountered.
HTTP request sent, awaiting response... 200 OK
Length: 587420 (574K) [application/x-gzip]
Saving to: `tarsnap-autoconf-1.0.27.tgz'

100%[==========================================================================================>] 587,420      596K/s   in 1.0s

2010-08-31 10:54:34 (596 KB/s) - `tarsnap-autoconf-1.0.27.tgz' saved [587420/587420]

# grep -ri wget /usr/ports/Mk
#

My ports tree was last updated a couple hours ago.

I can confirm that GNU wget doesn't support the file:/// URI and does
return "unsupported scheme".

-- 
| Jeremy Chadwick                                   jdc@parodius.com |
| Parodius Networking                       http://www.parodius.com/ |
| UNIX Systems Administrator                  Mountain View, CA, USA |
| Making life hard for others since 1977.              PGP: 4BD6C0CB |




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100831175610.GA76534>