From dennylin93@mx.hs.ntnu.edu.tw  Tue Nov  3 15:25:13 2009
Return-Path: <dennylin93@mx.hs.ntnu.edu.tw>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 7F38E1065670
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  3 Nov 2009 15:25:13 +0000 (UTC)
	(envelope-from dennylin93@mx.hs.ntnu.edu.tw)
Received: from mx.hs.ntnu.edu.tw (mx.hs.ntnu.edu.tw [140.131.149.2])
	by mx1.freebsd.org (Postfix) with ESMTP id 4F7988FC22
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  3 Nov 2009 15:25:13 +0000 (UTC)
Received: by mx.hs.ntnu.edu.tw (Postfix, from userid 1002)
	id 813DE6FC443; Tue,  3 Nov 2009 23:05:49 +0800 (CST)
Message-Id: <20091103150549.813DE6FC443@mx.hs.ntnu.edu.tw>
Date: Tue,  3 Nov 2009 23:05:49 +0800 (CST)
From: Denny Lin <dennylin93@cnmc32.hs.ntnu.edu.tw>
Reply-To: Denny Lin <dennylin93@cnmc32.hs.ntnu.edu.tw>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [PATCH] Unable to fetch distfiles of archivers/unzip
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         140249
>Category:       ports
>Synopsis:       [PATCH] Unable to fetch distfiles of archivers/unzip
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    ache
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 03 15:30:03 UTC 2009
>Closed-Date:    Fri Nov 06 05:56:11 UTC 2009
>Last-Modified:  Fri Nov 06 05:56:11 UTC 2009
>Originator:     Denny Lin
>Release:        FreeBSD 7.2-RELEASE-p4 amd64
>Organization:
>Environment:
System: FreeBSD cnmc32.hs.ntnu.edu.tw 7.2-RELEASE-p4 FreeBSD 7.2-RELEASE-p4 #0: Mon Oct 26 19:41:45 CST 2009 root@cnmc32.hs.ntnu.edu.tw:/usr/obj/usr/src/sys/cnmc32 amd64


	
>Description:
Unable to fetch distfiles. MASTER_SITES seems to have a problem.
	
>How-To-Repeat:
# cd /usr/ports/archivers/unzip && make fetch
	
>Fix:
Add "\" in front of "(" and ")" (see patch).

	

--- unzip.patch begins here ---
--- archivers/unzip/Makefile.orig	2009-11-03 22:58:30.000000000 +0800
+++ archivers/unzip/Makefile	2009-11-03 22:58:37.000000000 +0800
@@ -8,7 +8,7 @@
 PORTNAME=	unzip
 PORTVERSION=	6.0
 CATEGORIES?=	archivers
-MASTER_SITES=	SF/infozip/UnZip%206.x%20(latest)/UnZip%20${PORTVERSION} \
+MASTER_SITES=	SF/infozip/UnZip%206.x%20\(latest\)/UnZip%20${PORTVERSION} \
 		SF/infozip/UnZip%205.x%20and%20earlier/5.51:unreduce
 DISTNAME=	${PORTNAME}60
 
--- unzip.patch ends here ---


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->ache 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Tue Nov 3 15:39:10 UTC 2009 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=140249 
State-Changed-From-To: open->feedback 
State-Changed-By: ache 
State-Changed-When: Wed Nov 4 12:24:43 UTC 2009 
State-Changed-Why:  
Something is wrong on your side, you should investigate (I can't reproduce it). 
I got them without any additional slashesh, moreover, () are valid URL chars. 

# make fetch 

Use INSTALL_AS_INFOUNZIP=yes to install Info Unzip as /usr/local/bin/info-unzip 

=> unzip60.tar.gz doesn't seem to exist in /usr/ports/distfiles/. 
=> Attempting to fetch from  
http://heanet.dl.sourceforge.net/project/infozip/UnZip%206.x%20(latest)/UnZip%206.0/. 
unzip60.tar.gz                                100% of 1344 kB  825 kBps 
=> unreduce_full.zip doesn't seem to exist in /usr/ports/distfiles/. 
=> Attempting to fetch from  
http://heanet.dl.sourceforge.net/project/infozip/UnZip%205.x%20and%20earlier/5.51/. 
unreduce_full.zip                             100% of 2849  B 1187 kBps 


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

From: Denny Lin <dennylin93@cnmc32.hs.ntnu.edu.tw>
To: bug-followup@FreeBSD.org, ache@FreeBSD.org
Cc:  
Subject: Re: ports/140249: [PATCH] Unable to fetch distfiles of archivers/unzip
Date: Wed, 4 Nov 2009 23:15:28 +0800

 --mYCpIKhGyMATD0i+
 Content-Type: text/plain; charset=utf-8
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 I've found the problem. The following lines are in my /etc/make.conf:
 MASTER_SITE_BACKUP?=3D \
 http://ftp.tw.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/ \
 ftp://ftp.tw.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/ \
 http://ftp2.tw.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/ \
 ftp://ftp2.tw.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/ \
 ftp://ftp4.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/ \
 ${MASTER_SITES:S/%SUBDIR%/${MASTER_SITE_SUBDIR}/}
 
 MASTER_SITE_OVERRIDE?=3D ${MASTER_SITE_BACKUP}
 
 If I comment them out, # make fetch works, but if they're uncommented,
 the blackslashes are required.
 
 --=20
 Denny Lin
 
 --mYCpIKhGyMATD0i+
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.13 (FreeBSD)
 
 iEYEARECAAYFAkrxmpAACgkQtYH0ykp1KDwwdgCfQb3EYUmTBsAU37qzLJyyn+mz
 U2YAnjgFZKx75GGG+hFCyHLWNwv7Zi+I
 =9DQH
 -----END PGP SIGNATURE-----
 
 --mYCpIKhGyMATD0i+--
State-Changed-From-To: feedback->closed 
State-Changed-By: ache 
State-Changed-When: Fri Nov 6 05:55:08 UTC 2009 
State-Changed-Why:  
Should be fixed in Makefile v1.67 

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