ports/144955: Mk/bsd.sites.mk: PyPI mirror URLs are given incorrectly (missing trailing slashes)

Keith Gaughan k at stereochro.me
Mon Mar 22 13:40:04 UTC 2010


>Number:         144955
>Category:       ports
>Synopsis:       Mk/bsd.sites.mk: PyPI mirror URLs are given incorrectly (missing trailing slashes)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 22 13:40:03 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Keith Gaughan
>Release:        7.1
>Organization:
>Environment:
FreeBSD lir 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Thu Jan  1 14:37:25 UTC 2009     root at logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
I noticed the problem when I was working on a patch to update devel/py-gevent from 0.12.0 to 0.12.2. Essentially, while the URL for fetching from the primary PyPI site is fine, the URLs for fetching from the PyPI mirrors are incorrect. For instance, http://pypi.zopyx.com/geventgevent-0.12.0.tar.gz should be http://pypi.zopyx.com/gevent/gevent-0.12.0.tar.gz
>How-To-Repeat:
Run "make fetch-recursive-list" on any Python library port listed in PyPI. devel/py-gevent is a good example, if you don't have it installed.
>Fix:
Patch for Mk/bsd.sites.mk supplied.

Patch attached with submission follows:

--- bsd.sites.mk	2010-03-22 12:58:20.000000000 +0000
+++ bsd.sites.mk	2010-03-22 12:58:43.000000000 +0000
@@ -128,13 +128,13 @@
 .if !defined(IGNORE_MASTER_SITE_CHEESESHOP)
 MASTER_SITE_CHEESESHOP+=	\
 	http://pypi.python.org/packages/%SUBDIR%/ \
-	http://pypi.d9t.de/${DISTNAME:S/${DISTVERSION}//:S/-//} \
-	http://pypi.inqbus.de/${DISTNAME:S/${DISTVERSION}//:S/-//} \
-	http://pypi.it.uwosh.edu/${DISTNAME:S/${DISTVERSION}//:S/-//} \
-	http://pypi.netsight.co.uk/${DISTNAME:S/${DISTVERSION}//:S/-//} \
-	http://pypi.python.jp/${DISTNAME:S/${DISTVERSION}//:S/-//} \
-	http://pypi.websushi.org/${DISTNAME:S/${DISTVERSION}//:S/-//} \
-	http://pypi.zopyx.com/${DISTNAME:S/${DISTVERSION}//:S/-//}
+	http://pypi.d9t.de/${DISTNAME:S/${DISTVERSION}//:S/-//}/ \
+	http://pypi.inqbus.de/${DISTNAME:S/${DISTVERSION}//:S/-//}/ \
+	http://pypi.it.uwosh.edu/${DISTNAME:S/${DISTVERSION}//:S/-//}/ \
+	http://pypi.netsight.co.uk/${DISTNAME:S/${DISTVERSION}//:S/-//}/ \
+	http://pypi.python.jp/${DISTNAME:S/${DISTVERSION}//:S/-//}/ \
+	http://pypi.websushi.org/${DISTNAME:S/${DISTVERSION}//:S/-//}/ \
+	http://pypi.zopyx.com/${DISTNAME:S/${DISTVERSION}//:S/-//}/
 .endif
 
 .if !defined(IGNORE_MASTER_SITE_COMP_SOURCES)


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list