Bug 205619

Summary: databases/pyspatialite: Unbreak and make fetchable again
Product: Ports & Packages Reporter: Rainer Hurling <rhurlin>
Component: Individual Port(s)Assignee: Martin Wilke <miwi>
Status: Closed Overcome By Events    
Severity: Affects Some People CC: lbartoletti, miwi, rhurlin
Priority: --- Keywords: easy, needs-qa, patch
Version: LatestFlags: bugzilla: maintainer-feedback? (lbartoletti)
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch for 3.0.1-alpha-0 to unbreak and make fetchable none

Description Rainer Hurling freebsd_committer freebsd_triage 2015-12-26 09:11:00 UTC
Created attachment 164658 [details]
patch for 3.0.1-alpha-0 to unbreak and make fetchable

For some days now, databases/spatialite is marked BROKEN, because it is not able to fetch the distfile any more. 


Looking for the reason, I found, that there is a small variation between, what Mk/bsd.sites.mk wants and what the original website[1] has.

With the definition of the MASTERSITE from Mk/bsd.sites.mk via CHEESESHOP, the port wants to fetch from here:

fetch https://pypi.python.org/packages/source/p/pyspatialite-3.0.1-alpha/pyspatialite-3.0.1-alpha-0.tar.gz

The sources have a slightly different path (without '-3.0.1-alpha'):
https://pypi.python.org/packages/source/p/pyspatialite/pyspatialite-3.0.1-alpha-0.tar.gz

The problem seems to be, that CHEESESHOP uses DISTNAME also for building the path, and DISTNAME is not needed in the first part, only something like PORTNAME. The latest change to Mk/bsd.sites.mk[2] seems to be relevant:

CHEESESHOP:source/${DISTNAME:C/(.).*/\1/}/${DISTNAME:C/(.*)-[0-9].*/\1/}


Because I don't know and do not have the skills to check, if CHEESEPORT can be corrected in a more general way, I made a patch only for databases/pyspatialite and only for 'https://' to get it fetching again.


[1] https://pypi.python.org/pypi/pyspatialite/3.0.1-alpha-0
[2] http://svnweb.freebsd.org/changeset/ports/400105
Comment 1 Martin Wilke freebsd_committer freebsd_triage 2016-01-04 05:52:54 UTC
Hi

It was fixed in another way. Thanks for your submission :)